codemirror-mcp
About
CodeMirror extension that implements the Model Context Protocol (MCP) for resource mentions and prompt commands.
Details
- Author
- marimo-team
- GitHub stars
- 78
- Downloads
- 191
- Categories
- Other
Jump to
- Autocomplete for @resource mentions
- Visual styling for resource mentions with click handling
- Autocomplete for /prompt commands
- Customizable theme
- Hover tooltips showing resource details
- Resource extraction via extractResources
Install with npm install @marimo-team/codemirror-mcp @modelcontextprotocol/sdk and peer dependencies. Import mcpExtension and pass it to an EditorView with a transport (e.g., WebSocketClientTransport) and optional options like logger, clientOptions, and onResourceClick. Use extractResources(view) to collect referenced resources for submission.
codemirror-mcp
A CodeMirror extension that implements the Model Context Protocol (MCP) for resource mentions and prompt commands.
Features
- Resource Completion: Autocomplete for @resource mentions
- Resource Decorations: Visual styling for @resource mentions with click handling
- Prompt Completion: Autocomplete for /prompt commands
- Theme Support: Customizable styling
Installation
```bash
npm install @marimo-team/codemirror-mcp @modelcontextprotocol/sdk
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



