From 2ef54d3b5d220b15992db45341cb95e31518d754 Mon Sep 17 00:00:00 2001 From: Laurence Liang Date: Wed, 18 Dec 2024 15:11:02 -0500 Subject: [PATCH] Add missing imports --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 76c45ab..6843fa7 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,10 @@ npm install @modelcontextprotocol/sdk ```typescript import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; +import { + ListResourcesRequestSchema, + ReadResourceRequestSchema, +} from "@modelcontextprotocol/sdk/types.js"; const transport = new StdioClientTransport({ command: "path/to/server", @@ -61,6 +65,10 @@ const resourceContent = await client.request( ```typescript import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; +import { + ListResourcesRequestSchema, + ReadResourceRequestSchema, +} from "@modelcontextprotocol/sdk/types.js"; const server = new Server({ name: "example-server",