Skip to content

Commit

Permalink
update readm
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Jan 9, 2025
1 parent e16eec5 commit 1a7c7d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,19 @@ This module requires the following peer dependencies:
## Usage

```ts
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js";
import { mcpExtension, extractResources } from '@marimo-team/codemirror-mcp';
import { EditorView } from '@codemirror/view';

const transport = new WebSocketClientTransport(new URL('ws://localhost:8080'));

const view = new EditorView({
extensions: [
// ... other extensions

mcpExtension({
// Required options
transport: yourMCPTransport,
transport: transport,

// Optional options
logger: console,
Expand Down

0 comments on commit 1a7c7d8

Please sign in to comment.