Repository navigation
fix(ai): the MCP benchmark tool takes no server URL - #2707
Merged
Merged
Conversation
The tests call ai_benchmark through a FastMCP client. A servers argument and a model@url entry must fail and reach no socket. The tool must benchmark on the configured server, and the command must keep both options for a person.
The MCP tool ai_benchmark published servers, and its models option took a model@url entry. The model that calls the tool gave both, and the benchmark sent POST requests to any path of any loopback service. The tool now publishes no servers option and refuses a model@url entry before any command runs. It benchmarks on the servers of ai.ollama_urls. The command keeps --servers and model@url for a person at the command line. Plans the change 2638-mcp-benchmark-no-server-url.
Owner
Author
|
Test results after the rebase onto origin/main (b4669f6):
Fail-to-pass ( |
dan-petty
marked this pull request as ready for review
October 29, 2026 22:35
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.21.0](v0.20.0...v0.21.0) (2026-10-29) ### Features * **telemetry:** count the project items by release tag, not by milestone ([#2710](#2710)) ([253a97d](253a97d)) ### Bug Fixes * **ai:** the MCP benchmark tool takes no server URL ([#2707](#2707)) ([7f7f84b](7f7f84b)), closes [#2638](#2638) * **rag:** name the Qdrant span server by host and port ([#2705](#2705)) ([57725c3](57725c3)), closes [#2459](#2459) * **roadmap:** take a plan that a person merged as a Planned item ([#2718](#2718)) ([043463b](043463b)), closes [#2714](#2714) * **security:** pin tflint; remove dive and devops docker analyze-layers ([#2712](#2712)) ([244bafb](244bafb)) * **vault:** the MCP tool vault_status takes no address ([#2706](#2706)) ([68c226c](68c226c)), closes [#2639](#2639) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
The MCP tool
ai_benchmarkpublished the optionservers, and itsmodelsoption tookmodel@urlentries. The model that calls the tool gave both. The benchmark sentPOST {url}/api/chatto each URL, and a URL that ends in?x=let the caller choose the path. So a model could send POST requests with a prompt body to any path of any loopback service of the host. The cause is the same as in #2480, #2634 and #2637: input from a caller is used as configuration.serversoption. A call that gives it fails at the argument contract and sends no request. The change adds one entry to_PATH_PARAM_RESTRICTIONS.model@urlentry ofmodelsbefore any command runs. The check usesparse_model_listandparse_model_spec, the functions that the command uses. A JSON Schemapatterndoes not fit: the refusal layer has no kind or text for it.ai.ollama_urls, at the configured egress level.devops ai benchmarkkeeps--serversandmodel@urlfor a person at the command line.ERRORS.mcp.model_names_endpoint, which had no caller since the generated tool replaced the hand-written one. The--modelshelp text says that the MCP tool refusesmodel@url. The generated documents carry the text.Change: openspec/changes/archive/2026-10-29-2638-mcp-benchmark-no-server-url/
Closes #2638