mcp-server-demo
1
This project is a demonstration of a Model Context Protocol (MCP) server hosted within a dapp application. It integrates with the `@blocklet/mcp` package for authentication and authorization, making it a comprehensive full-stack solution.
Demo MCP Server
A demo blocklet that hosts a Model Context Protocol (MCP) server. This project was initiated using Create Blocklet and is a full-stack dapp application encompassing both server and client components. It utilizes the @blocklet/mcp
package for authentication and authorization.
Requirements
- Node.js version: >= 20.14.0
- Server version: >= 1.16.28
Blocklet as a MCP server
- Set
blocklet.yml#capabilities.mcp
totrue
- Configure the MCP server in
api/src/mcp/server.ts
- Setup SSE transport in
api/src/mcp/sse.ts
with the endpoint/mcp/sse
- Attach the MCP Server to the app in
api/src/index.ts
- Use https://dev.store.blocklet.dev/blocklets/z2qZwzdTFvPFN275o7wm4WwXTAVBvdSfHSDqq for debugging the MCP server.