Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANTHROPIC_API_KEYNoAnthropic API key (optional if using ANTHROPIC_AUTH_TOKEN)
ANTHROPIC_BASE_URLNoBase URL for Anthropic-compatible API (e.g. MiniMax)
ANTHROPIC_AUTH_TOKENNoAnthropic Bearer token for MiniMax (optional if using ANTHROPIC_API_KEY)
STORYWRIGHT_STATE_DIRNoDirectory for last_project.json (default ~/.storywright)
STORYWRIGHT_PROJECTS_ROOTNoParent directory for book projects
STORYWRIGHT_ANTHROPIC_MODELNoModel ID to use (e.g. MiniMax-M2.7)
STORYWRIGHT_ANTHROPIC_MAX_RETRIESNoRetries for transient API failures (default 2)
STORYWRIGHT_PRIOR_CHAPTERS_MAX_COUNTNoMax number of prior chapters (default 8)
STORYWRIGHT_PRIOR_CHAPTERS_MAX_WORDSNoMax words of prior approved prose (default 12000)
STORYWRIGHT_ANTHROPIC_RETRY_DELAY_SECONDSNoBase delay between retries (default 2.0)

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
create_book_projectC

Create a new book project under book_projects/ (or STORYWRIGHT_PROJECTS_ROOT). Loads the new project.

load_book_projectB

Load an existing project from disk (prefer absolute paths).

load_last_book_projectA

Load the last successfully opened project from ~/.storywright/last_project.json if valid.

get_project_statusB

Markdown table of chapters, statuses, editor verdicts, third-pass completion.

check_environmentA

Verify ANTHROPIC_API_KEY and show model / prior-chapter budget / Storywright version.

get_pipeline_statusB

Next MCP tool to call per chapter (guarded pipeline hints).

get_continuity_logC

JSON continuity log.

add_chapterC

Register a chapter outline.

add_characterC

Add a character and continuity entry.

add_deathC

Schedule a canonical death.

add_running_gagD

Register a running gag.

add_inventory_itemD

Track an inventory item.

plan_bookC

Phased book bible planning (identity→…→tone); completes with sync to project config.

update_planC

Patch book_bible.json; may sync characters/deaths/gags into project.

get_book_bibleD

Readable bible markdown.

start_chapterB

Open drafting for a chapter (NOT_STARTED → DRAFT).

run_writer_agentA

Draft chapter via Claude (DRAW → AWAITING_EDITOR). Requires ANTHROPIC_API_KEY.

run_editor_reviewC

Editor pass after writer.

run_third_agentB

Third-pass reviewer (comedy, pacing, …). Repeat until all project.third_agents covered.

list_third_agentsA

List built-in third-pass agents.

approve_chapterA

Approve chapter; updates continuity. Requires all configured third passes unless force=true.

request_revisionC

Send chapter back to writer with notes.

get_chapter_statusC

Inspect one chapter.

get_living_charactersD
get_inventoryD
get_running_gagsD
mark_character_deadD
transfer_itemD
fire_gagD
add_locationD
add_established_factD
export_manuscriptC

Concatenate approved chapters into one markdown file at project root.

diff_chapterC

Diff current draft vs .prev.md snapshot from last writer overwrite.

search_manuscriptC

Substring search across manuscript/*.md.

scan_manuscript_markersA

Find TODO/FIXME/DRAFT/TBD/XXX markers in manuscript markdown.

Prompts

Interactive templates invoked by user choice

NameDescription
guarded_chapter_pipelineRecommended tool order for one chapter.
planning_wizardBook bible phases.

Resources

Contextual data attached and managed by the client

NameDescription
resource_book_config
resource_continuity
resource_bible
resource_project_path
resource_versionServer package version (for debugging configs).

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BurgersJackson/storywright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server