Skip to content

MCP client integration for external tool servers #2

Closed

Description

@pavelanni

Summary

Add Model Context Protocol (MCP) client capabilities to DocsClaw so agents can connect to external MCP tool servers.

Motivation

MCP provides a standardized way to expose tools to LLM agents. Rather than building every tool into DocsClaw, agents could connect to MCP servers for capabilities like database access, browser automation, or domain-specific APIs.

Design considerations

  • Support stdio transport for MCP servers bundled in the same container image
  • Support SSE/streamable HTTP transport for remote MCP servers
  • MCP server configuration via agent-config.yaml
  • Tool definitions from MCP servers should integrate with the existing tool registry

Related

  • See #N (specialized Dockerfiles) — some flavors will bundle MCP servers invoked via stdio
  • Evaluate whether Playwright MCP server is preferable to CLI-based web tools for interactive browsing

From roadmap: docs/slides/docsclaw-intro.html, slide 6

Activity

  1. pavelanni commented on May 7, 2026

    @pavelanni
    CollaboratorAuthor

    Updated scope based on kagenti agent-examples analysis

    After reviewing the kagenti/agent-examples repo, MCP client support is the single biggest gap preventing DocsClaw from replacing most Python-based agents. 6 of 10 kagenti agents are essentially system prompt + MCP tool connections — DocsClaw could handle them with ConfigMap changes alone, if it could connect to MCP servers.

    Priority: Streamable HTTP transport

    The kagenti agents use streamable_http transport exclusively for remote MCP servers. This should be the first transport we implement. stdio can follow for bundled MCP servers.

    Configuration model

    Based on kagenti patterns, MCP servers should be configurable in agent-config.yaml:

    tools:
      allowed:
        - exec
        - read_file
      mcp:
        - url: "http://weather-tool:8000/mcp"
          transport: "streamable_http"
        - url: "http://reservation-tool:8000/mcp"
          transport: "streamable_http"

    Integration with existing tool registry

    MCP tools should register into DocsClaw's existing tools.Registry alongside compiled-in tools. The agentic loop, OpenAI API endpoint, and A2A bridge should all see MCP tools transparently — no special handling needed.

    What this unlocks

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