From 555881631de5b9e299b0ccfbe364cb2e873519c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=86=E7=A0=810000?= Date: Thu, 28 May 2026 10:49:58 +0800 Subject: [PATCH] Add docs endpoint shortcuts --- app/templates/docs.html | 8 ++++++++ tests/test_api_mcp.py | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/app/templates/docs.html b/app/templates/docs.html index b29bf65c..0750a1cc 100644 --- a/app/templates/docs.html +++ b/app/templates/docs.html @@ -16,6 +16,7 @@

Project docs

+

Machine-readable shortcuts

+

Payout access

MRWK balances can live on native mrwk1 wallet addresses. A wallet signs transfer, GitHub-link, and claim payloads with its private key; the server verifies signatures and records accepted movements in the explorer.

diff --git a/tests/test_api_mcp.py b/tests/test_api_mcp.py index e0c1901f..3fee9a85 100644 --- a/tests/test_api_mcp.py +++ b/tests/test_api_mcp.py @@ -1543,8 +1543,13 @@ def test_docs_page_lists_live_ltclab_urls(sqlite_url: str) -> None: assert "docs/paid-bounties.md" in docs assert "docs/api-examples.md" in docs assert "OpenAPI docs" in docs + assert 'href="/openapi.json">OpenAPI JSON schema' in docs assert 'href="/activity"' in docs assert 'href="/api/v1/activity"' in docs + assert 'href="/api/v1/bounties?status=open&sort=available"' in docs + assert 'href="/api/v1/bounties/summary?status=open"' in docs + assert 'href="/api/v1/activity?limit=20"' in docs + assert 'href="https://mcp.mrwk.ltclab.site/mcp"' in docs assert "SwaggerUIBundle" in api_docs