feat(runtime): MCP proxy — intercept tools/call, deny on enforce - #177
Open
xre217 wants to merge 1 commit into
Open
feat(runtime): MCP proxy — intercept tools/call, deny on enforce#177xre217 wants to merge 1 commit into
xre217 wants to merge 1 commit into
Conversation
Ship the high-priority mcp-proxy integration: a stdio/HTTP shim that sits in front of any MCP server, evaluates tools/call via evaluate_tool_call, and returns an MCP isError (or JSON-RPC error) on deny. All other methods pass through. - prismor mcp-proxy --stdio -- <upstream-command…> - prismor mcp-proxy --upstream <url> [--port 8080] - Registry status: roadmap → shipped; matrix + CLI docs updated - Unit coverage for event build, intercept, HTTP path, CLI parser
2 tasks
Contributor
Author
|
Hey — quick note so this isn’t three unprompted PRs in a vacuum. Shipped against items in TODO.md / the registry:
Happy to:
No rush — just wanted to make it easy to say yes/no/redirect. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships the high-priority MCP proxy from TODO.md / registry (
id: mcp-proxy).A stdio/HTTP shim sits in front of any downstream MCP server:
tools/callparams.name+params.argumentsevaluate_tool_call(full policy + IAM + telemetry path)result.isError(or JSON-RPC error with--jsonrpc-error) without forwardingtools/call→ pass-through to upstreamZero per-framework code — any MCP-speaking agent (Claude Code, Cursor, custom) gets coverage by wiring Prismor as the MCP server command.
CLI
Claude Code / Cursor example:
{ "mcpServers": { "filesystem": { "command": "prismor", "args": ["mcp-proxy", "--stdio", "--", "npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"] } } }Also
mcp-proxyroadmap → shipped; coverage matrix regenerateddocs/cli-reference.md,AGENT_INTEGRATIONS.md,TODO.mdprismor/runtime/mcp_proxy.pyTest plan
python3 -m pytest tests/test_mcp_proxy.py -v(16 passed)--stdio -- cmd…and--upstreamrm -rf /style tools/call is deniedRelated: #175 (registry enums), #176 (dashboard subject filter). Happy to iterate on framing edge cases or SSE/streamable-http if you want those next.