Quick start
To get started just run the following command:my_mcp_server
with the following files:
src/index.ts
: The entry point of your MCP server.package.json
: The package.json file for your MCP server.tsconfig.json
: The tsconfig.json file for your MCP server..env
: The environment variables for your MCP server.README.md
: The README file for your MCP server.changelog directory
: The changelog directory for your MCP server..cursor/mcp.json
: The cursor configuration file for your MCP server in order to test it locally. (generated when running the dev command)
Your MCP server code
You can then start developing your MCP server by adding tools to thesrc/index.ts
file.
The MCP is a simple export default object that contains a record of tools, prompts and resources of your MCP server.
src/index.ts
get-weather
that takes a city name as input and returns the weather in that city.
Tools
Learn more about tools
Context and Env
Learn more about context and env