Compliance Trestle Mcp

io.github.oscal-compass由 GitHub 账号 oscal-compass 发布v0.1.2更新于 Oct 27, 2026

An MCP server that provides tools to author OSCAL security compliance documentation

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

本地 MCP 服务器,让助手通过 compliance-trestle 编写、导入、转换并校验 OSCAL 安全合规文档。

可以做什么
  • 初始化 trestle 工作目录,并从文件或 URL 导入已有的 OSCAL 模型
  • 从 catalog 和 profile 生成 markdown 形式的控制项文档,将 profile 解析为 catalog,并把 markdown 汇编回 profile JSON
  • 把 CSV 映射文件转换为 OSCAL 组件定义,把 FedRAMP 格式的 XLSX 表格转换为 OSCAL 行动计划与里程碑(POA&M)
  • 按 OSCAL 架构及 trestle 的语义检查校验单个 OSCAL 文件
适用场景
适合维护基于 OSCAL 的安全合规材料时使用:让助手搭建 trestle 工作目录、把 catalog 或 profile 转成可编辑的 markdown、把表格转换为 OSCAL 模型,或检查文件是否符合架构。
运行要求
以本地 stdio 进程运行,来自 PyPI 包 compliance-trestle-mcp;README 使用 uvx 启动,因此需安装 uv/uvx 并在 PATH 中。未声明认证、环境变量或请求头。仅支持桌面客户端。
安装前请注意
工具会写入当前工作目录:初始化会创建 trestle 目录,导入、生成、汇编和转换工具会在其中创建或覆盖文件。导入可从 URL 获取 OSCAL 模型,会拉取远程内容。使用生成或转换出的合规文档前请自行核对。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Compliance Trestle Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Trestle MCP

MCP server to easily use compliance-trestle (OSCAL tool) from Claude, Roo, or any MCP-compliant client.

mcp-name: io.github.oscal-compass/compliance-trestle-mcp

Getting Started

This project can be used in the following two ways:

Choose the option that best fits your workflow.

Usage from RooCode

  1. Add the following JSON to .roo/mcp.json (Roo workspace):

    json
    {    "mcpServers": {        "trestle": {            "command": "uvx",            "args": ["--from", "compliance-trestle-mcp", "trestle-mcp"]        }    }}
  2. Open Roo, confirm trestle tools are listed in the MCP panel, and execute as needed.

    https://github.com/user-attachments/assets/59215549-cad9-4101-baa4-ecba77ac3904


Usage from CLI (MCP Client)

Step 1: Write your mcp.json config
json
{    "mcpServers": {        "trestle": {            "command": "uvx",            "args": ["--from", "./trestle-mcp-tmp", "trestle-mcp"]        }    }}

Save this as mcp.json in your current directory.

Step 2: List Available Tools
uvx mcp-cli tools --config-file mcp.json

Sample output (tools available):

6 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_author_catalog_generate │ Generate Catalog controls in markdown form from a catalog         ││ trestle │ trestle_author_profile_generate │ Generate markdown documentation set for controls defined in profile││ trestle │ trestle_author_profile_resolve  │ Resolve an OSCAL profile to a resolved profile catalog.           ││ trestle │ trestle_author_profile_assemble │ Assemble markdown controls into a Profile JSON file.              │└─────────┴─────────────────────────────────┴───────────────────────────────────────────────────────────────────┘
Step 3: Execute a Tool (e.g., 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-plansassessment-results  component-definitions  profiles

Tool List & Quick Reference

  • trestle_init: Initialize a trestle workspace
  • trestle_import: Import OSCAL models (Catalog/Profile/etc.) from a file or URL
  • trestle_author_catalog_generate: Generate markdown controls from a catalog
  • trestle_author_profile_generate: Generate markdown for profiles
  • trestle_author_profile_resolve: Resolve profile to catalog
  • trestle_author_profile_assemble: Assemble markdown controls into profile JSON
  • trestle_task_csv_to_oscal_cd: Convert a CSV mapping file into an OSCAL component definition
  • trestle_task_xlsx_to_oscal_poam: Convert a FedRAMP-format XLSX spreadsheet into an OSCAL Plan of Action and Milestones (POA&M)
  • trestle_validate: Validate a standalone OSCAL file (any top-level model, e.g. POA&M) against the OSCAL schema (and trestle's semantic checks)

For advanced use, refer to official compliance-trestle docs or developer documents in this repo.

Troubleshooting & Help

  • Make sure uvx is installed and on your PATH.
  • If you see command/module errors, check the MCP server path in 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.

来源:README.md,提交 2639553

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分