Skip to content

Feat/mcp client support#59

Open
Nivesh353 wants to merge 2 commits into
open-gitagent:mainfrom
Nivesh353:feat/mcp-client-support
Open

Feat/mcp client support#59
Nivesh353 wants to merge 2 commits into
open-gitagent:mainfrom
Nivesh353:feat/mcp-client-support

Conversation

@Nivesh353

Copy link
Copy Markdown
Contributor

What

Adds MCP (Model Context Protocol) client support. Declare servers in agent.yaml (or via the SDK mcpServers option) and the agent automatically gains those servers' tools — no integration code.

Why

Previously, every external capability (GitHub, Postgres, Slack, filesystem…) had to be hand-built and maintained by us as a custom tool/plugin. With MCP, users plug into the whole ecosystem of ready-made servers via a few lines of config, and we maintain none of it. Keeps gitagent aligned with the industry standard (Claude, Cursor, etc.).

How it works

On agent load, gitagent connects to each declared server (stdio / HTTP / SSE), calls listTools, and registers every tool as a native AgentTool named <server>__<tool>. Execution forwards the call to the server and returns its result. Connections are pooled for the session and torn down on every exit path.

Connect to MCP servers declared in agent.yaml / SDK mcpServers, register
their tools as native AgentTools (namespaced <server>__<tool>), and tear
connections down on exit. stdio + HTTP + SSE transports, pagination,
name sanitization, abort forwarding, fail-soft connect, recursive JSON
Schema conversion. Fully opt-in; SDK not loaded when unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant