CodeMirror plugin for Model Context Provider - integrates MCP resources and prompts into CodeMirror editors
This is a CodeMirror plugin library, NOT an MCP server. It provides UI extensions for integrating MCP resources/prompts into a code editor. The 12 'tools' are actually TypeScript functions/classes exported by the library for composing editor features, not remote procedure calls or agent tools. None are designed for LLM invocation. Tool definitions lack proper schemas, input/output documentation is sparse or non-existent, and descriptions are UI-focused rather than API-focused. The library itself is well-engineered for its intended purpose (a UI plugin), but scoring it on the MCP server rubric reveals fundamental misalignment: these are not tools an agent would call; they are library functions a developer would import. Per the hard rules, tools without visible schemas score 0 on schema; tools with trivial descriptions (e.g., 'CodeMirror completion source...') score 0-20 on description; and inferred tool definitions (names exist but no explicit registration with input/output contracts) cap at 50 per-tool. The library also provides NO error handling, NO input validation examples, NO output documentation, and no security model, all critical for tool-based systems.
Resource provider that implements the ResourceProvider interface using MCP client
Creates a default tooltip view for a resource
Extracts all resources referenced in an EditorView document
Fetches a specific resource by URI from the MCP server via resources/read RPC
Fetches all available resources from the MCP server via resources/list RPC
CodeMirror extension that shows tooltips for hovered resources
Integrates MCP resources and prompts into CodeMirror editors via autocompletion and decorations
CodeMirror completion source that provides resource completions with @ prefix
No Input Schemas: 10 of 12 tools have no visible JSON Schema defining their parameters. Those with partial schemas (mcpExtension, resourceSync, createDefaultTooltip, getResource) lack type definitions for complex objects (Transport, HoverResourceOptions, Resource).
Trivial Descriptions: Most tool descriptions are UI-implementation details (e.g., 'CodeMirror ViewPlugin that decorates @-prefixed resource URIs with widgets' for resourceDecorations) rather than API contracts. Descriptions under 30 chars (resourceTheme, resourceInputFilter, resourceDecorations, hoverResource) score 0-20. No explanation of WHAT the tool does from the agent's perspective, WHEN to call it, or WHAT it returns.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 30 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | 2024-11-05+ | v1 |
CodeMirror ViewPlugin that decorates @-prefixed resource URIs with widgets
CodeMirror transaction filter that handles resource-aware text input and cursor movement
CodeMirror extension that syncs @-mention URIs in the document with the resourcesField
CodeMirror theme that styles resource widgets and not-found resource indicators
Library Functions, Not Remote Tools: All 12 exports are TypeScript functions/classes for import by a developer into a CodeMirror editor. They are NOT MCP tools designed for LLM/agent invocation. They have no RPC interface, no error recovery guidance, no output shape contracts for downstream tools, and no agent-facing descriptions. Scoring them as 'tools' on the MCP server rubric is fundamentally misaligned, this is a UI library, not a tool registry.
Missing Output Documentation: No documented return types or output schemas for any tool. mcpExtension returns undefined (side effects only); extractResources returns a list of resources with unknown structure; resourceCompletion and resourceSync manipulate editor state but their return values are not documented. LLMs cannot plan downstream calls without knowing what fields a response contains.
No Error Handling Model: Zero error handling guidance. No tool documents what errors can occur, whether they are retryable, or how to recover. getResources and getResource make MCP RPC calls but lack try-catch documentation, timeout guidance, or fallback behavior. An agent cannot reason about failure modes.
Parameter Type Definitions Incomplete: mcpExtension, resourceSync, createDefaultTooltip, and MCPResourceProvider declare some parameters (transport, logger, getResources, resolve) but omit their types or reference external types (Transport, HoverResourceOptions) without schema. The demo code shows Transport is an interface, but no JSON Schema is provided for tools to validate inputs.
Verb-Noun Naming Weak for Library Functions: Names like 'resourceCompletion', 'resourceDecorations', 'resourceTheme' are noun-heavy and describe UI components, not actions. For a library, this is acceptable; for MCP tools, these names do not clearly signal what action an agent should invoke or why. getResources and getResource are better (verb-noun form).
No Pagination or Result Limiting: getResources returns 'all available resources' with no documented pagination, result limits, or next_cursor. The demo includes 4 resources; in a real MCP server with thousands of resources, this scales poorly and wastes context tokens.