Skip to content

Commit 1a7c7d8

Browse files
committed
update readm
1 parent e16eec5 commit 1a7c7d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,19 @@ This module requires the following peer dependencies:
2828
## Usage
2929

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

35+
const transport = new WebSocketClientTransport(new URL('ws://localhost:8080'));
36+
3437
const view = new EditorView({
3538
extensions: [
3639
// ... other extensions
3740

3841
mcpExtension({
3942
// Required options
40-
transport: yourMCPTransport,
43+
transport: transport,
4144

4245
// Optional options
4346
logger: console,

0 commit comments

Comments
 (0)