Skip to content

initial impl of MCP#7096

Merged
GabrielBianconi merged 13 commits intomainfrom
viraj/mcp
Mar 28, 2026
Merged

initial impl of MCP#7096
GabrielBianconi merged 13 commits intomainfrom
viraj/mcp

Conversation

@virajmehta
Copy link
Copy Markdown
Member

@virajmehta virajmehta commented Mar 27, 2026

Note

Medium Risk
Adds a new externally reachable /mcp service on the gateway that exposes stored-inference queries via MCP; this touches routing/shutdown wiring and introduces new protocol dependencies, so misconfiguration or auth expectations could impact production behavior.

Overview
Adds an initial MCP (Model Context Protocol) server surfaced by the gateway at {/base_path}/mcp, implemented as a new tensorzero-mcp crate and wired into the gateway router with shared shutdown cancellation.

The MCP server exposes two tools—list_inferences and get_inferences—backed by the existing stored-inference endpoints, and includes new gateway/unit and core e2e tests that exercise tool discovery and basic query/error cases via an rmcp client.

Written by Cursor Bugbot for commit d6f3693. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a5441e35a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Member

@GabrielBianconi GabrielBianconi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • HTTP only, no stdio
  • No configuration, no CLI flags, always on
  • Same bind address as standard routes, on /mcp
  • Bearer with TensorZero API keys for now, OAuth later

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@GabrielBianconi GabrielBianconi added this pull request to the merge queue Mar 28, 2026
Merged via the queue into main with commit 7d90b5e Mar 28, 2026
80 checks passed
@GabrielBianconi GabrielBianconi deleted the viraj/mcp branch March 28, 2026 22:53
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.

2 participants