mcp-server
v0.1.4MCP Server for ADV.JS — exposes game project context to AI editors
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
advjs_show_project_workspace ADV.JS 项目 / Project
Show project identity, content counts and loading diagnostics. Does not run validation. Supply locale to match the user language.
| Parameter | Type | Description |
|---|---|---|
locale | string | Language for the text summary, e.g. zh-CN or en. Match the user language. |
advjs_read_workspace_item 查看创作资料 / Read authoring item
Read a character card, chapter or scene from the compiled project. Returns bounded local image previews only to the app.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
kind * | string |
advjs_run_project_check 校验 ADV.JS 项目 / Check project
Run the read-only validator only when requested or approved by the user. The workspace tool shows the exact command and working directory.
| Parameter | Type | Description |
|---|---|---|
locale | string | Language for the text summary, e.g. zh-CN or en. Match the user language. |
adv_validate
Validate project: check script syntax, character references, and scene completeness
| Parameter | Type | Description |
|---|---|---|
root | string | Game content root directory (default: auto-detect) |
adv_asset_plan_background
Create a provider-neutral background generation task from a scene imagePrompt. This creates only an ignored candidate workspace, never a formal asset.
| Parameter | Type | Description |
|---|---|---|
sceneId * | string | Existing scene id with a non-empty imagePrompt |
height | integer | |
width | integer |
adv_asset_ingest_candidate
Validate and attach one generated PNG, JPEG, or WebP candidate already copied into the owning task candidate directory. This does not register the asset.
| Parameter | Type | Description |
|---|---|---|
candidatePath * | string | Project-relative path returned by the generation workflow |
taskId * | string | |
candidateId | string | |
executor | string | |
model | string |
adv_asset_reject_candidate
Record a human rejection reason for a generated candidate. Rejected candidates never enter the formal catalog.
| Parameter | Type | Description |
|---|---|---|
candidateId * | string | |
reason * | string | |
taskId * | string |
adv_asset_accept_candidate
After visual review, explicitly register one candidate, write its immutable hashed file and receipt, update the catalog, and bind the scene. confirm must be true; generation success alone is never approval.
| Parameter | Type | Description |
|---|---|---|
candidateId * | string | |
confirm * | boolean | Must be true only after a human visually reviewed this exact candidate |
taskId * | string | |
replaceExisting | boolean | Separate approval for replacing an existing stable asset id |
list_files
List project files by category (characters, chapters, scenes, locations, knowledge, audio)
| Parameter | Type | Description |
|---|---|---|
category | string | File category to list. Omit to get an overview of all categories. |
create_character
Create a new character card (.character.md) in the project
| Parameter | Type | Description |
|---|---|---|
id * | string | Character ID (lowercase, no spaces, used as filename) |
name * | string | Character display name |
aliases | array | Alternative names |
appearance | string | Appearance description |
background | string | Background story |
concept | string | Core concept or beliefs |
imagePrompt | string | AI image prompt for the character portrait/tachie (English keywords recommended) |
personality | string | Personality description |
speechStyle | string | Speaking style description |
tags | array | Character tags |
edit_character
Edit an existing character card (.character.md)
| Parameter | Type | Description |
|---|---|---|
id * | string | Character ID to edit |
aliases | array | Replace aliases |
appearance | string | New appearance description |
background | string | New background story |
concept | string | New concept or beliefs |
imagePrompt | string | New AI image prompt for the character portrait/tachie |
name | string | New display name |
personality | string | New personality description |
speechStyle | string | New speaking style |
tags | array | Replace tags |
create_chapter
Create a new chapter script (.adv.md) in the project
| Parameter | Type | Description |
|---|---|---|
filename * | string | Chapter filename (e.g. "chapter_01" or "chapter_01.adv.md") |
content | string | Full chapter content in .adv.md format. If provided, title/plotSummary are ignored. |
plotSummary | string | Brief plot summary for frontmatter |
title | string | Chapter title |
edit_chapter
Edit an existing chapter script (.adv.md)
| Parameter | Type | Description |
|---|---|---|
content * | string | New full chapter content (replaces entire file) |
filename * | string | Chapter filename (e.g. "chapter_01" or "chapter_01.adv.md") |
create_scene
Create a new scene file (scenes/<id>.md) with optional imagePrompt for AI image generation. When you have a vivid visual description, always populate imagePrompt so downstream tooling can render the scene.
| Parameter | Type | Description |
|---|---|---|
id * | string | Scene ID (used as filename; lowercase with dashes recommended) |
atmosphere | string | Mood/atmosphere notes (rendered as the "## 氛围" body section) |
chapters | array | Chapter references (rendered as a "## 出现章节" bullet list) |
description | string | Reader-facing scene description (rendered as the "## 描述" body section) |
imagePrompt | string | AI image-generation prompt. English keywords work best (style + subject + mood + lighting). |
name | string | Display name (Chinese OK) |
tags | array | Free-form tags (e.g. 内景, 户外, 夜晚) |
edit_scene
Edit an existing scene file (scenes/<id>.md) by replacing its full content
| Parameter | Type | Description |
|---|---|---|
content * | string | New full scene content (replaces entire file) |
id * | string | Scene ID (filename without .md) |
create_characters
Create multiple character cards atomically. Validates the whole batch first — if any item would conflict (duplicate id within the batch, or file already exists), nothing is written.
| Parameter | Type | Description |
|---|---|---|
items * | array | List of characters to create |
create_chapters
Create multiple chapter scripts atomically. See create_characters for atomicity semantics.
| Parameter | Type | Description |
|---|---|---|
items * | array |
create_scenes
Create multiple scenes atomically. Encourage filling imagePrompt for every scene — that is the single biggest accelerant for downstream AI image generation.
| Parameter | Type | Description |
|---|---|---|
items * | array |
project_stats
Get project statistics: file counts, character count, word count
| Parameter | Type | Description |
|---|---|---|
root | string | Game content root directory (default: auto-detect) |
search_content
Full-text search across project files
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (case-insensitive substring match) |
category | string | Limit search to a specific category |