Skip to content

Commit 1493591

Browse files
committed
docs: rewrite Chinese README to match current English README
1 parent ce25bd8 commit 1493591

2 files changed

Lines changed: 59 additions & 24 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align = "right">
2-
<a href="docs/readme/README.zh-cn.md">简体中文(待更新)</a>
2+
<a href="docs/readme/README.zh-cn.md">简体中文</a>
33
</div>
44

55
# RMCP

‎docs/readme/README.zh-cn.md‎

Lines changed: 58 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
1+
<div align = "right">
2+
<a href="../../README.md">English</a>
3+
</div>
4+
15
# RMCP
26
[![Crates.io Version](https://img.shields.io/crates/v/rmcp)](https://crates.io/crates/rmcp)
3-
![Release status](https://github.commodelcontextprotocol/rust-sdk/actions/workflows/release.yml/badge.svg)
4-
[![docs.rs](https://img.shields.io/docsrs/rmcp)](https://docs.rs/rmcp/latest/rmcp)
7+
<!-- ![Release status](https://github.com/modelcontextprotocol/rust-sdk/actions/workflows/release.yml/badge.svg) -->
8+
<!-- [![docs.rs](todo)](todo) -->
59

6-
一个基于 tokio 异步运行时的官方 Model Context Protocol SDK 实现。
10+
一个基于 tokio 异步运行时的官方 Rust Model Context Protocol SDK 实现。
711

8-
本项目使用了以下开源库:
12+
本仓库包含以下 crate:
913

10-
- [rmcp](crates/rmcp): 实现 RMCP 协议的核心库 (详见:[rmcp](crates/rmcp/README.md))
11-
- [rmcp-macros](crates/rmcp-macros): 一个用于生成 RMCP 工具实现的过程宏库。 (详见:[rmcp-macros](crates/rmcp-macros/README.md))
14+
- [rmcp](../../crates/rmcp):实现 RMCP 协议的核心库 - 详见 [rmcp](../../crates/rmcp/README.md)
15+
- [rmcp-macros](../../crates/rmcp-macros):用于生成 RMCP 工具实现的过程宏库 - 详见 [rmcp-macros](../../crates/rmcp-macros/README.md)
1216

1317
## 使用
1418

1519
### 导入
20+
1621
```toml
17-
rmcp = { version = "0.2.0", features = ["server"] }
22+
rmcp = { version = "0.16.0", features = ["server"] }
1823
## 或使用最新开发版本
1924
rmcp = { git = "https://github.com/modelcontextprotocol/rust-sdk", branch = "main" }
2025
```
26+
### 第三方依赖
2127

22-
### 第三方依赖库
23-
基本依赖:
24-
- [tokio required](https://github.com/tokio-rs/tokio)
25-
- [serde required](https://github.com/serde-rs/serde)
28+
基本依赖:
29+
- [tokio](https://github.com/tokio-rs/tokio)
30+
- [serde](https://github.com/serde-rs/serde)
31+
JSON Schema 生成 (version 2020-12):
32+
- [schemars](https://github.com/GREsau/schemars)
2633

2734
### 构建客户端
35+
2836
<details>
29-
<summary>构建客户端</summary>
37+
<summary>启动客户端</summary>
3038

3139
```rust, ignore
3240
use rmcp::{ServiceExt, transport::{TokioChildProcess, ConfigureCommandExt}};
@@ -57,7 +65,7 @@ let transport = (stdin(), stdout());
5765
<details>
5866
<summary>构建服务</summary>
5967

60-
You can easily build a service by using [`ServerHandler`](crates/rmcp/src/handler/server.rs) or [`ClientHandler`](crates/rmcp/src/handler/client.rs).
68+
你可以通过 [`ServerHandler`](../../crates/rmcp/src/handler/server.rs) 或 [`ClientHandler`](../../crates/rmcp/src/handler/client.rs) 轻松构建服务。
6169

6270
```rust, ignore
6371
let service = common::counter::Counter::new();
@@ -68,21 +76,21 @@ let service = common::counter::Counter::new();
6876
<summary>启动服务端</summary>
6977

7078
```rust, ignore
71-
// this call will finish the initialization process
79+
// 此调用将完成初始化过程
7280
let server = service.serve(transport).await?;
7381
```
7482
</details>
7583

7684
<details>
7785
<summary>与服务端交互</summary>
7886

79-
Once the server is initialized, you can send requests or notifications:
87+
服务端初始化完成后,你可以发送请求或通知:
8088

8189
```rust, ignore
82-
// request
90+
// 请求
8391
let roots = server.list_roots().await?;
8492
85-
// or send notification
93+
// 或发送通知
8694
server.notify_cancelled(...).await?;
8795
```
8896
</details>
@@ -97,27 +105,54 @@ let quit_reason = server.cancel().await?;
97105
```
98106
</details>
99107

100-
### 示例
101-
查看 [examples](examples/README.md)
108+
109+
## 示例
110+
111+
查看 [examples](../../examples/README.md)。
112+
113+
## 功能文档
114+
115+
查看 [docs/FEATURES.md](../FEATURES.md) 了解核心 MCP 功能的详细文档:资源、提示词、采样、根目录、日志、补全、通知和订阅。
102116

103117
## OAuth 支持
104118

105-
查看 [oauth_support](docs/OAUTH_SUPPORT.md)
119+
查看 [OAuth 支持](../OAUTH_SUPPORT.md) 了解详情。
106120

107121
## 相关资源
108122

109-
- [MCP Specification](https://modelcontextprotocol.io/specification/2025-11-25)
123+
- [MCP 规范](https://modelcontextprotocol.io/specification/2025-11-25)
110124
- [Schema](https://github.com/modelcontextprotocol/specification/blob/main/schema/2025-11-25/schema.ts)
111125

112126
## 相关项目
127+
128+
### 扩展 `rmcp`
129+
130+
- [rmcp-actix-web](https://gitlab.com/lx-industries/rmcp-actix-web) - 基于 `actix_web` 的 `rmcp` 后端
131+
- [rmcp-openapi](https://gitlab.com/lx-industries/rmcp-openapi) - 将 OpenAPI 定义的端点转换为 MCP 工具
132+
133+
### 基于 `rmcp` 构建
134+
135+
- [goose](https://github.com/block/goose) - 一个超越代码建议的开源、可扩展 AI 智能体
136+
- [apollo-mcp-server](https://github.com/apollographql/apollo-mcp-server) - 通过 Apollo GraphOS 将 AI 智能体连接到 GraphQL API 的 MCP 服务
137+
- [rustfs-mcp](https://github.com/rustfs/rustfs/tree/main/crates/mcp) - 为 AI/LLM 集成提供 S3 兼容对象存储操作的高性能 MCP 服务
113138
- [containerd-mcp-server](https://github.com/jokemanfire/mcp-containerd) - 基于 containerd 实现的 MCP 服务
139+
- [rmcp-openapi-server](https://gitlab.com/lx-industries/rmcp-openapi/-/tree/main/crates/rmcp-openapi-server) - 将 OpenAPI 定义的端点暴露为 MCP 工具的高性能 MCP 服务
140+
- [nvim-mcp](https://github.com/linw1995/nvim-mcp) - 与 Neovim 交互的 MCP 服务
141+
- [terminator](https://github.com/mediar-ai/terminator) - AI 驱动的桌面自动化 MCP 服务,支持跨平台,成功率超过 95%
142+
- [stakpak-agent](https://github.com/stakpak/agent) - 安全加固的 DevOps 终端智能体,支持 MCP over mTLS、流式传输、密钥令牌化和异步任务管理
143+
- [video-transcriber-mcp-rs](https://github.com/nhatvu148/video-transcriber-mcp-rs) - 使用 whisper.cpp 从 1000+ 平台转录视频的高性能 MCP 服务
144+
- [NexusCore MCP](https://github.com/sjkim1127/Nexuscore_MCP) - 具有 Frida 集成和隐蔽脱壳功能的高级恶意软件分析与动态检测 MCP 服务
145+
- [spreadsheet-mcp](https://github.com/PSU3D0/spreadsheet-mcp) - 面向 LLM 智能体的高效 Token 使用的电子表格分析 MCP 服务,支持自动区域检测、重新计算、截图和编辑
146+
- [hyper-mcp](https://github.com/hyper-mcp-rs/hyper-mcp) - 通过 WebAssembly (WASM) 插件扩展功能的快速、安全的 MCP 服务
147+
- [rudof-mcp](https://github.com/rudof-project/rudof/tree/master/rudof_mcp) - RDF 验证和数据处理 MCP 服务,支持 ShEx/SHACL 验证、SPARQL 查询和格式转换。支持 stdio 和 Streamable HTTP 传输,具备完整的 MCP 功能(工具、提示词、资源、日志、补全、任务)
148+
114149

115150
## 开发
116151

117152
### 贡献指南
118153

119-
查看 [docs/CONTRIBUTE.MD](docs/CONTRIBUTE.MD)
154+
查看 [docs/CONTRIBUTE.MD](../CONTRIBUTE.MD) 获取贡献提示。
120155

121156
### 使用 Dev Container
122157

123-
如果你想使用 Dev Container,查看 [docs/DEVCONTAINER.md](docs/DEVCONTAINER.md) 获取开发指南。
158+
如果你想使用 Dev Container,查看 [docs/DEVCONTAINER.md](../DEVCONTAINER.md) 获取开发指南。

0 commit comments

Comments
 (0)