mcp
v0.10.152MCP 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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path where the new Thally project should be created |
brandPreset | string | Brand color preset |
description | string | Short description of the project |
enableAiChat | boolean | Enable AI chat in docs.json (default true) |
i18nLocales | array | Additional documentation locales to include alongside English (e.g. [{code:"fr",label:"Français"}]) |
install | boolean | Whether to run npm install after scaffolding |
projectName | string | Display name of the project (defaults to directory name) |
repoUrl | string | GitHub repository URL (optional) |
add_page
Add a new MDX page to a Thally project and register it in docs.json navigation
| Parameter | Type | Description |
|---|---|---|
pageId * | string | Page identifier (e.g. "guides/auth"). No .mdx extension. |
projectDir * | string | Path to the Thally project root |
title * | string | Page title (used in frontmatter) |
content | string | MDX body content (placeholder used if omitted) |
description | string | Page description (used in frontmatter) |
group | string | Group name within the tab (defaults to first group) |
position | string | Whether to insert at start or end of the group |
tab | string | Tab 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)
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project root |
tabName * | string | Display name for the new tab (e.g. "Guides", "API Reference") |
href | string | If set, the tab is a redirect link instead of a content tab (e.g. "/changelog") |
position | string | Insert 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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project root |
update_page
Update the frontmatter or body content of an existing MDX page in a Thally project
| Parameter | Type | Description |
|---|---|---|
pageId * | string | Page identifier (e.g. "guides/auth"). No .mdx extension. |
projectDir * | string | Path to the Thally project root |
content | string | New MDX body content (replaces existing body) |
description | string | New page description |
mergeFrontmatter | object | Additional frontmatter fields to merge in |
title | string | New 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
| Parameter | Type | Description |
|---|---|---|
newText * | string | Complete replacement prose for oldText; never include a Track evidence marker |
oldText * | string | Exact existing text to replace; it must occur exactly once |
pageId * | string | Page identifier (for example "guides/auth"). No .mdx extension. |
projectDir * | string | Path to the Thally project root |
evidenceReferenceId | string | Exact 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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project root |
maxBytes | integer | Maximum source bytes to return (default 49152, maximum 184320) |
source | string | Configured OpenAPI source; omit when the project has one |
startByte | integer | UTF-8 byte continuation from a previous partial result |
startLine | integer | 1-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
| Parameter | Type | Description |
|---|---|---|
content * | string | Complete replacement OpenAPI JSON or YAML document |
projectDir * | string | Path to the Thally project root |
source | string | Configured 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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path for the new canonical Thally project; the directory must be absent or empty |
sourceUrl * | string | GitHub repository URL or public documentation URL to migrate |
apiKey | string | Anthropic API key for non-Markdown file conversion |
branch | string | Git branch (default: auto-detect) |
docsDir | string | Docs subdirectory in repo (default: auto-detect) |
maxPages | integer | Maximum public URL pages to import (up to 10000) |
openapiUrl | string | Explicit public HTTPS OpenAPI specification for website migration |
platform | string | Source 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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to an existing Thally project whose runtime should be preserved |
sourceUrl * | string | GitHub repository URL or public documentation URL to migrate |
apiKey | string | Anthropic API key for non-Markdown file conversion |
branch | string | Git branch (default: auto-detect) |
docsDir | string | Docs subdirectory in repo (default: auto-detect) |
maxPages | integer | Maximum public URL pages to import (up to 10000) |
openapiUrl | string | Explicit public HTTPS OpenAPI specification for website migration |
platform | string | Source platform (default: auto-detect) |
search_docs
Search documentation pages by keyword — returns ranked list of matching pages
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project root |
query * | string | Search query |
limit | number | Max results to return (default 5) |
semantic_search
Hybrid (full-text + vector) semantic search against a deployed Thally site — uses the same index as the in-app command palette and /api/search
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language search query |
siteUrl * | string | Base URL of the deployed Thally site (e.g. https://docs.example.com) |
limit | number | Max results to return (default 8) |
mode | string | Search mode: hybrid (full-text + vector) or fulltext |
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
| Parameter | Type | Description |
|---|---|---|
siteUrl * | string | Base URL of the deployed Thally site (e.g. https://docs.example.com) |
minScore | number | Optional 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
| Parameter | Type | Description |
|---|---|---|
pageId * | string | Page ID, e.g. "guides/authentication" |
projectDir * | string | Path to the Thally project root |
maxBytes | integer | Maximum body bytes to return (default 49152, maximum 184320) |
startByte | integer | UTF-8 byte continuation from a previous partial result |
startLine | integer | 1-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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project root |
topic * | string | Topic or question to find relevant docs for |
maxTokens | number | Approximate token budget for returned context (default 4000) |
lint_project
Check a Thally project for issues: broken nav references, orphan files, missing frontmatter
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project root |
fix | boolean | Auto-fix issues where possible (adds orphan pages to nav) |
translate_docs
Translate Thally documentation pages to a secondary locale using Claude AI
| Parameter | Type | Description |
|---|---|---|
locale * | string | Target locale code, e.g. "es", "fr" |
projectDir * | string | Path to the Thally project directory |
apiKey | string | Anthropic API key (falls back to ANTHROPIC_API_KEY env var) |
force | boolean | Overwrite existing translation files |
model | string | Claude model to use for translation |
pages | array | Page 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
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Path to the Thally project (reads the tracking config from docs.json) |
docsRepo | string | owner/repo of the docs repository to dispatch the task to (required when dryRun is false) |
dryRun | boolean | When true (default), preview the distilled docs task without dispatching anything |
pr | number | Pull request number to analyze (defaults to the latest PR merged into the tracked base branch) |
repo | string | Tracked repo to sync as owner/repo (defaults to the single tracked repo when only one is configured) |