<!-- Markdown version of https://www.trustsource.io/en/developers/ — TrustSource API, CLI and MCP server for developers -->

# TrustSource for developers: API, CLI, MCP server and Community Edition

TrustSource can be driven from build pipelines, scripts and AI agents. This is the overview of the interfaces. Documentation is at [help.trustsource.io](https://help.trustsource.io/v3/).

## ts-scan (CLI and GitHub Action)

[ts-scan](https://github.com/trustsource/ts-scan) is the open-source scanner for software composition analysis. It detects direct and transitive dependencies of all common build systems, generates the SBOM and uploads it to TrustSource. It is available as a CLI, a Docker image and a [GitHub Action](https://github.com/trustsource/ts-scan-action). More on the [product page](https://www.trustsource.io/en/products/ts-scan/).

[ts-scan-agent](https://github.com/trustsource/ts-scan-agent) (Apache-2.0) looks at a repository and proposes a scan concept: which parts become modules, infrastructure modules or linked modules, and which `ts-scan` command fits each. The result is a Markdown report (or JSON for scripts and coding agents) that you review yourself. The agent does not touch your TrustSource account.

## TrustSource API (REST, version 2)

The API is served at `https://api.trustsource.io/v2`. The version lives in the base URL, the paths themselves are version-free. The API key is sent as the HTTP header `x-api-key`, never in the URL or the body. The reference is in the [online help](https://help.trustsource.io/v3/09-rest-api/).

```
curl -H "x-api-key: $TS_API_KEY" https://api.trustsource.io/v2/core/projects
```

You create a key in your account after [registering](https://app.trustsource.io/register).

## MCP server (ts-mcp)

[ts-mcp](https://github.com/trustsource/ts-mcp) (AGPL-3.0) exposes the TrustSource API as tools for Claude and other MCP-capable assistants: projects, modules and scans, compliance checks, approvals, vulnerabilities, risks and reports. It starts via Docker (`docker run -i --rm -e TS_API_KEY=… trustsource/ts-mcp`), is read-only by default (`TS_ACCESS_MODE=read`) and can be restricted to individual projects. The image is on [Docker Hub](https://hub.docker.com/r/trustsource/ts-mcp).

## TrustSource Community Edition

The [Community Edition](https://github.com/trustsource/ts-core-ce) (AGPL-3.0) is the open-source version of the platform for self-hosting: component and license compliance, vulnerability tracking, SBOMs and release approvals. The reference setup runs with Docker Compose (app, MongoDB, license check service). Compared with the commercial edition it lacks, among other things, the AI assistant, risk management, single sign-on and the Legal Manager. If you need those, use the [hosted platform](https://app.trustsource.io/register).

## More open-source tools

-   [DeepScan](https://github.com/trustsource/ts-deepscan): source-code analysis for licenses, malware, crypto algorithms and copyrights ([product page](https://www.trustsource.io/en/products/deepscan/))
-   [ts-legalcheck](https://github.com/trustsource/ts-legalcheck): automatic license checks in project context ([product page](https://www.trustsource.io/en/products/legalcheck/))
-   [ts-sbom-checker](https://github.com/trustsource/ts-sbom-checker): checks an SBOM against the JSON schema (CycloneDX, SPDX) and BSI TR-03183-2. Not an official BSI tool.
-   [sbom2notice](https://github.com/trustsource/sbom2notice): turns an SBOM into a NOTICE file, runs entirely in the browser ([live demo](https://trustsource.github.io/sbom2notice/))
-   [ts-obom](https://github.com/trustsource/ts-obom): extracts resources and access grants from infrastructure as code (CloudFormation, SAM, Terraform), an operations bill of materials (OBOM)
-   [ts-sast](https://github.com/trustsource/ts-sast): static analysis with SARIF output, starting with classic Visual Basic 6
-   [csaf-rs](https://github.com/trustsource/csaf-rs): parser and validator for CSAF documents in Rust (work in progress)
-   [ts-docs](https://github.com/trustsource/ts-docs) and [SSRM](https://github.com/trustsource/SSRM): sources of the documentation and of the [Shared Security Responsibility Model](https://trustsource.github.io/SSRM/)
-   [tool-center](https://github.com/trustsource/tool-center): data and schema of a large collection of SBOM and xBOM tools

All public repositories are in the [TrustSource GitHub organization](https://github.com/trustsource/).

## Questions?

Write to support@trustsource.io or use the [contact form](https://www.trustsource.io/en/contact/). Operational status is at [status.trustsource.io](https://status.trustsource.io/).
