Introduce initial mcp-bench Python package with MCP benchmarking API and CLI - #1
Draft
haesleinhuepf with Copilot wants to merge 2 commits into
Draft
Introduce initial mcp-bench Python package with MCP benchmarking API and CLI#1haesleinhuepf with Copilot wants to merge 2 commits into
mcp-bench Python package with MCP benchmarking API and CLI#1haesleinhuepf with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add mcp-bench Python package with CLI and API
Introduce initial Jul 17, 2026
mcp-bench Python package with MCP benchmarking API and CLI
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.
This PR bootstraps
mcp-benchas a pip-installable package with both a Python API and a CLI for benchmarking MCP-driven tool-calling via OpenAI-compatible endpoints (including local Ollama). It adds structured benchmark outputs that capture full run traces (chat history, tool calls, arguments, and tool results), plus repeat/temperature experiment controls and dataframe conversion utilities.Packaging and distribution
pyproject.toml-based packaging (mcp-bench),src/layout, and CLI entrypoint:mcp-bench = mcp_bench.cli:mainmcp-bench[dataframe]→pandasCore benchmarking API
MCPConfig+load_mcp_config(...)to load MCP JSON configs and normalize function/tool specs into OpenAI tool format.MCPBenchRunnerwith:run_prompt(prompt, repeats, temperature)run_experiment(prompts, repeats, temperature)PromptRunResult(prompt/model/temperature/final response/chat history/tool calls)ToolCallRecord(function name/arguments/result)CLI surface
--config,--model, repeated--prompt,--repeats,--temperature,--base-url,--api-key,--outputDataframe utility
results_to_dataframe(results)to convert benchmark runs into analysis-friendly tabular output, including serialized tool-call records.Original prompt