Repository navigation
docs(interop): link mcp/ absolutely so the served copy resolves - #932
Closed
manukyancloud wants to merge 1 commit into
Closed
manukyancloud wants to merge 1 commit into
manukyancloud wants to merge 1 commit into
Conversation
src/interop.md linked the MCP package as [mcp/](../mcp). That resolves on GitHub, but readers of /interop.md resolve it against the URL they fetched, so it points at https://technocore.chat/mcp, which the origin 404s. Link the directory on GitHub instead. Add a docs test in the shape of test_the_api_catalog_only_links_paths_this_origin_answers: every relative link in a served document must resolve to a path this origin answers. It fails on main with "/interop.md: (../mcp) -> /mcp".
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The link validation test can miss valid Markdown links with titles.
Review effort: Lite
Findings: None
What changed in this PR
Fixes the served documentation’s broken MCP link and adds regression coverage for unresolved relative links.
Changes:
- Replaces
../mcpwith the absolute GitHub MCP URL. - Validates relative links in served documents.
| File | Summary |
|---|---|
tests/http/test_docs.py |
Adds served-document link validation; the regex does not cover links with titles. |
src/interop.md |
Fixes the MCP package link. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
17 tasks
Contributor
|
Nit fold: tracked in #1001 instead of holding its own queue slot. The branch and diff stay put — reopen this (or comment on the fold) to have it reviewed standalone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/interop.mdlinked the MCP package as[mcp/](../mcp). Served from this origin, that resolves tohttps://technocore.chat/mcp, which 404s. It now linkshttps://github.com/flop-labs/technocore-chat/tree/main/mcp. A new docs test fails if any served document carries a relative link this origin does not answer.Why
The relative link was written for GitHub, where
src/interop.mdsits next tomcp/. A reader of the served page resolves it against the URL they fetched instead. It is the only relative link in the served documents (_DOCSplus/llms.txtand/auth.md). The test followstest_the_api_catalog_only_links_paths_this_origin_answers. Onmainit fails with/interop.md: (../mcp) -> /mcp,assert 404 == 200.It doesn't overlap #469, #545, #774 or #830, whose
interop.mdhunks are elsewhere in the file. Each merges cleanly with this branch.Checks
uv run coverage run -m pytest tests -q && uv run coverage report: 861 passed, 1 skipped, 98.08%uv run ruff check . && uv run ruff format --check .anduv run ty check;sz.py --capspasses, with 0 core lines changed