
S1000D Writer (S1000D Stack)
io.github.shuji-bonjiPublished by GitHub account shuji-bonjiv0.2.0Updated Nov 7, 2026
Builds S1000D data modules from structured drafts, verifies them, applies only unambiguous fixes.
Overview
S1000D Writer (S1000D Stack)'s local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open S1000D Writer (S1000D Stack) in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@shuji-bonji/s1000d-writer-mcp
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
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 (
apply_fixes,extract_segments,apply_segments) do not change the structure of the document.- 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.- 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
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.
Environment variables take precedence when they are set. The config file is read again on every call.
Example configuration for Claude Desktop / Claude Code
Running over HTTP (embedding in a product)
The default is stdio. With --http the server starts over Streamable HTTP.
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
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.
Source: README.md at commit 6660946
Tools
0Version history
2- v0.2.0LatestNov 7, 2026
- v0.1.2Oct 29, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts