MCP.so
登录

MCP Server-Client Example

@joeBlockchain

基本信息

分类

其他

传输方式

stdio

作者

joeBlockchain

关于 MCP Server-Client Example

暂无概览

MCP Server-Client Example 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Server-Client Example 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server-Client Example?

This project demonstrates a basic implementation of the Model Context Protocol (MCP) using the TypeScript SDK. It includes both an MCP server and client that communicate over stdio transport, providing resource listing and reading functionality.

How to use MCP Server-Client Example?

Clone the repository, install dependencies with npm install, then start the server with npm run start:server and the client with npm run start:client in separate terminal windows. The client connects to the server, requests a list of available resources, and reads the content of an example resource.

Key features of MCP Server-Client Example

  • MCP server and client implementation over stdio transport
  • Resource listing and reading via MCP protocol
  • Example resource accessible at file:///example.txt
  • Basic error handling for unknown resources

Use cases of MCP Server-Client Example

  • Learning how to implement MCP server-client communication
  • Prototyping MCP resource access workflows
  • Testing MCP SDK integration with TypeScript

常见问题

1

What are the runtime requirements?

Node.js v16 or higher and npm.

2

What dependencies does the project use?

The @modelcontextprotocol/sdk, ts-node, and typescript packages.

3

How do I add a new resource?

Modify the `ListResourcesRequestSchema` handler in `src/index.ts` and add the new resource URI and name to the returned resources array.

4

What transport protocol does MCP Server-Client Example use?

Communication between server and client uses stdio transport.

评论

其他 分类下的更多 MCP 服务器