Testing your MCP server
test
directory and should be named using the pattern [name].test.ts
.
To run the tests, you can use the following command:
.cursor/mcp.json
file in the root of your project. This file will connect Cursor to your MCP server using the @mcplug/client
package.
You can also use this same JSON file to connect your MCP server to other AI clients like Claude.
mcp.json
file inside the env
property.For example, if your tool has a constant called _API_KEY
, you would set it in the env
property like this: