{"agent":"claude","input":"Write unit tests for this MCP server's tools. Read package.json, tsconfig.json, the server entry file, the Makefile, the CI workflow, AGENTS.md and any existing tests first, and say what the existing tests cover and what they skip. Test each tool through the protocol, not by calling handlers directly: build the server from its factory, connect it to a Client over InMemoryTransport.createLinkedPair, and replace globalThis.fetch with fixtures so no test reaches the network. If importing the entry file starts the stdio server, move the factory into its own module and export it; if the repository's contributor notes say the entry file must not change, leave it and start the built server over stdio with a node --import preload that stubs fetch. Cover: tools/list returns each tool with its input schema, output schema and annotations; a normal upstream payload; null and missing fields in the payload; an empty list; more items than the tool returns; a non-2xx status and a rejected fetch, asserting the result is an error result with the tool's message; arguments the input schema rejects; and that structuredContent matches the declared output schema, array root or object root. Assert the exact upstream URLs requested. Use node --test with no new runtime dependency, compile tests outside the published build directory, add an npm test script and wire it into the existing make test target. Run the type check, the unit tests and the existing smoke tests, break one mapping to show a failing test, restore it, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}