[FEATURE] Official documentation MCP server for agents to query OpenCode docs #9342

Open
opened 2026-02-16 18:12:14 -05:00 by yindo · 2 comments
Owner

Originally created by @wufei-png on GitHub (Feb 14, 2026).

Originally assigned to: @jayair on GitHub.

Summary

OpenCode has great documentation at https://dev.opencode.ai/docs/ (e.g. MCP servers, config, agents, rules). Currently there is no official MCP server that exposes this documentation so that AI agents (e.g. in Cursor, Claude Code, or other MCP clients) can look up OpenCode docs on demand.

Proposal

Provide an official OpenCode documentation MCP server that agents can add as a remote (or local) MCP, with tools/resources such as:

  • Resources: OpenCode docs as MCP resources (e.g. by section: config, mcp-servers, agents, rules) so agents can read them when needed.
  • Tools (optional): e.g. search_opencode_docs or get_opencode_doc so the agent can query specific topics.

This would allow:

  • Agents to answer OpenCode-related questions using up-to-date docs instead of stale training data.
  • Consistent behavior across different AI coding assistants that support MCP.
  • Better onboarding for users who rely on agent-driven workflows.

Use case

As an user of an AI coding assistant with MCP, I want to add an "OpenCode docs" MCP so that when I ask "How do I configure a remote MCP in OpenCode?" or "What's the schema for opencode config?", the agent can fetch the relevant docs and give accurate, current answers.

References

If this is already planned or exists elsewhere, please point me to it. Thank you.

Originally created by @wufei-png on GitHub (Feb 14, 2026). Originally assigned to: @jayair on GitHub. ## Summary OpenCode has great documentation at https://dev.opencode.ai/docs/ (e.g. [MCP servers](https://dev.opencode.ai/docs/mcp-servers/), config, agents, rules). Currently there is **no official MCP server** that exposes this documentation so that **AI agents** (e.g. in Cursor, Claude Code, or other MCP clients) can look up OpenCode docs on demand. ## Proposal Provide an **official OpenCode documentation MCP server** that agents can add as a remote (or local) MCP, with tools/resources such as: - **Resources**: OpenCode docs as MCP resources (e.g. by section: config, mcp-servers, agents, rules) so agents can read them when needed. - **Tools** (optional): e.g. `search_opencode_docs` or `get_opencode_doc` so the agent can query specific topics. This would allow: - Agents to answer OpenCode-related questions using up-to-date docs instead of stale training data. - Consistent behavior across different AI coding assistants that support MCP. - Better onboarding for users who rely on agent-driven workflows. ## Use case As an user of an AI coding assistant with MCP, I want to add an "OpenCode docs" MCP so that when I ask "How do I configure a remote MCP in OpenCode?" or "What's the schema for opencode config?", the agent can fetch the relevant docs and give accurate, current answers. ## References - Existing docs: https://dev.opencode.ai/docs/ - MCP spec (resources/tools): https://modelcontextprotocol.io If this is already planned or exists elsewhere, please point me to it. Thank you.
yindo added the docs label 2026-02-16 18:12:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10858: [FEATURE]: Ability to ask opencode how to use opencode
  • #3067: Does opencode have access to opencode's docs?

Both of these ask for similar functionality - enabling agents to access OpenCode documentation. Your proposal here is more specific and structured (focusing on an official MCP server), but you may want to review these existing discussions to avoid duplicating effort.

@github-actions[bot] commented on GitHub (Feb 14, 2026): This issue might be a duplicate of existing issues. Please check: - #10858: [FEATURE]: Ability to ask opencode how to use opencode - #3067: Does opencode have access to opencode's docs? Both of these ask for similar functionality - enabling agents to access OpenCode documentation. Your proposal here is more specific and structured (focusing on an official MCP server), but you may want to review these existing discussions to avoid duplicating effort.
Author
Owner

@wufei-png commented on GitHub (Feb 14, 2026):

Competitive landscape (docs MCP)

Already available:

Claude Code / Anthropic — Claude Code supports adding MCP servers (e.g. claude mcp add --transport http ...), but there does not appear to be an official Anthropic documentation MCP that exposes docs.anthropic.com to agents (only docs on how to use MCP with Claude).

Having an official OpenCode docs MCP would align with what LangChain and OpenAI already offer and make OpenCode docs first-class for agent workflows.

@wufei-png commented on GitHub (Feb 14, 2026): ## Competitive landscape (docs MCP) **Already available:** - **LangChain** — Official docs MCP for agents: https://docs.langchain.com/mcp - Described at https://docs.langchain.com/use-these-docs (Connect with Claude Code, Cursor, VS Code, Codex, etc.) - *"Our documentation includes a built-in Model Context Protocol (MCP) server that lets AI applications query the latest docs in real-time."* - **OpenAI** — Official Docs MCP for developer documentation: https://developers.openai.com/mcp - Described at https://developers.openai.com/resources/docs-mcp/ - *"OpenAI hosts a public MCP server for developer documentation on developers.openai.com and platform.openai.com"* — read-only, search + page content. **Claude Code / Anthropic** — Claude Code supports adding MCP servers (e.g. `claude mcp add --transport http ...`), but there does not appear to be an official **Anthropic documentation MCP** that exposes docs.anthropic.com to agents (only docs on how to use MCP with Claude). Having an official OpenCode docs MCP would align with what LangChain and OpenAI already offer and make OpenCode docs first-class for agent workflows.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9342