# Claude Code MCP Toolset Acceptance Tests

> Test a Claude Code MCP toolset with a known read-only catalogue, two fixture queries and server access evidence before connecting it to your workflow.

URL: https://www.matthewswong.com/en/blog/claude-code-mcp-toolset-acceptance-test/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-12-03
- Updated: 2026-12-03
- Category: AI

> **Key takeaway:** A Claude Code MCP acceptance test checks which tools appear to an intended user and what an actual harmless call returns. A repository catalogue can serve as the fixture. Record the scope, active server configuration and expected behaviour before connecting the same toolset to an agent’s normal workflow.

What should the acceptance test cover?

List the expected server and its read-only tool names. Choose one product query with a known answer and one query that returns an empty list. These results test visibility and a real call independently.

How do project settings affect the run?

Check which entry is active in the workspace and where its settings live. A tool configured in another scope can make the session appear to work while teammates cannot reproduce it. Document the intended scope and use the CLI documentation for inspecting active entries.

Which result proves a permission boundary?

Exercise the expected query using an account that may read the fixture, then repeat with an account that lacks that access. Check the backing service’s decision. A client approval for a tool invocation and a server access check enforce different parts of the workflow.

What should a tool return when nothing matches?

Define a normal empty result in the fixture. Keep it distinct from service errors and access denials so a coding agent can report the right outcome. Ask it to say which product query was empty rather than guessing an item.

How can client differences be reproduced?

Record the Claude Code version, server build and test account capabilities. Run the same tool through the normal client entry point and compare the returned fixture fields. This reveals where a display or configuration difference enters the flow.

What should the team keep after testing?

Save the tool list, two synthetic queries and observed results. Link the server-side access evidence for the identity test. That gives the next maintainer a concrete baseline when the toolset or connector changes.

## Sources and further reading

- Claude Code MCP guide
- Claude Code permissions
- Claude Code CLI reference
- MCP tool contracts

## Source links

- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/cli-reference
- https://modelcontextprotocol.io/specification/2026-07-28/server/tools

## FAQ

### What should the acceptance test cover?

List the expected server and its read-only tool names. Choose one product query with a known answer and one query that returns an empty list. These results test visibility and a real call independently.

### How do project settings affect the run?

Check which entry is active in the workspace and where its settings live. A tool configured in another scope can make the session appear to work while teammates cannot reproduce it. Document the intended scope and use the CLI documentation for inspecting active entries.

### Which result proves a permission boundary?

Exercise the expected query using an account that may read the fixture, then repeat with an account that lacks that access. Check the backing service’s decision. A client approval for a tool invocation and a server access check enforce different parts of the workflow.

### What should a tool return when nothing matches?

Define a normal empty result in the fixture. Keep it distinct from service errors and access denials so a coding agent can report the right outcome. Ask it to say which product query was empty rather than guessing an item.

### How can client differences be reproduced?

Record the Claude Code version, server build and test account capabilities. Run the same tool through the normal client entry point and compare the returned fixture fields. This reveals where a display or configuration difference enters the flow.

---

- HTML version: https://www.matthewswong.com/en/blog/claude-code-mcp-toolset-acceptance-test/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/claude-code-mcp-toolset-acceptance-test/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
