https://github.com/blocklet/mcp-server-demo
A simple mcp server blocklet
https://github.com/blocklet/mcp-server-demo
Last synced: 3 months ago
JSON representation
A simple mcp server blocklet
- Host: GitHub
- URL: https://github.com/blocklet/mcp-server-demo
- Owner: blocklet
- License: other
- Created: 2025-03-26T06:37:34.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-29T08:16:13.000Z (about 1 year ago)
- Last Synced: 2025-04-29T09:25:23.868Z (about 1 year ago)
- Language: TypeScript
- Size: 1.01 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Demo MCP Server
A demo blocklet that hosts a MCP server
This project was bootstrapped with [Create Blocklet](https://github.com/blocklet/create-blocklet).
This blocklet is a dapp project, which means this is a full-stack application. It's contained both `server` and `client` code.
The MCP Server uses the `@blocklet/mcp` package to do authenticate and authorization.
## Requirements
- Node.js version: >= 20.14.0
- Server version: >= 1.16.28
## Blocklet as a MCP server
- Set `blocklet.yml#capabilities.mcp` to `true`
- Setup your MCP server in `api/src/mcp/server.ts`
- Setup sse transport in `api/src/mcp/sse.ts`, the endpoint must be `/mcp/sse`
- Attach the MCP Server to your app in `api/src/index.ts`
- Use https://dev.store.blocklet.dev/blocklets/z2qZwzdTFvPFN275o7wm4WwXTAVBvdSfHSDqq to debug your MCP server
## License
The code is licensed under the Apache 2.0 license found in the
[LICENSE](LICENSE) file.