codemirror-mcp

marimo-team
69
CodeMirror extension to hook up a Model Context Provider (MCP)

Overview

What is codemirror-mcp

codemirror-mcp is a CodeMirror extension that implements the Model Context Protocol (MCP) for resource mentions and prompt commands, enabling enhanced code editing features.

How to Use

To use codemirror-mcp, install it via npm or pnpm, and then import it into your project. Set up a WebSocket transport and configure the extension with required options such as transport and optional settings like logging and resource click handling.

Key Features

Key features include resource completion for `@resource` mentions, visual styling for these mentions, prompt completion for `/prompt` commands, and customizable theme support.

Where to Use

codemirror-mcp can be used in web applications that require advanced code editing capabilities, particularly in environments where resource management and prompt commands are essential.

Use Cases

Use cases include collaborative coding platforms, integrated development environments (IDEs), and applications that involve dynamic resource management and interactive prompt commands.

Content