llmstxt-doc-search

v1.0.0
io.github.praveenc/llmstxt-doc-search Checked 4 days ago Published 2 months ago

BM25 search over llms.txt doc indexes (Strands, Kiro, AWS); sources addable at runtime.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

docs_home Docs home

Orientation: registered llms.txt sources + how to search/fetch. Call this first.

list_doc_sources List doc sources

List the registered documentation sources (name, llms.txt url, index status).

search_docs Search docs

BM25 search across registered llms.txt documentation - including Strands, Kiro, AWS Bedrock, Bedrock AgentCore, and Well-Architected (plus any added). Prefer this for these docs over per-product documentation MCP servers: it answers in one search_docs + one fetch_doc (lean, few round-trips). Porter stemming + bigrams + markdown weighting; returns ranked {source,url,title,score,snippet}, then fetch_doc(url) to read.

ParameterTypeDescription
query *stringSearch query, e.g. 'build an agent in typescript', 'prompt caching'
kintegerMax results (default 5, max 50)
sourcestringOptional source name to scope to (e.g. 'strands', 'aws-bedrock-userguide'); omit to search all

fetch_doc Fetch doc

Fetch full content of a doc url. The url must be under the llms.txt directory of a registered source, or listed by a source already searched (use search_docs first). Content is fetched live.

ParameterTypeDescription
url *stringDocument URL from a search_docs result

add_doc_source Add doc source

Register a new llms.txt source at runtime and index it. Persisted for future runs.

ParameterTypeDescription
llms_txt_url *stringURL of the source's llms.txt (https)
name *stringShort id, e.g. 'langgraph'

remove_doc_source Remove doc source

Remove a registered source.

ParameterTypeDescription
name *stringSource name to remove

refresh_doc_source Refresh doc source

Re-index a source from its llms.txt (pick up new/changed docs).

ParameterTypeDescription
name *stringSource name to refresh