docs-publisher
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port the server listens on | 8787 |
| DOCS_DIR | No | Folder with the tutorials | docs |
| SITE_DIR | No | Local clone of the site repo. Turns on deploying from the connector (Docker sets it automatically) | |
| DOCS_REPO | Yes | The docs repository in owner/name form | |
| KEYS_FILE | No | File that holds personal keys | /data/keys.json |
| MCP_SECRET | No | Your own connector key (24+ random characters). Needed for server mode unless you use only personal keys | |
| PUBLIC_URL | No | Public address of the server, used to print personal connector URLs | |
| ADMIN_TOKEN | No | Turns on the admin API; 24+ random characters | |
| AUTO_DEPLOY | No | Redeploy after every change. Set to false to leave it to deploy_site | true |
| DOCS_BRANCH | No | Branch the site is built from | main |
| GITHUB_TOKEN | Yes | GitHub fine-grained personal access token with Contents: Read and write access to the docs repo | |
| DEPLOY_COMMAND | No | Command that builds and publishes the site, run in SITE_DIR (use mkdocs gh-deploy for MkDocs) | npm run deploy |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_tutorialsA | List all tutorial Markdown files in the documentation repo. |
| read_tutorialB | Read the current Markdown source of a tutorial. |
| publish_tutorialA | Create a new tutorial or fully replace an existing one. Front matter (title, description, sidebar_position) is added automatically if the content has none. |
| edit_tutorialA | Make a targeted edit to an existing tutorial by replacing an exact piece of text. The old text must appear exactly once. |
| delete_tutorialB | Delete a tutorial from the documentation repo. Confirm with the user before calling. |
| upload_imageA | Download an image from a public https URL and save it in the docs site, so a tutorial can show it without linking to another website. Returns the Markdown to put in the tutorial. Only use images you may reuse (for example under a free license), and credit the author in the tutorial when the license asks for it. |
| deploy_siteA | Rebuild the documentation website and publish it, so tutorials on the docs branch go live. Call it after publishing, editing or deleting tutorials. Takes a minute or two. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
The tools mostly have clearly distinct purposes: list/read/publish/edit/delete tutorials, upload images, and deploy the site. The only mild ambiguity is between publish_tutorial (create or fully replace content) and deploy_site (make the site live), since both use publishing language, but the descriptions clarify the distinction.
All tool names follow a consistent snake_case verb_noun pattern: list_tutorials, read_tutorial, publish_tutorial, edit_tutorial, delete_tutorial, upload_image, deploy_site. The convention is predictable and easy to scan.
Seven tools is well-scoped for a documentation publishing server. Each tool corresponds to a meaningful operation in the tutorial lifecycle, with no obvious filler.
The surface covers the core tutorial lifecycle: list, read, create/replace, targeted edit, delete, image upload, and deployment. Minor gaps exist around image management (e.g., deleting or listing uploaded images) and deployment status/rollback, but normal documentation workflows are covered.