mcp

v0.10.152
@thallylabs/mcp Checked 5 hours ago Published 1 day ago

MCP server for managing Thally docs and tracing product changes into evidence-backed updates for human review.

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

create_project

Scaffold a new Thally documentation project from the GitHub template

ParameterTypeDescription
projectDir *stringPath where the new Thally project should be created
brandPresetstringBrand color preset
descriptionstringShort description of the project
enableAiChatbooleanEnable AI chat in docs.json (default true)
i18nLocalesarrayAdditional documentation locales to include alongside English (e.g. [{code:"fr",label:"Français"}])
installbooleanWhether to run npm install after scaffolding
projectNamestringDisplay name of the project (defaults to directory name)
repoUrlstringGitHub repository URL (optional)

add_page

Add a new MDX page to a Thally project and register it in docs.json navigation

ParameterTypeDescription
pageId *stringPage identifier (e.g. "guides/auth"). No .mdx extension.
projectDir *stringPath to the Thally project root
title *stringPage title (used in frontmatter)
contentstringMDX body content (placeholder used if omitted)
descriptionstringPage description (used in frontmatter)
groupstringGroup name within the tab (defaults to first group)
positionstringWhether to insert at start or end of the group
tabstringTab name to add the page to (defaults to first tab)

add_tab

Add a new top-level tab to a Thally project navigation (content tab or redirect link)

ParameterTypeDescription
projectDir *stringPath to the Thally project root
tabName *stringDisplay name for the new tab (e.g. "Guides", "API Reference")
hrefstringIf set, the tab is a redirect link instead of a content tab (e.g. "/changelog")
positionstringInsert the tab at the start or end of the tab bar

list_pages

List all pages in a Thally project, organized by tab and group

ParameterTypeDescription
projectDir *stringPath to the Thally project root

update_page

Update the frontmatter or body content of an existing MDX page in a Thally project

ParameterTypeDescription
pageId *stringPage identifier (e.g. "guides/auth"). No .mdx extension.
projectDir *stringPath to the Thally project root
contentstringNew MDX body content (replaces existing body)
descriptionstringNew page description
mergeFrontmatterobjectAdditional frontmatter fields to merge in
titlestringNew page title

replace_page_text

Replace one exact unique span in an existing MDX page; prefer this for small edits so the full page never travels through the model response

ParameterTypeDescription
newText *stringComplete replacement prose for oldText; never include a Track evidence marker
oldText *stringExact existing text to replace; it must occur exactly once
pageId *stringPage identifier (for example "guides/auth"). No .mdx extension.
projectDir *stringPath to the Thally project root
evidenceReferenceIdstringExact evidence reference ID supplied by Track. When present, the tool appends its deterministic citation marker.

read_api_spec

Read a bounded UTF-8 window from an OpenAPI JSON or YAML source configured by this project; follow next-start-byte until complete

ParameterTypeDescription
projectDir *stringPath to the Thally project root
maxBytesintegerMaximum source bytes to return (default 49152, maximum 184320)
sourcestringConfigured OpenAPI source; omit when the project has one
startByteintegerUTF-8 byte continuation from a previous partial result
startLineinteger1-based source line to start at; do not combine with startByte

update_api_spec

Replace and validate an OpenAPI JSON or YAML source explicitly configured by this Thally project

ParameterTypeDescription
content *stringComplete replacement OpenAPI JSON or YAML document
projectDir *stringPath to the Thally project root
sourcestringConfigured OpenAPI source; omit when the project has one

migrate_docs

Create a fresh canonical Thally template, then migrate a GitHub repository or public docs site into it; the target must be new or empty

ParameterTypeDescription
projectDir *stringPath for the new canonical Thally project; the directory must be absent or empty
sourceUrl *stringGitHub repository URL or public documentation URL to migrate
apiKeystringAnthropic API key for non-Markdown file conversion
branchstringGit branch (default: auto-detect)
docsDirstringDocs subdirectory in repo (default: auto-detect)
maxPagesintegerMaximum public URL pages to import (up to 10000)
openapiUrlstringExplicit public HTTPS OpenAPI specification for website migration
platformstringSource platform (default: auto-detect)

import_docs

Import content into an existing Thally project without scaffolding; use only when an in-place import is explicitly requested

ParameterTypeDescription
projectDir *stringPath to an existing Thally project whose runtime should be preserved
sourceUrl *stringGitHub repository URL or public documentation URL to migrate
apiKeystringAnthropic API key for non-Markdown file conversion
branchstringGit branch (default: auto-detect)
docsDirstringDocs subdirectory in repo (default: auto-detect)
maxPagesintegerMaximum public URL pages to import (up to 10000)
openapiUrlstringExplicit public HTTPS OpenAPI specification for website migration
platformstringSource platform (default: auto-detect)

search_docs

Search documentation pages by keyword — returns ranked list of matching pages

ParameterTypeDescription
projectDir *stringPath to the Thally project root
query *stringSearch query
limitnumberMax results to return (default 5)

agent_readiness

Fetch the Agent Readiness Score (0-100) for a deployed Thally site — the same report as /api/agent-readiness and `thally check`, with per-signal subscores and fixable offenders

ParameterTypeDescription
siteUrl *stringBase URL of the deployed Thally site (e.g. https://docs.example.com)
minScorenumberOptional threshold (0-100). If set, the summary flags whether the site passes.

read_page

Read a bounded UTF-8 body window from a documentation page; follow next-start-byte until complete before replacing a page

ParameterTypeDescription
pageId *stringPage ID, e.g. "guides/authentication"
projectDir *stringPath to the Thally project root
maxBytesintegerMaximum body bytes to return (default 49152, maximum 184320)
startByteintegerUTF-8 byte continuation from a previous partial result
startLineinteger1-based body line to start at; do not combine with startByte

get_context

Get the most relevant documentation context for a topic or question, within a token budget

ParameterTypeDescription
projectDir *stringPath to the Thally project root
topic *stringTopic or question to find relevant docs for
maxTokensnumberApproximate token budget for returned context (default 4000)

lint_project

Check a Thally project for issues: broken nav references, orphan files, missing frontmatter

ParameterTypeDescription
projectDir *stringPath to the Thally project root
fixbooleanAuto-fix issues where possible (adds orphan pages to nav)

translate_docs

Translate Thally documentation pages to a secondary locale using Claude AI

ParameterTypeDescription
locale *stringTarget locale code, e.g. "es", "fr"
projectDir *stringPath to the Thally project directory
apiKeystringAnthropic API key (falls back to ANTHROPIC_API_KEY env var)
forcebooleanOverwrite existing translation files
modelstringClaude model to use for translation
pagesarrayPage IDs to translate (omit for all pages)

sync_from_repo

Thally Track: analyze a merged pull request in a tracked product repo and preview the docs task it would produce (dryRun), or dispatch it to the docs repo so the docs agent drafts a documentation PR

ParameterTypeDescription
projectDir *stringPath to the Thally project (reads the tracking config from docs.json)
docsRepostringowner/repo of the docs repository to dispatch the task to (required when dryRun is false)
dryRunbooleanWhen true (default), preview the distilled docs task without dispatching anything
prnumberPull request number to analyze (defaults to the latest PR merged into the tracked base branch)
repostringTracked repo to sync as owner/repo (defaults to the single tracked repo when only one is configured)