
xmcp Application
This project was created with create-xmcp-app.
Getting Started
First, run the development server:
This will start the MCP server with the selected transport method.
Project Structure
This project uses the structured approach where tools are automatically discovered from the src/tools directory. Each tool is defined in its own file with the following structure:
Adding New Tools
To add a new tool:
- Create a new .tsfile in thesrc/toolsdirectory
- Export a schemaobject defining the tool parameters using Zod
- Export a metadataobject with tool information
- Export a default function that implements the tool logic
Building for Production
To build your project for production:
This will compile your TypeScript code and output it to the dist directory.
Running the Server
You can run the server for the transport built with:
- HTTP: node dist/http.js
- STDIO: node dist/stdio.js
Alternatively, you can use the script which will automatically start the appropriate transport based on your project configuration:
The start script will automatically run either the HTTP or STDIO transport depending on which transport method was selected when you initialized the project.
