MCP.so
登录

Context7 MCP Server for Zed

@akbxr

关于 Context7 MCP Server for Zed

Context7 MCP Server for Zed

基本信息

分类

其他

许可证

MIT

运行时

rust

传输方式

stdio

发布者

akbxr

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

2

Resolves a general library name into a Context7-compatible library ID.

Fetches documentation for a library using a Context7-compatible library ID.

概览

What is Context7 MCP Server for Zed?

This extension integrates Context7 as a Model Context Protocol (MCP) server for Zed's Assistant. It provides up-to-date, version-specific documentation and code examples straight from the source, placing them directly into your prompt context to replace outdated or hallucinated LLM responses.

How to use Context7 MCP Server for Zed?

Install the extension from the Zed extension marketplace. Add use context7 to your question in Zed Assistant (e.g., "How do I use the new Next.js after function? use context7"). For agent mode, enable the Context7 MCP server in assistant settings (toggle the red dot to green) and enable it in the active assistant profile. Optionally set a context7_api_key environment variable in your Zed settings.

Key features of Context7 MCP Server for Zed

  • Integrates Context7 as an MCP server for Zed Assistant
  • Fetches up-to-date, version-specific documentation
  • Replaces outdated code examples and hallucinated APIs
  • Triggered by adding use context7 to any prompt
  • Provides two tools: resolve-library-id and get-library-docs
  • Supports optional API key configuration

Use cases of Context7 MCP Server for Zed

  • Getting current Next.js after function documentation
  • Invalidating queries in React Query with correct syntax
  • Retrieving route protection code for NextAuth
  • Fetching docs for any library with optional topic focus

FAQ from Context7 MCP Server for Zed

What problem does Context7 solve?

LLMs like those in Zed Assistant rely on outdated training data. Context7 supplies live, version-specific docs and code examples, eliminating hallucinated APIs and obsolete answers.

How do I trigger Context7 in a prompt?

Simply add the phrase use context7 to the end of your question in Zed Assistant. For example: "How do I protect a route with NextAuth? use context7".

What tools does Context7 MCP Server provide?

It offers resolve-library-id (converts a library name into a Context7-compatible ID) and get-library-docs (fetches documentation for that library, with optional topic and tokens parameters).

Is configuration required to use the server?

For basic use, no. For agent mode, you must manually enable the server in assistant settings and then enable it in the active assistant profile. An optional context7_api_key can be set for API access.

How do I install Context7 MCP Server for Zed?

Install it directly from the Zed extension marketplace. For development, clone the repository and run cargo build.

评论

其他 分类下的更多 MCP 服务器