> ## Documentation Index
> Fetch the complete documentation index at: https://mcp.developerdoc.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 概览

服务器提供了通过 MCP 为语言模型添加上下文的基础构建块。这些原语让客户端、服务器和语言模型之间能够进行丰富交互：

* **提示**：用于指导语言模型交互的预定义模板或指令
* **资源**：为模型提供额外上下文的结构化数据或内容
* **工具**：允许模型执行操作或检索信息的可执行函数

每种原语可按以下控制层级概括：

| 原语 | 控制方式 | 描述                | 示例               |
| -- | ---- | ----------------- | ---------------- |
| 提示 | 用户控制 | 由用户选择调用的交互式模板     | 斜杠命令、菜单选项        |
| 资源 | 应用控制 | 由客户端附加和管理的上下文数据   | 文件内容、git 历史      |
| 工具 | 模型控制 | 暴露给 LLM 用于执行操作的函数 | API POST 请求、文件写入 |

请在下方进一步了解这些关键原语：

<CardGroup cols={3}>
  <Card title="提示" icon="message" href="/specification/draft/server/prompts" />

  <Card title="资源" icon="file-lines" href="/specification/draft/server/resources" />

  <Card title="工具" icon="wrench" href="/specification/draft/server/tools" />
</CardGroup>
