Skip to content

MCP support: expose tole tools via Model Context Protocol + consume MCP servers #74

Closed

Description

@ajianaz

Context

MCP (Anthropic's Model Context Protocol) is the de-facto standard for tool/context integration; tole's Tool trait (name/risk/describe/spec-as-JSON-Schema/execute) is already MCP-shaped, which makes this integration mostly adapter work. Deferred at v0 by design — now formally tracked per the 2026-09-12 standards sweep.

Scope (two directions, ship separately)

Direction A — tole as MCP CLIENT (higher value first)

  • Register tools from configured MCP servers (stdio transport first, HTTP later) at startup, alongside native tools.
  • Risk mapping: every MCP tool enters as Risk::Write (server-side execution is opaque to tole's risk model) → goes through the standard approval gate. Policy: never auto-map remote tools to ReadOnly, regardless of server metadata.
  • Secrets: MCP server env/config handled via the existing env-triple discipline (TOLE_* > OPENAI_*), never logged.
  • Feature-gated behind `mcp` (mobile profile stays MCP-free initially).

Direction B — tole harness as MCP SERVER (later)

  • Expose tole's durable chat session as an MCP resource/tool set so external hosts (Claude Code, IDEs) can drive a tole session. Interesting for the workstation product; not for uteke-mobile.

Non-goals

  • Multi-server orchestration, resource subscriptions, sampling — revisit after A ships.

Acceptance criteria (Direction A)

  • mcp feature gate; both profiles build/test green
  • stdio transport: N tools registered from a real reference server, approval gate fires per call
  • Spec conformance: tools listed via JSON-Schema passthrough; invalid server responses fail soft (skip tool, startup warning — same pattern as uteke probing)
  • Docs: config format + trust-model note in threat-model.md (Security: OWASP Agentic/LLM checklist audit + gap fixes #72)

Priority: 3rd of the three roadmap focuses (biggest surface; do after #72 hardens the base and #73 gives us the eval harness to measure MCP-against-native parity).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions