
S1000D BREX (S1000D Stack)
io.github.shuji-bonjiPublished by GitHub account shuji-bonjiv0.6.0Updated Nov 7, 2026
Read S1000D BREX business rules and check data modules against them, layer by layer.
Overview
Reads S1000D BREX business-rule data modules and checks data modules against them, layer by layer, reporting each violation.
- What you can do
- List and filter the rules of a BREX: targets, allowed/required/forbidden status, allowed values, severity and applicable schemas
- Look up what an SNS code or an element/attribute value means in the project
- List permitted illustration and multimedia notations, including per-schema restrictions
- Check a data module, publication module or comment against a BREX and get each violation with XPath, line number, rule ID and severity
- Follow the brexDmRef chain and check each layer separately, flagging layers it could not resolve
- When to use it
- Useful when authoring or reviewing S1000D technical documentation and you want an assistant to explain a project's BREX rules or point out where a data module breaks them, without reading the XML by hand.
- Requirements
- Runs locally via npx (Node.js). Needs a local copy of the S1000D distribution, obtained separately from s1000d.org, pointed at by S1000D_SPEC_DIR, and the project's data modules via S1000D_CSDB_DIR or the csdbDirs argument; when environment variables are unavailable, folders go in a config file under ~/.config/s1000d-stack/config.json. No authentication.
Installation
In SourceWeft
- Open S1000D BREX (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-brex-mcp
English | 日本語
An MCP server that lets an LLM read S1000D® BREX (Business Rules Exchange) data modules and check data modules against a BREX. It returns, in a form people can read, what a project or organisation has written in its BREX: which elements and attributes may be used, which values are allowed and what they mean, what the standard numbering system (SNS) codes mean, and which illustration formats may be used. It also reports whether a data module follows those rules, with the location of each violation.
[!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
What it does not do
[!WARNING]
- It does not validate against the XML schema (XSD). Schema errors can hide BREX violations or create false ones. Run schema validation with
validate_schema/verify_data_moduleins1000d-verify-mcp.- It does not judge conformance to S1000D.
passed: truefromcheck_against_brexmeans only that no machine-checkable BREX rule was violated in every layer that could be resolved.nonContextRules(rules written as prose) are returned asmanualChecks, and a person makes the judgement.- It does not interpret the meaning of severity level codes (
brsl01tobrsl99). The project defines them, so they are returned as they are.
[!NOTE] The absence of a rule in one BREX does not mean the absence of a restriction. A higher BREX (followed through
brexDmRef, ending at the S1000D default BREX) or a business rules document written for people may restrict it.check_against_brexreports the layers it could not find inunresolvedBrex. Treat a result in which this field is not empty as incomplete.
Configuration
Folders can also be given with the tool argument csdbDirs. 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). The default BREX is still looked up under S1000D_SPEC_DIR. Folders that do not exist are skipped and listed in _notes of the response. A BREX can be given as a file path, as a DMC (the DMC- prefix is optional), or omitted (the default BREX).
A mistake that the caller can fix by changing an argument is returned not as a tool failure (isError) but as error: { code, path, detail }, the same shape as the other S1000D Stack servers. code is one of file-not-found (no such file), not-found (the BREX given by DMC, or the default BREX, was not found) and input-error (an argument is malformed or missing), and path names the argument to fix (/brex, /path and so on).
Config file (when environment variables are not passed, as with plugins in Claude Desktop)
If 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 it is set; S1000D_CONFIG changes the location). Claude Desktop does not pass environment variables to servers installed as plugins, and does not substitute ${VAR} written in the plugin's env. When you install the server as a plugin, write the folders here.
Environment variables take precedence when they are set. Paths that start with ~/ are accepted. The config file is read again on every call, so the server does not need to be restarted after you edit it.
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, so a CSDB product's server or a web application can call it over HTTP (the embedding foundation of stage 2.5).
When --host is a loopback address (127.0.0.1 / ::1 / localhost), 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. Authentication, authorization and multi-tenancy are not part of this server. Environment variables and the config file work the same as with stdio.
Check rules
The check follows Chap 4.10.2 (BREX data module) and Chap 7.9 (Business rules processing) of S1000D Issue 7. See the README of @shuji-bonji/s1000d-core for details.
Development
License
MIT
Source: README.md at commit c0c68e4
Tools
0Version history
3- v0.6.0LatestNov 7, 2026
- v0.5.0Oct 29, 2026
- v0.1.1Oct 26, 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