Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

README.md

14 lines642 Bytes

1# MCP server
2​
3You want a host to call your tools, a file, and a prompt. This app serves all three over MCP. The page imports the server object, so the tool name, the resource URI, and the prompt arguments stay typed. The page calls the server in the same process. A host calls it over HTTP at `/api/mcp`.
4​
5## Run it
6​
71. From the repo root, run `pnpm install`.
82. Run `pnpm --filter mcp-server dev`.
93. Open http://localhost:3100.
104. Click Call the server.
11​
12The forecast, the city guide, and the trip brief come from the MCP server.
13​
14The server is `src/mcp-server.ts`. The route is `src/routes/api.mcp.ts`. The page is `src/routes/index.tsx`.