refactor: move mcp auth record ownership

This commit is contained in:
lda
2026-06-06 15:01:39 +07:00 Verified
parent 0028528269
commit a28ca5434a
150 changed files with 557 additions and 549 deletions
+1 -2
View File
@@ -9,6 +9,7 @@ from pydantic import BaseModel
if __package__ in {None, ""}:
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
from examples.demo_workflow import build_demo_registry, build_demo_workflow
from wf_authoring import (
WorkflowBuilder,
input_from,
@@ -19,8 +20,6 @@ from wf_authoring import (
from wf_core import END
from wf_core.run_state import RunState
from examples.demo_workflow import build_demo_registry, build_demo_workflow
class ChildInput(BaseModel):
"""Input accepted by the wrapped child workflow."""
+1 -1
View File
@@ -1,8 +1,8 @@
from __future__ import annotations
import asyncio
from pathlib import Path
import sys
from pathlib import Path
from wf_core import END
from wf_mcp.broker import WfMcpService
+1 -1
View File
@@ -9,10 +9,10 @@ from wf_artifacts import (
FileWorkflowArtifactStore,
WorkflowDeployment,
)
from wf_mcp.broker import WfMcpService
from wf_mcp.capabilities import DiscoveredPrompt, DiscoveredResource, DiscoveredTool
from wf_mcp.models import AuthRecord, ConnectionConfig
from wf_mcp.sdk import ToolCallResult
from wf_mcp.broker import WfMcpService
from wf_mcp.sdk.base import BackendAdapter
from wf_mcp.storage import FileStore
from wf_mcp.workflow_surface import WorkflowSurfaceHandlers
+1 -2
View File
@@ -3,11 +3,10 @@ from __future__ import annotations
from pathlib import Path
from typing import Any
from examples.mcp_workflow_surface import prepare_demo_service
from wf_artifacts import WorkflowDeployment
from wf_mcp.workflow_surface import WorkflowSurfaceHandlers
from examples.mcp_workflow_surface import prepare_demo_service
async def author_echo_wrapper_from_capability(root: Path) -> dict[str, Any]:
"""Author, save, deploy, and run one wrapper from capability hints.