Skip to content

Fetch docs as markdown in MCP get_docs tool#2453

Merged
simon-johansson merged 1 commit into
mainfrom
simon-johansson/docs-fetch-md
May 19, 2026
Merged

Fetch docs as markdown in MCP get_docs tool#2453
simon-johansson merged 1 commit into
mainfrom
simon-johansson/docs-fetch-md

Conversation

@simon-johansson

Copy link
Copy Markdown
Contributor

Summary

  • get_docs MCP tool now appends .md to the documentation path and returns the raw markdown response body.
  • Drops HTML parsing (golang.org/x/net/html, <main> extraction, whitespace cleanup) since the markdown source is already structured.

Test plan

  • Invoke get_docs from an MCP client and verify markdown content is returned for a known docs path.

Append `.md` to the docs URL and return the raw markdown body
instead of fetching HTML and extracting the <main> tag text.
@simon-johansson simon-johansson requested a review from ekerfelt May 15, 2026 19:10
@simon-johansson simon-johansson merged commit 8dd2dfd into main May 19, 2026
6 checks passed
@simon-johansson simon-johansson deleted the simon-johansson/docs-fetch-md branch May 19, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants