Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save maskaravivek/7686417e9c3d835a96e9c8ba85c8a7f2 to your computer and use it in GitHub Desktop.

Select an option

Save maskaravivek/7686417e9c3d835a96e9c8ba85c8a7f2 to your computer and use it in GitHub Desktop.
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new Server({
name: "my-mcp-server",
version: "1.0.0"
});
const transport = new StdioServerTransport();
await server.connect(transport);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment