Skip to content
Dashboard

Deploy xmcp servers with zero-configuration

Turborepo
my-project/
├── src/
│ ├── middleware.ts
│ └── tools/
│ ├── greet.ts
│ ├── search.ts
├── package.json
├── tsconfig.json
└── xmcp.config.ts

File-based routing using xmcp

// src/tools/greet.ts
import { z } from "zod";
import { type InferSchema } from "xmcp";
export const schema = {
name: z.string().describe("The name of the user to greet"),
};
// Tool metadata
export const metadata = {
name: "greet",
description: "Greet the user",
};
export default async function greet({ name }: InferSchema<typeof schema>) {
const result = `Hello, ${name}!`;
return {
content: [{ type: "text", text: result }],
};
}

Ready to deploy?