{"type":"mcp_server","name":"codemirror-mcp","description":"This CodeMirror extension implements the Model Context Protocol (MCP), offering features like resource and prompt autocompletion, resource decorations, and customizable theme support for enhanced text editing. This CodeMirror extension implements","category":"Developer Tools","language":"TypeScript","stars":78,"forks":0,"owner":"marimo-team","github_url":"https://github.com/marimo-team/codemirror-mcp","homepage":"https://marimo-team.github.io/codemirror-mcp/","setup":"## Setup\n\n1.  Install the package and its peer dependencies:\n\n```bash\nnpm install @marimo-team/codemirror-mcp @modelcontextprotocol/sdk\n# or\npnpm add @marimo-team/codemirror-mcp @modelcontextprotocol/sdk\n```\n\n2.  Ensure you have the required peer dependencies: `@codemirror/view`, `@codemirror/state`, and `@modelcontextprotocol/sdk`.\n\n3.  Import and use the `mcpExtension` in your CodeMirror setup, providing a transport and optional configurations like logger, client options, and `onResourceClick` handler.\n\n4.  Implement a keymap to handle actions like submitting the prompt, extracting resources using `extractResources`, and formatting them for use with an AI server.","tools":"## Available Tools\n\n1.  Resource Completion: Autocomplete for `@resource` mentions.\n2.  Resource Decorations: Visual styling for `@resource` mentions with click handling.\n3.  Prompt Completion: Autocomplete for `/prompt` commands.\n4.  Theme Support: Customizable styling.\n5.  Resource Mentions: Use `@resource-uri` syntax to reference resources.\n6.  Click handling for resource interactions.\n7.  Hover tooltips show resource details.\n8.  Prompt Commands: Use `/command` syntax for prompt commands.","faq":null,"created_at":"2025-01-09T03:24:07+00:00","updated_at":"2025-03-27T22:29:58+00:00","source_url":"https://model-context-protocol.com/servers/codemirror-model-context-protocol-extension","related_articles":[]}