# SineFrame M3 > SineFrame M3 is a free, open-source pytest framework for MCP servers. It tests a server directly over stdio or HTTP, and through the coding agents that use it (Claude Code, Codex, OpenCode, Pi, and ACP agents), and gates pull requests in CI. Published guidance matches M3 v0.3.2. Use the agent instructions to add M3 tests to a project. Use the documentation index for CLI, SDK, CI, and evaluation reference material. ## Key facts - Name: SineFrame M3 (also "M3"), made by SineFrame. Not related to Apple's M3 chip. - License and price: open source under Apache-2.0; free to install and run. - Install: `uv tool install sf-m3-cli` (Python 3.10 or newer), or the shell installer on macOS and Linux. - Tests: ordinary pytest tests written in Python; the MCP server under test can be written in any language. - Direct tests need no model, API key, or account. Agent tests need the harness installed and model provider access. - Data: runs are saved locally under `.m3/`; a run is published only when the command includes `--upload`. ## Start here - [SineFrame M3 home](https://m3.sineframe.com/): What M3 tests, how it works, and the FAQ. - [Agent instructions](https://m3.sineframe.com/agents.md): Install M3 and give a coding agent the version-matched M3 testing skill. - [M3 documentation](https://m3.sineframe.com/docs/llms.txt): Curated CLI, SDK, CI, and evaluation documentation. - [Source repository](https://github.com/sineframe/m3): Source code, releases, and issue tracker. ## Guides - [How to test an MCP server](https://m3.sineframe.com/mcp-testing.md): Direct pytest tests over stdio or HTTP, plus agent tool-selection tests through real Claude Code, Codex, OpenCode, and Pi binaries. - [Gate an MCP server in CI](https://m3.sineframe.com/mcp-ci.md): Run the same M3 suite in GitHub Actions with `m3 ci test`; a failed assertion or a run with zero executed checks fails the gate. - [Test an MCP server with Claude Code](https://m3.sineframe.com/mcp-testing/claude-code.md): Run the real Claude Code binary in pytest, its credentials and version pinning, and how it treats MCP servers differently (65.4% vs OpenCode's 82.0% on 21 servers with the same model). - [Test an MCP server with Codex](https://m3.sineframe.com/mcp-testing/codex.md): A complete Codex agent test, login and approval handling, version pinning, and why Codex skips servers (44.5% of should-call trials) and drops schema details. - [Test an MCP server with OpenCode](https://m3.sineframe.com/mcp-testing/opencode.md): Credentials by model prefix, pinning, and why OpenCode calls MCP servers more often (no built-in web search). - [How to write MCP tool descriptions that agents call](https://m3.sineframe.com/mcp-tool-descriptions.md): Description, naming, schema, annotation and error-message rules from tested Claude Code and Codex runs and the Claude, OpenAI and Muse directory rules. - [SineFrame M3 vs MCP Inspector](https://m3.sineframe.com/compare/mcp-inspector.md): Interactive debugging, CLI smoke and load tests, OAuth, agent tool-call assertions and CI gates compared, as of Inspector 2.15.0. - [SineFrame M3 vs MCPJam](https://m3.sineframe.com/compare/mcpjam.md): A neutral comparison for MCP server testing: authoring, agent coverage, OAuth, CI gates, results, and when MCPJam fits better. ## Research - [MCP agent usability leaderboard](https://m3.sineframe.com/leaderboard/): 21 MCP servers ranked by how often Claude Code, Codex and OpenCode get the right answer from them (or rightly leave them uncalled), with 95% intervals. ## Blog - [How to pass Claude and ChatGPT MCP directory review](https://m3.sineframe.com/blog/pass-mcp-directory-review.md): Why the Claude connector, OpenAI plugin (ChatGPT and Codex) and Muse directories reject MCP servers, each with its published rule as checked on 2026-11-08; a pre-submission checklist, and checking a server with m3 lint --directory and the preparing-directory-submissions skill (M3 0.3.2). - [Same model, different agent: 17 points apart on 21 MCP servers](https://m3.sineframe.com/blog/same-model-different-agent.md): Claude Haiku 5.5 through Claude Code 2.1.312 and OpenCode 1.19.5, plus Codex 0.165.0, on 21 MCP servers, 3,717 scored trials; the gap sits on the 10 servers whose job overlaps a built-in tool. - [On a well-built MCP server, Haiku matched Opus](https://m3.sineframe.com/blog/mcp-server-design-small-models.md): Six models (Claude Code 2.1.296, Codex 0.162.1) on the same 13 issue-tracker tasks over a well-built and a flawed MCP server, 1,248 graded runs; where small models break, which flaws compound, and cost per success. - [Claude Code and Codex break on different MCP features](https://m3.sineframe.com/blog/claude-code-vs-codex-mcp.md): Ten MCP features run against Claude Code 2.1.287 and Codex 0.162.0 at pinned versions, three trials each; five split the agents, plus eight probe-only leads, and how each cell is measured with M3. - [Your MCP server passed. Did the agent call it?](https://m3.sineframe.com/blog/did-the-agent-call-it.md): A walkthrough with real runs: 64 pytest cases against a shipping-quote MCP server, a one-line regression that fails 17 of them, the same agent tests through Claude Code and Codex, the trace, and the CI gate. ## Optional - [Full documentation snapshot](https://m3.sineframe.com/docs/llms-full.txt): All published documentation in one Markdown document.