mcp-server

v0.1.4
@advjs/mcp-server Checked 2 hours ago Published 1 month ago

MCP 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.

ParameterTypeDescription
localestringLanguage 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.

ParameterTypeDescription
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.

ParameterTypeDescription
localestringLanguage 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

ParameterTypeDescription
rootstringGame 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.

ParameterTypeDescription
sceneId *stringExisting scene id with a non-empty imagePrompt
heightinteger
widthinteger

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.

ParameterTypeDescription
candidatePath *stringProject-relative path returned by the generation workflow
taskId *string
candidateIdstring
executorstring
modelstring

adv_asset_reject_candidate

Record a human rejection reason for a generated candidate. Rejected candidates never enter the formal catalog.

ParameterTypeDescription
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.

ParameterTypeDescription
candidateId *string
confirm *booleanMust be true only after a human visually reviewed this exact candidate
taskId *string
replaceExistingbooleanSeparate approval for replacing an existing stable asset id

list_files

List project files by category (characters, chapters, scenes, locations, knowledge, audio)

ParameterTypeDescription
categorystringFile category to list. Omit to get an overview of all categories.

create_character

Create a new character card (.character.md) in the project

ParameterTypeDescription
id *stringCharacter ID (lowercase, no spaces, used as filename)
name *stringCharacter display name
aliasesarrayAlternative names
appearancestringAppearance description
backgroundstringBackground story
conceptstringCore concept or beliefs
imagePromptstringAI image prompt for the character portrait/tachie (English keywords recommended)
personalitystringPersonality description
speechStylestringSpeaking style description
tagsarrayCharacter tags

edit_character

Edit an existing character card (.character.md)

ParameterTypeDescription
id *stringCharacter ID to edit
aliasesarrayReplace aliases
appearancestringNew appearance description
backgroundstringNew background story
conceptstringNew concept or beliefs
imagePromptstringNew AI image prompt for the character portrait/tachie
namestringNew display name
personalitystringNew personality description
speechStylestringNew speaking style
tagsarrayReplace tags

create_chapter

Create a new chapter script (.adv.md) in the project

ParameterTypeDescription
filename *stringChapter filename (e.g. "chapter_01" or "chapter_01.adv.md")
contentstringFull chapter content in .adv.md format. If provided, title/plotSummary are ignored.
plotSummarystringBrief plot summary for frontmatter
titlestringChapter title

edit_chapter

Edit an existing chapter script (.adv.md)

ParameterTypeDescription
content *stringNew full chapter content (replaces entire file)
filename *stringChapter 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.

ParameterTypeDescription
id *stringScene ID (used as filename; lowercase with dashes recommended)
atmospherestringMood/atmosphere notes (rendered as the "## 氛围" body section)
chaptersarrayChapter references (rendered as a "## 出现章节" bullet list)
descriptionstringReader-facing scene description (rendered as the "## 描述" body section)
imagePromptstringAI image-generation prompt. English keywords work best (style + subject + mood + lighting).
namestringDisplay name (Chinese OK)
tagsarrayFree-form tags (e.g. 内景, 户外, 夜晚)

edit_scene

Edit an existing scene file (scenes/<id>.md) by replacing its full content

ParameterTypeDescription
content *stringNew full scene content (replaces entire file)
id *stringScene 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.

ParameterTypeDescription
items *arrayList of characters to create

create_chapters

Create multiple chapter scripts atomically. See create_characters for atomicity semantics.

ParameterTypeDescription
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.

ParameterTypeDescription
items *array

project_stats

Get project statistics: file counts, character count, word count

ParameterTypeDescription
rootstringGame content root directory (default: auto-detect)

search_content

Full-text search across project files

ParameterTypeDescription
query *stringSearch query (case-insensitive substring match)
categorystringLimit search to a specific category