Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 客户端开发者
description: 快速开始 - 客户端开发者
---

开始构建自己的客户端,可以与所有 MCP 服务器集成。

在本教程中,您将学习如何构建一个由 LLM 驱动、可连接 MCP 服务器的聊天机器人客户端。
Expand Down
77 changes: 41 additions & 36 deletions content/docs/(get-started)/quick-start/server-developers.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: 针对服务端开发人员
description: 快速开始 - 针对服务端开发人员
---

# 针对服务端开发人员

> 开始构建自己的服务器,以便在Claude中用于Desktop和其他客户端
Expand Down Expand Up @@ -245,7 +250,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

例如,如果你有[VS Code](https://code.visualstudio.com/) 安装:

<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Expand All @@ -262,21 +267,21 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
然后,您将在“mcpServers”键中添加服务器。如果至少有一台服务器配置正确,MCP UI元素将仅显示在Claude for Desktop中。
在这种情况下,我们将添加单个天气服务器,如下所示:

<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```json Python
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
"run",
"weather.py"
]
}
}
"weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
"run",
"weather.py"
]
}
}
}
```
</Tab>
Expand All @@ -285,16 +290,16 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
```json Python
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\weather",
"run",
"weather.py"
]
}
}
"weather": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\weather",
"run",
"weather.py"
]
}
}
}
```
</Tab>
Expand Down Expand Up @@ -689,7 +694,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

例如,如果你有安装 [VS Code](https://code.visualstudio.com/) :

<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Expand All @@ -707,19 +712,19 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

在这种情况下,我们将添加单个天气服务器,如下所示:

<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
<CodeGroup>
```json Node
{
"mcpServers": {
"weather": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/index.js"
]
}
}
"weather": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/index.js"
]
}
}
}
```
</CodeGroup>
Expand Down Expand Up @@ -774,7 +779,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

您需要添加以下依赖项:

<Tabs>
<Tabs items={['Maven', 'Gradle']}>
<Tab title="Maven">
```xml
<dependencies>
Expand Down Expand Up @@ -922,7 +927,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

例如,如果你已经安装[VS Code](https://code.visualstudio.com/):

<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Expand All @@ -941,7 +946,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
在这种情况下,我们将添加单个天气服务器,如下所示:


<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```json java
{
Expand Down Expand Up @@ -1593,7 +1598,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
例如,如果你有[VS代码](https://code.visualstudio.com/)已安装:


<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Expand All @@ -1610,7 +1615,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
然后,您将在`mcpServers`键中添加服务器。如果至少有一台服务器配置正确,MCP UI元素将仅显示在Claude for Desktop中。
在这种情况下,我们将添加单个天气服务器,如下所示:

<Tabs>
<Tabs items={['MacOS/Linux', 'Windows']}>
<Tab title="MacOS/Linux">
```json
{
Expand Down
6 changes: 5 additions & 1 deletion content/docs/concepts/core-architecture.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: 核心架构
---

# 核心架构

> 了解 MCP 如何连接客户端、服务器和 LLM
Expand Down Expand Up @@ -189,7 +193,7 @@ SDK 和应用程序可以定义自己的 -32000 以上的错误代码。

以下是实现 MCP 服务器的一个基本示例:

<Tabs>
<Tabs items={['TypeScript', 'Python']}>
<Tab title="TypeScript">
```typescript
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
Expand Down