Experiment to register a tool on the fly from the client side
"Error: Cannot register tool "test-client-tool" after the server has started: registrations are replayed per request from the registry, so register everything before listen()/server.fetch"
This is an MCP server project bootstrapped with create-mcp-use-app.
First, run the development server:
npm install
npm run devOpen http://localhost:3000/mcp/inspector with your browser to test your server.
You can start building by editing the entry file. Add tools, resources, and prompts — the server auto-reloads as you edit.
Run npm run typecheck to refresh MCP view types and check the project with its local TypeScript compiler. Statically declared tools used by views must be assigned to exported constants.
To learn more about mcp-use and MCP:
- mcp-use Documentation — guides, API reference, and tutorials
npm run deploy