Add Mcp Tests.prompt
---
agent: "mcp-security-hardener"
name: add-mcp-tests
description: "Add minimal tests for MCP endpoint behavior and tool registration to prevent regressions."
---
Goal: Add a minimal test suite for the MCP server under `tests/` to prevent regressions.
Coverage targets (minimal):
- `/health` returns 200
- `/mcp` GET returns 405 (or SSE if implemented)
- `/mcp` POST rejects invalid Accept / invalid JSON with clear errors
- Tool registration sanity: list tools / list prompts returns expected shape
Output:
- Test plan
- Full new/updated test files
- How to run tests locally (commands)
Constraints:
- Keep tests fast and deterministic
- No network calls beyond localhostwhen to use it
Community prompt sourced from the open-source GitHub repo Robotti-io/copilot-security-instructions (Apache-2.0). A "Add Mcp Tests.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
Robotti-io/copilot-security-instructions · Apache-2.0
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar