iiRecord
Agentic AI Atlas · GAP-TOOLS-025: MCP Tool Discovery and Invocation from Orchestrated Tasks
page:docs-harness-features-backlog-gaps-tools-capabilities-gap-tools-025a5c.ai
II.
Page reference

page:docs-harness-features-backlog-gaps-tools-capabilities-gap-tools-025

Reading · 2 min

GAP-TOOLS-025: MCP Tool Discovery and Invocation from Orchestrated Tasks reference

Enable process definitions to discover and invoke MCP tools registered on connected MCP servers, treating them as first-class routable capabilities. The orchestrator should know what MCP tools are available and route effects to MCP-capable harnesses or invoke MCP tools directly.

Pagewiki/docs/harness-features-backlog/gaps/tools-capabilities/GAP-TOOLS-025.mdOutgoing · 0Incoming · 1

GAP-TOOLS-025: MCP Tool Discovery and Invocation from Orchestrated Tasks

FieldValue
Categorytools-capabilities
PriorityHigh
EffortM
StatusPartial

Description

Enable process definitions to discover and invoke MCP tools registered on connected MCP servers, treating them as first-class routable capabilities. The orchestrator should know what MCP tools are available and route effects to MCP-capable harnesses or invoke MCP tools directly.

Current State

The SDK has an MCP server (mcp:serve) that exposes babysitter's own tools via MCP. However, the orchestrator cannot act as an MCP client -- it cannot discover tools on external MCP servers or invoke them from within process definitions. Harnesses like CC have their own MCP client support, but the orchestrator has no visibility into what MCP tools are available.

Target State

An MCP client module that: discovers tools on configured MCP servers, registers discovered tools in the capability registry, enables ctx.mcpTool(server, tool, args) intrinsic in process definitions, routes MCP tool invocations through the effect system for journal tracking, caches tool schemas for prompt enrichment. MCP tool availability becomes a routing constraint for harness selection.

Dependencies

Key Files

ComponentPath
MCP serverpackages/sdk/src/mcp/
Harness capabilitiespackages/sdk/src/harness/types.ts
Effect routingpackages/sdk/src/harness/registry.ts
Task definitionspackages/sdk/src/tasks/

Recommendation

Phase 2-3 implementation. Build MCP client module alongside existing MCP server. Register discovered tools in capability registry. Add ctx.mcpTool() to ProcessContext with full journal tracking.