Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

mcp-servers.ts

29 lines1.1 KB

1import { stdioTransport } from '@tanstack/ai-mcp/stdio'
2import type { Transport } from '@tanstack/ai-mcp'
3​
4/**
5 * Keyless official MCP reference servers (run via npx -y; no API keys needed).
6 * Each factory returns a fresh Transport instance — transports are single-use
7 * and must not be shared across requests or reused after close().
8 */
9​
10/** @modelcontextprotocol/server-everything — demo tools, resources, and prompts. */
11export const everythingTransport = (): Transport =>
12 stdioTransport({
13 command: 'npx',
14 args: ['-y', '@modelcontextprotocol/server-everything'],
15 })
16​
17/** @modelcontextprotocol/server-memory — persistent knowledge-graph memory tool. */
18export const memoryTransport = (): Transport =>
19 stdioTransport({
20 command: 'npx',
21 args: ['-y', '@modelcontextprotocol/server-memory'],
22 })
23​
24/** @modelcontextprotocol/server-sequential-thinking — step-by-step reasoning tool. */
25export const sequentialThinkingTransport = (): Transport =>
26 stdioTransport({
27 command: 'npx',
28 args: ['-y', '@modelcontextprotocol/server-sequential-thinking'],
29 })