MCP.so
ログイン

Codemirror MCP Server

@marimo-team

基本情報

カテゴリ

その他

ライセンス

Apache-2.0

トランスポート

stdio

作者

marimo-team

Codemirror MCP Server について

CodeMirror extension to hook up a Model Context Provider (MCP)

Codemirror MCP Server の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

Codemirror MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is codemirror-mcp?

A CodeMirror extension that implements the Model Context Protocol (MCP) for autocompleting @resource mentions and /prompt commands, with visual decorations and click handling. It's designed for developers building AI-assisted editors or chat interfaces on top of CodeMirror.

How to use codemirror-mcp?

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.

Key features of codemirror-mcp

  • 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

Use cases of codemirror-mcp

  • Building a chat editor that references files, tools, or context
  • Adding AI prompt commands to a text editor
  • Creating a resource-aware notebook or documentation interface
  • Enabling structured resource selection in a web-based IDE

よくある質問

1

What are the peer dependencies?

You need `@codemirror/view`, `@codemirror/state`, and `@modelcontextprotocol/sdk`.

2

How does transport work?

The extension accepts any MCP transport; the README shows `WebSocketClientTransport` connecting to `ws://localhost:8080`.

3

Can I customize the appearance?

Yes, the extension supports customizable styling via theme options.

4

How do I extract referenced resources?

Use the `extractResources(view)` function to get an array of resources from the editor state.

5

Is data stored locally or sent over the network?

Resources and prompts are handled client-side; network transport depends on the provided MCP transport (e.g., WebSocket).

コメント

「その他」の他のコンテンツ