Browse AI Agents & MCP SECTION 4: Model Context Protocol (MCP)

The MCP Server Testing Prompt

2 fill-in slots · from The AI Prompt Handbook for AI Agents & MCP

Your details

0/2 filled

The MCP Server Testing Prompt

Design a test suite for an MCP server.

Server: [DESCRIBE OR PASTE THE DESIGN]
Tools exposed: [LIST]
Resources exposed: [LIST]

Produce tests covering:
1. Protocol conformance — does it behave correctly as a server
2. Each tool: happy path, every error condition, boundary values
3. Each resource: existence, absence, malformed URI, permission
   denial
4. Schema validation: does it reject inputs that violate the
   declared schema
5. Authentication: unauthenticated, wrong credentials, expired
   credentials, insufficient permissions
6. Concurrency: simultaneous calls, ordering assumptions
7. Failure of downstream dependencies
8. Resource exhaustion and rate limiting
9. Malicious input: injection attempts through tool arguments
10. Behaviour under a slow or unavailable backend

For each test: what it verifies, the setup required, and the
expected result.

Then separately: what an agent actually calling this server would
experience for each failure case, and whether that experience lets
it recover.

Highlighted [slots] are still empty. Downloads are plain .txt — paste into any AI assistant.