File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 *
55 * Build `examples/server` first; this client spawns the server via stdio.
66 */
7- import { Client , StdioClientTransport } from '@modelcontextprotocol/client' ;
7+ import { Client } from '@modelcontextprotocol/client' ;
8+ import { StdioClientTransport } from '@modelcontextprotocol/client/stdio' ;
89import { z } from 'zod/v4' ;
910
1011const SearchResult = z . object ( { items : z . array ( z . string ( ) ) } ) ;
Original file line number Diff line number Diff line change 44 *
55 * Spawned via stdio by `examples/client/src/customMethodExample.ts`; do not run standalone.
66 */
7- import { McpServer , StdioServerTransport } from '@modelcontextprotocol/server' ;
7+ import { McpServer } from '@modelcontextprotocol/server' ;
8+ import { StdioServerTransport } from '@modelcontextprotocol/server/stdio' ;
89import { z } from 'zod/v4' ;
910
1011const SearchParams = z . object ( { query : z . string ( ) , limit : z . number ( ) . int ( ) . default ( 10 ) } ) ;
You can’t perform that action at this time.
0 commit comments