S1000d Writer Mcp
БесплатноПоддерживаетсяMCP server that builds, repairs and prepares for translation S1000D® data modules without letting the LLM write XML: structured drafts in, XML out, always verif
Описание
MCP server that builds, repairs and prepares for translation S1000D® data modules without letting the LLM write XML: structured drafts in, XML out, always verified (XSD, BREX, references). Not affiliated with ASD.
README
English | 日本語
An MCP server that lets an LLM create S1000D® data modules without writing XML. The LLM passes a structured draft and numbering rules; the server builds the XML, verifies it against the XSD, the BREX and the references, and applies automatically only the fixes that have exactly one candidate (exact). A fix with several candidates is applied only from a selection, and a value outside the candidates is never accepted. By default nothing is written.
[!IMPORTANT] This is a personal project and is not affiliated with ASD (Aerospace, Security and Defence Industries Association of Europe). S1000D® is a registered trademark of ASD. The S1000D specification, XML schemas, default BREX and official samples are not included in any package or repository, because their terms of use do not grant redistribution. Obtain them from s1000d.org and point the
S1000D_SPEC_DIRenvironment variable at the extracted folder.
What it does
| Tool | Description |
|---|---|
build_data_module |
Builds a data module from one draft (descript, proced, process, fault or PM) and numbering rules. The DMC, ICN and issue come from the ledger (ledger) and the CSDB, and the same sourceId always gets the same DMC. After building, it verifies the XSD, BREX and references, and applies only exact fixes, up to maxFixRounds rounds. The remaining fixes are returned in fixes[] with their candidates |
convert_manual |
Converts an experiential manual (@shuji-bonji/experiential-manual-model) into one data module per topic plus a publication module. Descriptions, procedures and fault isolation map directly; a screen flow becomes one process data module plus one procedure per screen. References between DMs, the PM and ICNs are resolved on top of the CSDB overlaid with the DMs just built and the ICN originals found on disk. What the conversion cannot represent is returned in notRepresented as counts |
apply_fixes |
Applies the fixes you chose from the candidates in fixes[]. A selection must be a copy of a candidate; a value outside the candidates, or one that does not fit a range, goes to rejected with a reason. It re-verifies after applying |
edit_data_module |
Changes the structure of an existing procedural or descriptive data module: inserts, removes or moves a node. Places are location.path values, and a node to insert is a draft node (step, para, admonition, listItem). Only the edited ranges of the original text are rewritten; every other character stays as it was. Without marking it changes neither the issue information nor change markup (changeType and so on), so a released issue (inWork "00") is refused unless allowReleasedIssue: true. With marking it adds change markup on an in-work issue: an inserted node gets changeType="add", a removed node is kept with changeType="delete", a move within the same parent marks the parent changeType="modify". marking.reason adds the reason for update the markup refers to; marking.reasonRefId refers to one that is already there. A result with XSD errors that the edits introduced is not written |
start_revision |
Starts an in-work issue of a released data module: inWork becomes "01", issueNumber stays, issueType is the value you give (changed, revised, status; it is never chosen for you). The change markup and the reasons for update of the previous issue are removed, and elements marked changeType="delete" are taken out. The released issue is not changed: the in-work issue is written as a new file. An optional reason adds one reason for update in the same call. Releasing the issue is not done by this server |
add_reason_for_update |
Adds one reason for update (reasonForUpdate) to the status element of an in-work data module and nothing else: the content is not touched and no change markup is added. For changes that have no change markup: an editorial change (urt01), or an issue whose issueType is revised or status |
create_comment |
Builds a comment data module (comment) and verifies it. The sequence number is the next one in the CSDB |
extract_segments |
Takes the sentences a person reads out of a data module (titles, paragraphs, steps, warnings, table cells, figure captions) so they can be translated. Inline elements are replaced by {1}, {2} placeholders, and skeletonHash is returned |
apply_segments |
Puts translated sentences back into the data module they were taken from. The DMC stays the same and only the language changes. It stops with skeleton-mismatch when the data module changed after extraction |
Write rules
- Nothing is written by default. Only with
write: truedoes the server writeDMC-….XMLinto the first folder ofcsdbDirs(or the first ofS1000D_CSDB_DIR). With no destination it writes nothing and returns the reason (no-csdb-dir). - A file with the same name is not overwritten (
write-conflict) unlessoverwrite: trueis passed. - XML that violates the XSD is not written (
schema-invalid) unlessallowInvalid: trueis passed.schema-not-found(no XSD available) is not a violation; the file is written as unverified. - With
write: true,convert_manualalso copies the original assets under their ICN file names.
What is fixed automatically
Only a fix whose confidence is exact and which has exactly one candidate is applied (for example, replacing a value when the BREX allows a single responsible company, or removing an element the BREX forbids). several (more than one candidate, or a value given as a range) and none are not applied and are returned in fixes[]. The user chooses, and the server never fixes with a value outside the candidates. Each applied fix is returned in appliedFixes[] with the values before and after.
Verification status (verification)
Every response carries the verification status of the XSD, the BREX and the references. A missing XSD is reported as schema-not-found and a skipped step as not-run; neither is valid. The server reports the result of verification only: it does not judge conformance to S1000D and does not interpret severity.
Input errors
A mistake in the draft or the numbering rules is returned not as isError but as error: { code: "input-error", path, detail }. path is the location of the mistake (for example /body[1] or /allocation/rules/infoCodeByKind/proced). Fix it and call again.
What it does not do
[!WARNING]
- It does not accept XML written by an LLM. It builds only from a draft. The tools that take existing XML are
apply_fixes,edit_data_module,extract_segmentsandapply_segments. Onlyedit_data_modulechanges the structure of the document, and the content to add is given as draft nodes, not as XML.- It does not fix with a value outside the candidates. There is no entry point for writing a free value.
- It does not skip verification. A built XML is always verified before it is returned.
- It does not judge conformance to S1000D or interpret severity. Read the violations in
s1000d-verify-mcpand the explanation of BREX rules ins1000d-brex-mcp.- It does not translate. It only takes sentences out and puts them back. The LLM or a person translates.
- It does not create illustrations or judge Simplified Technical English (STE). For an illustration it only allocates an ICN and inserts the reference.
- What a data module cannot represent, such as hotspot coordinates or part of
scopeRefsin an experiential manual, is reported innotRepresentedand never dropped silently.convert_manualdoes not build the data module of a topic whoseprerequisiteslist an item without an identifier (natoStockNumberormanufacturerCode) or withoutquantity. That row ofdataModules[]carrieserror(input-error, with the path of the item); the other data modules are still built. S1000D requires an identifier and a quantity for each item, and leaving the item out would writenoSupplies, which reads as "nothing is required".- It does not create an ACT, CCT or PCT. Applicability relies on the
applicof the draft and an existing applicability repository. When a draft given tobuild_data_modulehas noapplic, the server does not build it and returnsinput-error(pathis/applic). The server does not decide applicability, so give at leastapplic.displayText(convert_manualusesdefaultApplic, by default the display text "All", for topics withoutscopeRefs).
Configuration
| Environment variable | Meaning |
|---|---|
S1000D_SPEC_DIR |
The folder where you extracted the S1000D distribution you obtained. The XSDs (xml_schema_flat/) and the default BREX are searched under it |
S1000D_CSDB_DIR |
The folder holding the project's data modules. Several can be given, separated by : (; on Windows). The BREX chain, reference targets and existing issues are searched here, and the first folder is the write destination |
You can also give folders with the tool argument csdbDirs (the first one is the write destination). When the argument is given, only those folders are used; S1000D_CSDB_DIR and csdbDirs in the config file are not used (they are not added together). Folders that do not exist are skipped and listed in _notes of the response. The first folder may not exist yet; it is created with write: true.
Config file (when environment variables are not passed, such as a Claude Desktop plugin)
When S1000D_SPEC_DIR / S1000D_CSDB_DIR are not set, the server reads the config file ~/.config/s1000d-stack/config.json (under XDG_CONFIG_HOME if set; the location can be changed with S1000D_CONFIG). Claude Desktop does not pass environment variables to a server installed as a plugin, so write the settings here in that case.
{
"specDir": "/path/to/s1000d/issue-7",
"csdbDirs": ["/path/to/your/csdb"]
}
Environment variables take precedence when they are set. The config file is read again on every call.
Example configuration for Claude Desktop / Claude Code
{
"mcpServers": {
"s1000d-writer": {
"command": "npx",
"args": ["-y", "@shuji-bonji/s1000d-writer-mcp"],
"env": {
"S1000D_SPEC_DIR": "/path/to/s1000d/issue-7",
"S1000D_CSDB_DIR": "/path/to/your/csdb"
}
}
}
}
Running over HTTP (embedding in a product)
The default is stdio. With --http the server starts over Streamable HTTP.
npx -y @shuji-bonji/s1000d-writer-mcp --http # http://127.0.0.1:3000/mcp
npx -y @shuji-bonji/s1000d-writer-mcp --http --port 3102 --path /writer
| Argument | Default | Meaning |
|---|---|---|
--host |
127.0.0.1 |
Address to bind to |
--port |
3000 |
Port; 0 picks a free port |
--path |
/mcp |
Path of the MCP endpoint. GET /healthz returns the name and version |
--allowed-host |
(see below) | Host names allowed in the Host header; comma-separated or repeated |
--allowed-origin |
(see below) | Host names allowed in the Origin header |
When --host is a loopback address, Host and Origin are limited to localhost names (DNS rebinding protection). When bound to any other address they are not checked, so put the server behind the product's reverse proxy or authentication. Because this server can write files, do not expose it without authentication.
How it works
All building, verification, fixing, comment and segment code lives in the shared library @shuji-bonji/s1000d-core; this server holds only the interpretation of arguments, the shape of the responses and the conversion from a manual to drafts (src/convert/). The input schemas import the definitions of core's draft.schema.json. The conversion is also available as @shuji-bonji/s1000d-writer-mcp/convert.
Development
npm install
npm test # runs on self-made test data only (tests/fixtures/)
npm run test:spec # uses the distribution you obtained (location given by S1000D_SPEC_DIR; default ../../specs/s1000d/issue-7)
npm run build && S1000D_SPEC_DIR=/path/to/issue-7 S1000D_CSDB_DIR=/path/to/csdb npm start # start over stdio
License
MIT. S1000D® is a registered trademark of ASD. This software is not affiliated with ASD and does not include the specification, schemas or official samples.
Установить S1000d Writer Mcp в Claude Desktop, Claude Code, Cursor
unyly install s1000d-writer-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add s1000d-writer-mcp --env S1000D_CSDB_DIR="" --env S1000D_SPEC_DIR="" -- npx -y @shuji-bonji/s1000d-writer-mcpПошаговые гайды: как установить S1000d Writer Mcp
FAQ
S1000d Writer Mcp MCP бесплатный?
Да, S1000d Writer Mcp MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для S1000d Writer Mcp?
Да, требуются переменные окружения: S1000D_CSDB_DIR, S1000D_SPEC_DIR. Unyly подставит их в конфиг при установке.
S1000d Writer Mcp — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить S1000d Writer Mcp в Claude Desktop, Claude Code или Cursor?
Открой S1000d Writer Mcp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Изменения
Версии и запрашиваемые доступы со временем.
- Новая версия опубликована
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
автор: mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
автор: agbergsmannAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiCompare S1000d Writer Mcp with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
