Repository navigation
Wiki search: search_wiki and get_wiki_page (25 tools) - #8
Merged
Merged
Conversation
…i docs and examples
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.
Wiki search:
search_wikiandget_wiki_page(25 tools)Two light tools backed by MediaWiki's API over a private http path from the MCP host to the wiki host (
WIKI_BASE_URL+WIKI_HOST_HEADER; unconfigured →backend_unavailable).What ships
search_wiki {query, limit, offset}: Help, Category and FlyBase namespaces viagenerator=search&redirects=1&prop=info; redirect duplicates and broken redirects dropped; one wildcard retry on zero hits; plain-text snippets; public page URLs.get_wiki_page {title, max_chars}: parsed HTML converted to readable plain text (lists, definition lists, tables, headings, links),text_truncated,sections(capped) andsections_total, licence when the wiki publishes one; post-redirect namespace allow-list.limit_exceeded), Host header, query pairs viaappend_pair, errors never carry user text; dedicatedLimits::wikipermit so a hung wiki never holds chado permits; licence lookup with failure caching./healthgainswiki: unconfigured | ok | unreachable(never flipsstatus). Descriptions say wiki text is community-editable and untrusted.Verification
lib 83, wiki_client 15, tools_wiki 21, conformance 4, cache 1, live 4 (fixture DB); fmt, clippy, catalog clean. Design reviewed by Opus and Fable (two revisions); two tasks each with review + fix round; Fable whole-branch review with one fix wave; public-safety pass clean.
Not in this PR
Production rollout (env on the host; the security-group rule for the private path is already in place).