-
Notifications
You must be signed in to change notification settings - Fork 267
RPC transport #565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
RPC transport #565
Conversation
|
commit: |
e7a2ae8
to
5273dcd
Compare
6ecc7db
to
2fe8497
Compare
2fe8497
to
6e404aa
Compare
973aed9
to
da55f6b
Compare
72d1f7d
to
f7da517
Compare
Adds custom RPC transport for MCP.
Core Implementation (packages/agents/src/mcp/rpc.ts) implements RPCClientTransport and RPCServerTransport with full JSON-RPC 2.0 validation, batch request support, and session management.
Agent Integration (packages/agents/src/index.ts) addRpcMcpServer() method to Agent class for connecting to MCP servers via RPC bindings.
McpAgent Support (packages/agents/src/mcp/index.ts) implements handleMcpMessage() with automatic transport recreation after hibernation.
Example (examples/mcp-rpc-transport/) showing Agent calling McpAgent via RPC with counter tool.
Documentation (docs/mcp-transports.md) guide covering all three transports (Streamable HTTP, SSE, RPC) with step-by-step setup.
Tests (packages/agents/src/tests/mcp/transports/rpc.test.ts)
Closes #548