Listed from the MCP registry; nobody on Odel publishes it.
An MCP server that provides tools to author OSCAL security compliance documentation
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx compliance-trestle-mcp
MCP client config
{
"mcpServers": {
"compliance-trestle": {
"command": "uvx",
"args": [
"compliance-trestle-mcp"
]
}
}
}MCP server to easily use compliance-trestle (OSCAL tool) from OpenCode, Claude, or any MCP-compliant client.
mcp-name: io.github.oscal-compass/compliance-trestle-mcp
This project can be used in the following two ways:
Choose the option that best fits your workflow.
Add the following to opencode.json in your workspace:
{
"mcp": {
"trestle": {
"type": "local",
"command": ["uvx", "--from", "compliance-trestle-mcp==<version>", "trestle-mcp"],
"environment": { "TRESTLE_MCP_TOOLS": "all" },
"enabled": true
}
}
}
Replace <version> with the release you want; drop ==<version> to track the
latest. TRESTLE_MCP_TOOLS chooses how much of the command surface to expose —
all is every tool, and the default without it is the authoring lifecycle. See
Choosing which tools are exposed.
Open OpenCode, confirm the trestle tools are listed, and execute as needed.
https://github.com/user-attachments/assets/a85b0927-4981-41d1-9a03-f22becb7a6e2
mcp.json config{
"mcpServers": {
"trestle": {
"command": "uvx",
"args": ["--from", "./trestle-mcp-tmp", "trestle-mcp"]
}
}
}
Save this as mcp.json in your current directory.
uvx mcp-cli tools --config-file mcp.json
Sample output (tools available):
13 Available Tools
┌─────────┬───────────────────────────────────┬───────────────────────────────────────────────────────────────────┐
│ Server │ Tool │ Description │
├─────────┼───────────────────────────────────┼───────────────────────────────────────────────────────────────────┤
│ trestle │ trestle_init │ Initialize a trestle working directory. │
│ trestle │ trestle_import │ Import an existing OSCAL model into the trestle workspace. │
│ trestle │ trestle_validate │ Validate a standalone OSCAL file against the OSCAL schema. │
│ trestle │ trestle_author_catalog_generate │ Generate Catalog controls in markdown form from a catalog. │
│ trestle │ trestle_author_catalog_assemble │ Assemble markdown files of controls into a Catalog json file. │
│ trestle │ trestle_author_profile_generate │ Generate markdown documentation set for controls in a profile. │
│ trestle │ trestle_author_profile_assemble │ Assemble markdown controls into a Profile JSON file. │
│ trestle │ trestle_author_profile_resolve │ Resolve an OSCAL profile to a resolved profile catalog. │
│ trestle │ trestle_author_component_generate │ Generate component markdown from a component-definition. │
│ trestle │ trestle_author_component_assemble │ Assemble markdown controls into a component-definition json file. │
│ trestle │ trestle_task_csv_to_oscal_cd │ Convert a CSV file to an OSCAL component definition. │
│ trestle │ trestle_task_csv_to_oscal_mc │ Convert a CSV file to an OSCAL mapping collection. │
│ trestle │ trestle_task_xlsx_to_oscal_poam │ Convert a FedRAMP XLSX spreadsheet to an OSCAL POA&M. │
└─────────┴───────────────────────────────────┴───────────────────────────────────────────────────────────────────┘
Those 13 are the default selection. The server implements 29 tools in all: 28
that groups can select, plus trestle_remove, which is registered only when
named explicitly. See
Choosing which tools are exposed, and
Commands deliberately not covered
for the parts of the trestle CLI that have no tool and why.
trestle_init)Start MCP interactive shell:
uvx mcp-cli interactive --config-file mcp.json
Then run, for example:
> execute trestle_init '{"params": {}}'
Typical result:
✓ ✅ Tool executed successfully
{
"result": {
...
"content": [
{
"type": "text",
"text": "✅ Trestle workspace initialized successfully"
}
]
}
}
You'll see folders as follows:
assessment-plans catalogs plan-of-action-and-milestones system-security-plans
assessment-results component-definitions profiles
Every tool a server registers costs the caller context: an MCP client loads each tool's name, input schema and description into the model's context window on every session. This server covers the trestle command surface an agent should drive, but exposes only the authoring lifecycle unless you ask for more, so a session carries the part of that surface it will actually call and the rest is one setting away.
The selection is a comma-separated list of group names and/or individual tool
names, read from the --tools flag or the TRESTLE_MCP_TOOLS environment
variable. The flag wins over the environment variable. Naming something that
does not exist fails at startup with the list of valid names, rather than
starting up with the tool quietly missing — and the flag has to be spelled in
full, so a config file carrying --tool is rejected instead of guessed at.
| Value | Tools | tools/list chars | Meaning |
|---|---|---|---|
authoring | 13 | 47,342 | The curated authoring lifecycle. The default. |
core | 12 | 39,668 | The top-level trestle commands |
author | 11 | 39,684 | Every trestle author subcommand wrapper |
task | 5 | 20,318 | Every trestle task wrapper, including the generic runner |
all | 28 | 99,668 | Everything a group can select |
trestle_author_ssp_generate | 1 | 4,630 | Any single tool, by its registered name |
The default is less than half the size of all, and selections combine, so you
pay only for what you name. Measure any selection yourself with
python scripts/tool_context_cost.py; see
What each tool selection costs in context for the
current figures per selection and per tool, and for how to narrow the default
further.
core, author and task mirror the trestle CLI's own command structure, so
which tool is in which group follows from the CLI. authoring is the one
curated preset that cuts across them.
Tools no group selects. trestle_remove deletes an element from a model in
place, with no backup, so no group selects it — all included. It is registered
only when the selection names it exactly, e.g. authoring,trestle_remove.
Default (the authoring lifecycle) — no configuration needed:
{
"mcpServers": {
"trestle": {
"command": "uvx",
"args": ["--from", "compliance-trestle-mcp", "trestle-mcp"]
}
}
}
Everything, via the environment variable:
{
"mcpServers": {
"trestle": {
"command": "uvx",
"args": ["--from", "compliance-trestle-mcp", "trestle-mcp"],
"env": { "TRESTLE_MCP_TOOLS": "all" }
}
}
}
A mixed selection, via the flag — the authoring lifecycle plus SSP generation and the generic task runner:
{
"mcpServers": {
"trestle": {
"command": "uvx",
"args": [
"--from", "compliance-trestle-mcp", "trestle-mcp",
"--tools", "authoring,trestle_author_ssp_generate,trestle_task_run"
]
}
}
}
The examples above use the mcpServers shape most MCP clients take. OpenCode
spells the same things differently — mcp rather than mcpServers, command
as one array instead of a command plus args, and environment rather than
env — so the "everything" selection looks like
the entry at the top of this README.
Run trestle-mcp --help for the group list, and watch stderr on startup for the
line reporting the selection and how many tools it registered.
Tools marked (default) are in the authoring preset.
core — top-level trestle commandstrestle_init (default): Initialize a trestle workspacetrestle_import (default): Import OSCAL models (Catalog/Profile/etc.) from a file or URLtrestle_validate (default): Validate a standalone OSCAL file (any top-level model, e.g. POA&M) against the OSCAL schema (and trestle's semantic checks)trestle_create: Create a sample OSCAL model, or a new element inside an existing model filetrestle_assemble: Assemble a split model into a single file under disttrestle_split: Split subcomponents of a model into separate filestrestle_merge: Merge split subcomponents back into a modeltrestle_describe: Describe the contents of a model file, optionally at an element pathtrestle_replicate: Copy a top-level model to a new name, optionally with fresh uuidstrestle_href: List or repoint the import hrefs of a profiletrestle_partial_object_validate: Validate a single OSCAL object held in a filetrestle_version: Report the trestle and OSCAL versions, or a model's own document version (metadata.version, not its OSCAL version)author — trestle author subcommandstrestle_author_catalog_generate (default): Generate markdown controls from a catalogtrestle_author_catalog_assemble (default): Assemble markdown controls back into a catalog JSONtrestle_author_profile_generate (default): Generate markdown for profilestrestle_author_profile_assemble (default): Assemble markdown controls into profile JSONtrestle_author_profile_resolve (default): Resolve a profile to a catalogtrestle_author_profile_inherit: Derive a profile from a parent profile and a leveraged SSPtrestle_author_component_generate (default): Generate markdown from a component definitiontrestle_author_component_assemble (default): Assemble markdown back into a component definitiontrestle_author_ssp_generate: Generate SSP markdown from a profile and component definitionstrestle_author_ssp_assemble: Assemble SSP markdown into a system-security-plan JSONtrestle_author_ssp_filter: Filter an SSP by profile, components, implementation status or control originationtask — trestle task wrapperstrestle_task_csv_to_oscal_cd (default): Convert a CSV mapping file into an OSCAL component definitiontrestle_task_csv_to_oscal_mc (default): Convert a CSV crosswalk into an OSCAL mapping collectiontrestle_task_xlsx_to_oscal_poam (default): Convert a FedRAMP-format XLSX spreadsheet into an OSCAL Plan of Action and Milestones (POA&M)trestle_task_list: List the available trestle tasks, or describe one task's configuration keystrestle_task_run: Run any trestle task from a configuration dictionarytrestle_task_run covers every task the installed trestle provides, including
ones with no typed tool here. Prefer the typed tools where they exist: they
validate their arguments and document the input format.
The signing and provenance commands (sign, verify, generate-manifest,
sign-manifest, verify-manifest, canonicalize), the beta feature-flag
command, and the markdown governance commands (author docs, author folders,
author headers, author jinja) have no tools here. The reasons are recorded
in the development guide.
For advanced use, refer to the official compliance-trestle docs; to add or change a tool here, see the development guide.
mcp.json is correct.We are a Cloud Native Computing Foundation sandbox project.
The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see Trademark Usage.
OSCAL Compass is an independent open source project. It is not affiliated with, endorsed by, or sponsored by the National Institute of Standards and Technology (NIST) or any other government agency.
OSCAL Compass was originally contributed by IBM.