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

# 概述

<Info>**协议修订版本**: 2025-03-26</Info>

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

* **提示词 (Prompts)**: 预定义的模板或指令，用于引导语言模型的交互
* **资源 (Resources)**: 提供给模型的附加上下文的结构化数据或内容
* **工具 (Tools)**: 可执行的功能，使模型能够执行操作或检索信息

每个基础模块都可以在以下控制层级中进行概括：

| 基础模块      | 控制方  | 描述                | 示例                |
| --------- | ---- | ----------------- | ----------------- |
| Prompts   | 用户控制 | 由用户选择调用的交互式模板     | 斜杠命令、菜单选项         |
| Resources | 应用控制 | 由客户端附加和管理的上下文数据   | 文件内容、git 历史记录     |
| Tools     | 模型控制 | 向LLM暴露的、用于执行操作的功能 | API POST请求、文件写入操作 |

请在下方详细了解这些核心模块：

<CardGroup cols={3}>
  <Card title="提示词" icon="message" href="/specification/2025-03-26/server/prompts" />

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

  <Card title="工具" icon="wrench" href="/specification/2025-03-26/server/tools" />
</CardGroup>
