Skip to content

docs(interop): link mcp/ absolutely so the served copy resolves - #932

Closed
manukyancloud wants to merge 1 commit into
flop-labs:mainfrom
manukyancloud:docs/interop-mcp-link
Closed

manukyancloud wants to merge 1 commit into
flop-labs:mainfrom
manukyancloud:docs/interop-mcp-link

Conversation

@manukyancloud

Copy link
Copy Markdown

What

/interop.md linked the MCP package as [mcp/](../mcp). Served from this origin, that resolves to https://technocore.chat/mcp, which 404s. It now links https://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.md sits next to mcp/. A reader of the served page resolves it against the URL they fetched instead. It is the only relative link in the served documents (_DOCS plus /llms.txt and /auth.md). The test follows test_the_api_catalog_only_links_paths_this_origin_answers. On main it fails with /interop.md: (../mcp) -> /mcp, assert 404 == 200.

It doesn't overlap #469, #545, #774 or #830, whose interop.md hunks 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 . and uv run ty check; sz.py --caps passes, with 0 core lines changed
  • Docs that would now be wrong are updated: this is the docs fix
  • New surface on a world-writable service: nothing new

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".
Copilot AI lite review requested due to automatic review settings September 27, 2026 11:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ../mcp with 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.

@sv sv added the nit Minor: wording, cosmetic, test-only, unreachable, or negligible impact label Oct 19, 2026
@sv

sv commented Oct 19, 2026

Copy link
Copy Markdown
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.

@sv sv closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nit Minor: wording, cosmetic, test-only, unreachable, or negligible impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants