Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ZREAD_TOKENNoOptional token for advanced features like AI问答 and file fetching. Obtain from https://zread.ai.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
fetch_documentation_pageA

获取仓库文档的指定页面内容。

根据页面 slug(URL 标识符)获取该页面的完整 Markdown 文档内容。 适用于读取特定章节或页面的详细内容。

返回的 Markdown 页面内容中可能包含两种链接格式:

  1. 仓库文件链接 - 格式: [文件名](文件路径#L开始行号-L结束行号) 例如: [index.ts](index.ts#L1-L28) [package.json](package.json#L1-L77) 这类链接指向仓库内的源代码文件,可提取文件路径和行号范围, 使用 fetch_repository_file(repo_path, file_path, start_line, end_line) 获取具体内容。

  2. 文档导航链接 - 格式: [标题](页面slug) 例如: [概述](1-overview) [快速开始](2-quick-start) 这类链接指向文档的其他页面,使用 fetch_documentation_page(repo_path, 页面slug) 获取该页文档内容。

search_documentationB

在仓库文档中搜索关键词。

全文搜索仓库文档,返回包含关键词的页面和相关内容片段。 适用于快速定位文档中的特定信息。

get_documentation_outlineA

获取仓库文档的完整目录结构。

返回仓库的文档目录树,包含所有页面的标题、slug 和层级关系。 首次调用会自动提交索引请求,如果仓库未被索引会返回等待状态。

discover_repositoriesB

发现推荐的代码仓库。

获取 Zread.ai 推荐的优质代码仓库,可按技术主题筛选。 适用于发现新工具、学习优秀项目。

find_repositoriesC

搜索代码仓库。

根据关键词模糊搜索已索引的代码仓库。 支持仓库名称、描述、主题等字段的模糊匹配。

get_trending_repositoriesA

获取本周热门仓库榜单。

获取 GitHub 本周最受欢迎的代码仓库列表,按热度排序。 适用于了解技术趋势和热门项目。

check_repository_statusA

检查仓库索引状态。

查询指定仓库在 Zread.ai 的索引状态和基本信息。 返回的 status 字段: "success"(已索引), "progress"(索引中)

ask_repo_aiA

向仓库 AI 助手提问(AI 调用 AI)。

此工具让当前的 AI 通过 MCP 协议调用另一个专门的仓库 AI 助手来回答问题。 被调用的 AI 助手基于仓库文档内容进行分析,并回答你的问题。

被调用的 AI 助手拥有的工具:

  • get_repo_structure: 分析并展示代码仓库的目录结构

  • view_file_schema: 查看文件大纲,使用 AST 解析提取文件结构

  • view_file_in_detail: 读取并显示文件的具体内容

  • web_search: 网络搜索,使用简洁的关键词检索相关信息

  • doc_search: 文档搜索,查找指南教程文档中的相关页面

如果需要分析特定文件或目录结构,可以在问题中显式要求 AI 使用上述工具进行回复。

对于仓库代码的复杂需求,应该优先使用此工具,如果有多个问题可并行调用。 适用于理解项目架构、使用方法、代码示例等复杂问题。 支持的 AI 模型: glm-4.7 (默认), claude-sonnet-4.5

返回的 Markdown 回答内容中可能包含两种链接格式:

  1. 仓库文件链接 - 格式: [文件名](文件路径#L开始行号-L结束行号) 例如: [index.ts](index.ts#L1-L28) [package.json](package.json#L1-L77) 这类链接指向仓库内的源代码文件,可提取文件路径和行号范围, 使用 fetch_repository_file(repo_path, file_path, start_line, end_line) 获取具体内容。

  2. 文档导航链接 - 格式: [标题](页面slug) 例如: [概述](1-overview) [快速开始](2-quick-start) 这类链接指向文档的其他页面,使用 fetch_documentation_page(repo_path, 页面slug) 获取该页文档内容。

fetch_repository_fileA

获取仓库内的源代码文件内容。

读取指定仓库中的文件内容,支持按行号范围截取。 内部自动通过 repo_path 获取 repo_id。 适用于查看源代码、配置文件等。

示例:

  • 获取完整文件: fetch_repository_file("owner/repo", "src/config.ts")

  • 获取前 50 行: fetch_repository_file("owner/repo", "src/config.ts", 1, 51)

  • 从第 100 行到末尾: fetch_repository_file("owner/repo", "src/config.ts", 100)

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_project分析项目结构和特点
compare_projects对比两个项目的差异

Resources

Contextual data attached and managed by the client

NameDescription
weekly-trending本周热门仓库榜单

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ejfkdev/zread-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server