- Nuwa Identity Kit helps to manage your DID key and signs transactions on your MCP server.
- Nuwa Payment Kit provides a drop-in replacement version of the FastMCP server wrapper (
createFastMcpServerFromEnv) that lets you config paid MCP tools easily.
/mcp endpoint and declare free and paid tools in the same way you build your MCP.
Quick start
Before you start: you need a Service Key for your service DID. Follow the
Service Key guide to create one on cadop-web and copy it
as
SERVICE_KEY.You can find a starter template in the Nuwa Kit Examples.
1
Install
2
Create a minimal server (from env)
mcp/index.ts
3
Set environment variables and run
The
SERVICE_KEY value is generated in the
Service Key guide when you add an authentication method to
your Agent DID.4
Try Your MCP with Cap Studio
Go to Nuwa Cap Studio and use the MCP tools to try your MCP server.

createFastMcpServerFromEnv
createFastMcpServerFromEnv is a drop-in replacement for the FastMCP server wrapper (createFastMcpServer). It injects extra fields in the input and output to make the it Nuwa-Compatible and payment possible:
- The wrapper injects
__nuwa_authand__nuwa_paymentinto the input. - For output, it adds a payment resource to the returned object.
For more details, refer to the Nuwa Payment Kit.

