ICCPlus MCP
ICCPlus MCP is a schema-aware server for creating, inspecting, editing, validating, and packaging ICC Plus projects.
Discover capabilities, schema definitions, fields, types, functions, source files, deployment artifacts, and Custom CSS evidence.
Create, open, list, inspect, read, query, patch, normalize, validate, undo/redo, and close revisioned project sessions.
Create, update, duplicate, move, delete, export, and import modeled entities with defaults, parent repair, ID/reference rewriting, dry runs, and validation policies.
Apply RFC 6902 patches to any field, including unknown or future fields.
Validate schema, IDs, references, requirements, memberships, cycles, Custom CSS, and viewer export invariants.
Evaluate requirement trees against supplied state and return an explainable trace.
Catalog, analyze, and set Custom CSS with selector resolution, specificity/cascade warnings, and external-asset checks.
Set image/audio assets from workspace files, URLs, or data URLs.
Save validated project JSON atomically inside a workspace boundary.
Build official web or local viewer ZIPs, optionally separating and deduplicating images.
Preserve exact data and safe workspace/file handling via revision checks, dry runs, redaction, and atomic operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ICCPlus MCP create a new ICC Plus project with a point named 'start'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ICCPlus MCP
A schema-aware Model Context Protocol server for creating, inspecting, editing, validating, and packaging ICC Plus projects.
This project was created through vibe coding in collaboration with an AI coding agent.
The server gives an AI agent a complete ICC Plus project model generated and indexed directly from the upstream source:
the project schema and current defaults are generated from ICC Plus source;
every one of the 59 declared model types and 903 unique fields is discoverable;
all 301 authored source/build/config/patch files and 2,074 named functions/methods across the creator and standalone viewer are indexed with exact source, SHA-256 evidence, signatures, model-field usage, and line spans;
all 76 files in the requested deployment repository and 34 files inside its official viewer archives have byte counts and SHA-256 manifests;
high-level tools preserve IDs, ordering, parent links, and reciprocal memberships;
generic RFC 6902 patching keeps new or uncommon upstream fields accessible;
structural and semantic validation catches dangling references before save;
source-backed Custom CSS tools expose official viewer classes, resolve project selectors, and diagnose syntax/cascade risks before save;
ICC Plus v2.10 row-width preservation, build-form visibility/debug titles, split score-recalculation controls, hidden row menus, and addon state CSS classes are modeled and discoverable;
official web and local viewer archives can be built without opening the creator UI.
Compatibility is currently generated from ICC Plus v2.10.14, source commit
21d340238fa16f4e66a61727f797d334b0486fda.
The v2.10.6 update adds point bar background images (styling.barBackgroundImage,
isBarBgRepeat, isBarBgFitIn, isBarBgOverlay), negative colors/icons at zero
(treatZeroAsNegative), and point-specific score text (useScoreText,
scoreBeforeText, scoreAfterText). Creating a score or changing its point id
copies enabled point-specific text unless explicit score text is supplied;
existing scores keep their text when point settings change. JSON Patch remains
an exact edit without this authoring convenience.
The v2.10.9 update adds Score.removeSpace (join score text without spaces)
and notDeselectedByReq (a selected choice stays selected when its requirements
stop passing or a row limit would replace it). Both are schema-validated and
writable through the entity tools. Since v2.10.8, loading a versioned project no
longer turns on isNotShownObjects/isNotShownPointBar from activatedId.
In v2.10.9 viewers, a selected choice is styled choice-enabled even when its
requirements fail, and .addon is the inner addon box rather than the width
column.
The v2.10.11 update adds addonJustify: "fill" and makes each .addon box
grow to fill its width column. Since v2.10.10, viewers honor isNotResult and
isNotSearchable on selectable addons, and the creator exposes isNotBuild for
them. The schema did not change; these fields were already writable.
v2.10.12 through v2.10.14 do not change the project model. The official v2.10.13 local viewer template shipped without the project marker comments, which broke local viewer export in the upstream creator; v2.10.14 restores them. For marker-less v2.10.13 templates the MCP embeds the project into the default project initializer instead, so local viewer builds keep working.
For upstream runtime fixes (row deselection, scroll-to-choice, delayed selection on build load, addon width effects, selectable addon visibility, unspaced text wrapping, discount refunds on deselection, and the changes above), use the official v2.10.14 creator/viewer templates. Updating this MCP does not replace templates already stored in your workspace. See the 2.10.14 update review, the 2.10.13 update review, the 2.10.11 update review, the 2.10.9 update review, and the 2.10.6 update review.
What this is
ICCPlus MCP is an authoring and build adapter around ICC Plus project JSON. It does not reimplement the browser viewer. Selection effects, audio playback, dialogs, rendering, and other interactive behavior still execute in the official viewer. The server understands and validates the configuration that drives those behaviors, can evaluate requirement trees for supplied state, and can package the result into the official viewer templates.
The design deliberately has two layers:
agent
├─ discover: capabilities, schema, resources, prompts
├─ author: create/update/move/duplicate/import entities
├─ complete field access: atomic JSON Patch for every schema field
└─ verify: normalize, validate, evaluate, save, build viewer
│
▼
revisioned in-memory project session
│
▼
ICC Plus JSON / viewer ZIPRelated MCP server: Project Context MCP
Requirements
Node.js 20 or newer
An ICC Plus project workspace
For viewer builds,
web_viewer.ziporlocal_viewer.zipfrom the ICC Plus deployment repository
Install and build
git clone https://github.com/Kz2g1ew-commits/ICCPlus-MCP.git
cd ICCPlus-MCP
npm ci
npm run buildThe executable is dist/index.js and communicates over stdio. Protocol output
uses stdout; diagnostics use stderr.
Connect an agent
Set ICCPLUS_WORKSPACE to the only directory the server may read or write.
Relative project, asset, template, and output paths are resolved inside this
directory. Existing symlinks are resolved and cannot escape it.
Codex
codex mcp add iccplus \
--env ICCPLUS_WORKSPACE=/absolute/path/to/iccplus-workspace \
-- node /absolute/path/to/ICCPlus-MCP/dist/index.jsVerify with codex mcp list, then restart the client if it was already open.
The equivalent user or trusted-project config.toml entry is:
[mcp_servers.iccplus]
command = "node"
args = ["/absolute/path/to/ICCPlus-MCP/dist/index.js"]
env = { ICCPLUS_WORKSPACE = "/absolute/path/to/iccplus-workspace" }
startup_timeout_sec = 10
tool_timeout_sec = 60
enabled = trueCodex CLI, the IDE extension, and the ChatGPT desktop Codex surface share this
configuration. A project-scoped entry can live in .codex/config.toml and is
loaded only for a trusted project.
Other stdio MCP clients
Use the client's local-server configuration with this command:
{
"command": "node",
"args": ["/absolute/path/to/ICCPlus-MCP/dist/index.js"],
"env": {
"ICCPLUS_WORKSPACE": "/absolute/path/to/iccplus-workspace"
}
}Optional environment:
ICCPLUS_WORKSPACE: filesystem boundary; defaults to the server process CWD.ICCPLUS_MAX_ASSET_BYTES: maximum local asset size; defaults to 26,214,400 bytes (25 MiB).ICCPLUS_DUPLICATED_TEXT_LIMIT_BYTES: maximum size duplicated into the text fallback of a tool result; defaults to 8,192 bytes. Larger exact results remain available instructuredContent. Set-1for legacy unlimited text.
Recommended agent workflow
Call
iccplus_capabilitiesfor the relevant feature family or field.Create or open a project and retain its
project_idandrevision.Create referenced top-level entities first: points, variables, words, groups, designs, and global requirements.
Create rows, then choices, then scores/addons/requirements.
Pass
expected_revisionto mutations. Usedry_runfor broad changes.For advanced styling, discover exact selectors with
iccplus_css_catalog, analyze candidate CSS, then apply it withiccplus_css_set.Call
iccplus_validateand, where useful,iccplus_evaluate_requirements.Save explicitly or build an official viewer archive.
An agent can also request the bundled author-iccplus-project or
audit-iccplus-project prompt.
Example user request:
Create a CYOA with 10 starting credits, three mutually exclusive origin choices, and a weapon row unlocked by selecting an origin. Validate it, save it as
projects/origins.json, then build a web viewer usingtemplates/web_viewer.zip.
Tools
Tool | Purpose |
| Discover 19 feature families, a type/field, an exact function body, a source-file index, or a deployment artifact. |
| List source-backed official viewer classes and exact project-id selectors. |
| Analyze stored or candidate CSS syntax, specificity, target resolution, cascade conflicts, and external assets. |
| Replace, append, prepend, or clear project Custom CSS with revision, dry-run, and validation protection. |
| Read the schema summary, one definition, or the complete generated schema. |
| Start from the exact current upstream defaults. |
| Open project JSON into an isolated session. |
| List sessions, revisions, dirty state, and counts. |
| Inspect validation, size, content counts, and optional JSON. |
| Read exact JSON Pointers, including CSS/HTML/JS and unknown fields, with asset redaction by default. |
| Search all modeled entities by type, ID, or text. |
| Create an entity with defaults, fresh IDs, and parent repair. |
| Deep-merge/unset fields and optionally rewrite ID references. |
| Clone an entity tree with fresh IDs and optional internal remapping. |
| Reorder an entity and repair positional indices. |
| Delete while rejecting newly dangling references by default. |
| Atomically apply RFC 6902 operations to any project field. |
| Migrate legacy shapes and repair IDs, indices, parents, and memberships. |
| Run generated schema plus semantic/reference validation. |
| Evaluate requirements against supplied selections, points, variables, and words. |
| Export one reusable entity subtree. |
| Import a subtree with safe ID regeneration/remapping. |
| Set any string field from a workspace file, URL, or data URL. |
| Atomically save validated JSON inside the workspace. |
| Build official web/local viewer ZIPs and optionally separate images. |
| Undo or redo a session mutation. |
| Close a session, protecting unsaved changes. |
Entity tools cover row, backpack_row, choice, addon,
selectable_addon, score, requirement, point, variable, word,
group, row_design_group, choice_design_group, global_requirement,
sound_effect, and category.
Resources and prompts
URI/name | Contents |
| Official Custom CSS selector catalog with source evidence. |
| Complete generated project JSON Schema. |
| Source-backed feature catalog and coverage counts. |
| SHA-256 manifest for all deployment files and official viewer ZIP entries. |
| UTF-8 normalized metadata for 209 upstream third-party packages. |
| Stored CSS, static analysis, and project-specific selectors. |
| Live revision, validation, and entity counts. |
| Safe construction order and verification workflow. |
| Full project completion and packaging audit. |
Safety and data integrity
Mutations occur on cloned data and commit atomically.
expected_revisionprovides optimistic concurrency control.dry_runreturns the projected validation report without changing a session.no_new_errorsis the default mutation policy;strictrequires a completely valid result;noneis available for staged repairs.JSON Patch blocks prototype-pollution pointer segments.
Save uses a temporary file plus rename.
Existing files are not replaced unless
overwrite=true.Asset values are redacted from ordinary query output and reported by media type and approximate byte size.
Exact path reads avoid returning a complete project, and large tool results are not duplicated into both text and structured output.
Unknown fields survive load, edit, normalization, and save for forward compatibility.
Validation coverage
The validator combines the generated App schema with checks for:
duplicate or missing IDs and positional index mismatches;
addon parent links;
every modeled row, choice, point, group, variable, word, design, sound, and global-requirement reference;
score-to-point and point-activation references;
nested requirements, thresholds, and global-requirement cycles;
group and design-group reciprocal memberships;
incompatible viewer export modes;
Custom CSS syntax, dangerous legacy constructs, unresolved ICC Plus ID selectors, broad scope, external assets, and probable inline-style conflicts;
point integer/float and initialization invariants.
The requirement evaluator implements id (including /ON#N), points,
pointCompare, or, selFromGroups, selFromRows, selFromWhole, gid,
word, negation, operators, and nested prerequisites. It returns an
explainable trace rather than only a boolean.
Advanced Custom CSS
ICC Plus stores CSS in the top-level customCSS field and injects it as
style#customCSS in the official creator/viewer using textContent. The MCP
derives its catalog from the pinned standalone viewer markup, including
row-{id}, row-{id}-bg, row-{id}-header, choice-{id}, choice state
classes, addon, and selectable addon-{id}.
iccplus_css_catalog can return CSS-escaped selectors for every open-project
row, choice, and selectable addon. iccplus_css_analyze parses nested rules,
reports specificity and matched entities, and warns when a declaration is
likely to lose to ICC Plus inline styles. iccplus_css_set persists the result
through the same revisioned transaction and validation policy as other project
mutations.
For v2.10+, the catalog also covers .row-bg-{rowId},
.row-header-{rowId}, .choice, .addon-selectable, and the
.addon-enabled, .addon-disabled, .addon-selected, and
.addon-unselected state classes while retaining older row selector spellings.
This is intentionally static analysis. Computed styles, responsive layout, and interaction-state rendering remain the responsibility of the official viewer; no browser automation runtime or unrelated browsing tool is bundled.
Viewer builds
iccplus_build_viewer accepts an official template ZIP within the workspace.
Web mode writes
project.json.Local mode embeds the project in
js/app.js.Loading title, text, colors, favicon, background, fonts, and project Custom CSS are retained in the packaged project.
Optional image separation extracts data URLs from global styles, rows, backpack rows, design groups, and viewer settings; identical assets are deduplicated.
The template's viewer JavaScript remains the runtime source of truth.
Upstream synchronization
The project model is generated directly from upstream source. Re-run the analyzer against a checkout of ICC-Plus-Svelte:
npm run analyze:upstream -- --source ../ICC-Plus-Svelte --deployment ../ICCPlus
npm test
npm run check
npm run buildThe analyzer uses the TypeScript AST to regenerate:
src/generated/iccplus.schema.jsonsrc/generated/default-project.jsonsrc/generated/source-analysis.jsonsrc/generated/deployment-manifest.jsonsrc/generated/third-party-licenses.jsonanalysis/CODEBASE_INVENTORY.md
Tests fail if a newly declared upstream model type is not assigned to a feature
family. source-analysis.json also records declarations, imports, complete
SHA-256-addressed source files, component labels, every named source
function/method, exact function bodies, and source occurrences. The deployment
manifest covers every file in wahaha303/ICCPlus plus every official viewer
archive entry. Agents can query field:<name>, type:<name>,
function:<name>, or source:<relative-path> through
iccplus_capabilities; deployment:<relative-path> returns deployment
evidence. Function queries support file, offset, and limit so duplicate
local names remain manageable; include_source=false returns compact metadata.
Development
npm test
npm run test:stdio
npm run verify:upstream -- --source ../ICC-Plus-Svelte --deployment ../ICCPlus
npm run check
npm run build
npm run inspect
npm pack --dry-runThe test suite covers generated-model coverage, model graph mutation, normalization, reference rewrites, all requirement families, RFC 6902 atomicity, viewer packaging, and an in-memory MCP client/server exchange.
For the full semantic feature map, see
analysis/FEATURE_ANALYSIS.md. The generated
field/function/component evidence is in
analysis/CODEBASE_INVENTORY.md.
The requirement-by-requirement verification record is
analysis/COMPLETION_AUDIT.md.
Attribution
ICC Plus is developed by
wahaha303. This MCP server is an independent
integration and does not replace or modify the official creator/viewer.
Both projects are distributed under the MIT License; see LICENSE.
Upstream and vendored dependency notices are preserved in
THIRD_PARTY_NOTICES.md and the
iccplus://licenses resource.
Available Tools
27 toolsiccplus_build_viewerBuild ICC Plus viewer archiveCDestructive
Package the project into an official web/local viewer template, applying loading config and optional deduplicated image separation.
Inputs: project_id (required), output_path (required), template_path (required), local, +4 more.
iccplus_capabilitiesDiscover ICC Plus capabilitiesBRead-onlyIdempotent
List feature families or return field, type, function-body, source-file, deployment-artifact, or Custom CSS evidence extracted from ICC Plus.
Inputs: file, limit, topic, offset, +1 more.
iccplus_close_projectClose ICC Plus projectADestructive
Close an in-memory session. Unsaved sessions require force=true.
Inputs: project_id (required), force, expected_revision.
iccplus_create_entityCreate ICC Plus entityB
Create any modeled ICC Plus entity with current project defaults, optional overrides, automatic ids, and normalized memberships.
Inputs: type (required), project_id (required), parent, values, +4 more.
iccplus_create_projectCreate ICC Plus projectA
Create an in-memory project from current upstream defaults. Nothing is written until save is called.
Inputs: path, overrides.
iccplus_css_analyzeAnalyze ICC Plus Custom CSSARead-onlyIdempotent
Statically analyze stored or candidate CSS for syntax, selector specificity, official classes, project ids, inline-style conflicts, and external assets.
Inputs: css, project_id, include_rules, max_diagnostics.
iccplus_css_catalogDiscover ICC Plus Custom CSS targetsBRead-onlyIdempotent
List official viewer classes with source evidence and project-specific escaped row, choice, and selectable-addon selectors.
Inputs: kind, limit, query, scope, +2 more.
iccplus_css_setSet ICC Plus Custom CSSADestructive
Replace, append, prepend, or clear the official project customCSS field with revision protection, dry-run support, and integrated validation.
Inputs: project_id (required), css, mode, dry_run, +2 more.
iccplus_delete_entityDelete ICC Plus entityBDestructive
Delete one entity. The default policy rejects deletions that create dangling references.
Inputs: reference (required), project_id (required), type, dry_run, +2 more.
iccplus_duplicate_entityDuplicate ICC Plus entityB
Duplicate an entity and nested content with fresh ids; optionally remap references within the clone.
Inputs: reference (required), project_id (required), type, dry_run, +4 more.
iccplus_evaluate_requirementsEvaluate ICC Plus requirementsBRead-onlyIdempotent
Evaluate an entity or supplied requirement tree using ICC Plus operator semantics and return an explainable trace.
Inputs: project_id (required), state, entity, requirements.
iccplus_export_fragmentExport ICC Plus fragmentBRead-onlyIdempotent
Return a row, choice, addon, score, requirement, or feature entity as reusable JSON.
Inputs: reference (required), project_id (required), type, include_embedded_assets.
iccplus_historyUndo or redo ICC Plus mutationADestructive
Undo or redo one in-memory mutation while keeping revision conflict protection.
Inputs: action (required), project_id (required), expected_revision.
iccplus_import_fragmentImport ICC Plus fragmentB
Import a fragment through the same parent/default/normalization layer used for normal entity creation.
Inputs: type (required), value (required), project_id (required), parent, +5 more.
iccplus_list_projectsList open ICC Plus projectsARead-onlyIdempotent
List in-memory project sessions, revisions, dirty state, and compact summaries.
Inputs: no named parameters.
iccplus_move_entityMove ICC Plus entityA
Move an entity within its current ordered container and repair stored indices.
Inputs: position (required), reference (required), project_id (required), type, +3 more.
iccplus_normalizeNormalize ICC Plus projectC
Migrate legacy shapes, generate missing ids, repair indices/parents, and rebuild reciprocal group/design memberships.
Inputs: project_id (required), dry_run, expected_revision, validation_policy.
iccplus_open_projectOpen ICC Plus projectARead-onlyIdempotent
Open a project JSON file from ICCPLUS_WORKSPACE into an isolated revisioned session.
Inputs: path (required), normalize.
iccplus_patchPatch ICC Plus projectBDestructive
Atomically apply RFC 6902 JSON Patch operations for any current or future ICC Plus field.
Inputs: patches (required), project_id (required), dry_run, expected_revision, +1 more.
iccplus_project_statusInspect ICC Plus project statusARead-onlyIdempotent
Return revision, dirty state, summary, Custom CSS analysis, validation counts, and optionally project JSON.
Inputs: project_id (required), include_project, include_embedded_assets.
iccplus_queryQuery ICC Plus entitiesCRead-onlyIdempotent
Search rows, choices, addons, scores, requirements, points, groups, designs, words, variables, sound effects, and categories.
Inputs: project_id (required), ids, limit, query, +4 more.
iccplus_read_projectRead exact ICC Plus project pathsARead-onlyIdempotent
Read one or more RFC 6901 JSON Pointers without returning the complete project; preserves exact CSS, HTML, JS, and unknown fields while redacting embedded assets by default.
Inputs: paths (required), project_id (required), include_embedded_assets.
iccplus_save_projectSave ICC Plus projectCDestructive
Atomically save project JSON inside ICCPLUS_WORKSPACE after optional strict validation.
Inputs: project_id (required), path, pretty, overwrite, +3 more.
iccplus_schemaRead ICC Plus project schemaARead-onlyIdempotent
Read the generated JSON Schema summary, one definition, or the complete project schema.
Inputs: full, definition.
iccplus_set_assetSet ICC Plus image or audio assetC
Set any string field from a workspace file as a data URL, or from an external/data URL, using an exact JSON Pointer.
Inputs: project_id (required), target_path (required), url, dry_run, +4 more.
iccplus_update_entityUpdate ICC Plus entityB
Deep-merge fields into one entity and optionally unset fields. ID changes can rewrite all modeled references.
Inputs: values (required), reference (required), project_id (required), type, +5 more.
iccplus_validateValidate ICC Plus projectBRead-onlyIdempotent
Run generated structural schema checks plus ids, references, requirements, memberships, cycles, Custom CSS, and export invariants.
Inputs: project_id (required), structural, max_diagnostics.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Most tools target distinct resources and actions, such as project lifecycle, entity CRUD, CSS, validation, and import/export. The main ambiguities are update_entity versus patch and import_fragment versus create_entity, but the descriptions provide enough scope detail to choose correctly.
All tools share the iccplus_ prefix and snake_case, and the majority follow a verb_noun pattern such as create_project, delete_entity, and set_asset. A few noun-only or verb-only names like capabilities, schema, query, and history are minor deviations from an otherwise consistent convention.
27 tools is above the typical well-scoped range and sits just past the heavy 16-25 band. The broad domain—project sessions, entity modeling, CSS management, validation, and viewer building—justifies much of the surface, but some operations could potentially be consolidated.
The tool set covers the main project lifecycle, entity CRUD, querying, validation, normalization, import/export, CSS, assets, and viewer building. Minor gaps include no explicit project deletion/rename and no direct get-entity-by-id helper, though JSON Pointer reads and query cover most practical needs.
Maintenance
Related MCP Connectors
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Project memory, documentation and controlled secret access for AI coding agents.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Agentic AI book creator: plan, write, illustrate, narrate, and publish books from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables local-first book writing with AI assistance, allowing users to scaffold, create, search, validate, and enrich a book repository through natural language using OpenCode or Claude.MIT
- FlicenseBqualityBmaintenanceEnables coding agents to incrementally index project text and code, persist decisions and constraints with clear sources, and assemble focused project context across sessions via MCP.3410-
- AlicenseNot gradedqualityCmaintenanceAn MCP service for AI-assisted reasoning and editing on long-form fiction projects. It builds a structured index from scene files for targeted context retrieval.429 npm2AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to programmatically create and manage LetsGal Studio visual novel projects via a story DSL, supporting project initialization, story compilation, dialogue/narration addition, validation, and asset registration through MCP tools.5MIT