Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WRITE_HARNESS_HOMEYesAbsolute path to your write-harness project directory, used by the MCP server as the workspace root.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

File-first scientific & WeChat writing harness. Read article context by short block IDs (e.g. S2.3), ingest 3-way provenance sources, search indexed excerpts, read web inbox annotations, run deterministic checks, and ALWAYS submit edits through propose_patch (never overwrite article.md directly).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_articlesA

List all article workspaces with their stage, mode, block count, and pending diff count.

get_article_contextC

Get bounded article context by short block IDs (e.g. ['S2.3']), plus active playbooks & agent roles.

ingest_source_toolB

Ingest a PDF file, code file, or web URL into immutable sources// and rebuild FTS index.

search_sources_toolC

Search indexed PDF pages, web snapshots, and code chunks in the project's sources.

read_inbox_toolC

Read targeted block annotations submitted from the Web companion UI.

propose_patch_toolB

Write-isolated patch proposal. Never overwrites article.md; sends a reviewable diff to the Web UI.

run_diagnostics_toolB

Run deterministic checks: provenance, anchor integrity, image limits, readability & WeChat HTML checks.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
read_global_playbookActive user-confirmed writing rules (capped at 15 rules).

TDQS

B3.2/5.0

Scored across 7 tools

Disambiguation4/5

The seven tools mostly map to distinct operations: source ingestion vs. source search are clearly separated by read/write semantics, and propose_patch_tool vs. run_diagnostics_tool are unmistakably divergent. The only mild overlap is read_inbox_tool (block annotations/pending diffs) versus list_articles (which also reports pending diff counts), which could blur where an agent goes to inspect review state.

Naming Consistency3/5

Naming is readable but inconsistent: five tools use a verb_noun pattern with a redundant `_tool` suffix, while list_articles and get_article_context use bare names without the suffix. Within that pattern, `ingest_source_tool` and `search_sources_tool` vary singular/plural on the same noun.

Tool Count5/5

Seven tools is well within the ideal 3-15 range for a writing harness covering ingestion, retrieval, review, context, patching, and diagnostics. Each tool corresponds to a distinct phase of the article workflow rather than being filler.

Completeness4/5

The surface covers the full ingest → search → read inbox → get context → propose patch → diagnose loop, but has notable gaps: there is no tool to create a new article workspace (only list existing ones), no way to resolve or reply to inbox annotations, and no tool to remove or refresh an ingested source. These are workable around via the Web companion UI, so the gaps are minor rather than blocking.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues