> For the complete documentation index, see [llms.txt](https://docs.debricked.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.debricked.com/tools-and-integrations/cli/debricked-cli/configure-mcp-servers.md). Agents can also search and read this documentation through its [MCP server](https://docs.debricked.com/~gitbook/mcp).

# Configure MCP servers

Set up the Fortify SCA MCP server with the Fortify SCA CLI for supported AI coding agents.

#### Fortify SCA MCP server

The Fortify SCA MCP server provides SLP for Agents. It gives AI coding agents policy context from Fortify SCA when they add, install, upgrade, import, or recommend a dependency.

When an agent attempts to add a dependency, it calls the server. The server checks whether the dependency complies with the repository's Fortify SCA policies before the agent proceeds.

The server also identifies policy findings for dependencies and projects.

For standalone server details, see the [Fortify SCA MCP repository](https://github.com/debricked/fortify-sca-mcp).

### Before you start

Install the current Fortify SCA CLI and confirm it’s available in your terminal:

```sh
debricked --help
```

{% hint style="info" %}
The CLI supports Windows, Linux, and macOS. Use the current CLI release. MCP commands are not available in the legacy CLI.
{% endhint %}

#### Scan the repository

Scan the repository before configuring the MCP server. This registers its dependency data and evaluates the policies assigned to that repository.

From the repository root, authenticate and run a scan:

```sh
debricked auth login
debricked scan .
```

Before using the MCP server:

1. Confirm that the scan completes successfully.
2. Configure the policies and rules that apply to the repository in Fortify SCA.
3. Use the MCP server. It evaluates dependencies against those repository policies.

#### Set up a client

Run the setup command with your client’s identifier:

```sh
debricked mcp setup --client <client>
```

For VS Code with GitHub Copilot, use:

```sh
debricked mcp setup --client vscode
```

To check the setup status, run the command below.

```sh
debricked mcp status
```

Confirm your client and the Fortify SCA MCP server are listed.

#### Configure manually

If automatic setup is not available for your client, configure the MCP server manually. Use the current [manual setup instructions](https://github.com/debricked/cli#manual-setup) for the required client configuration.

#### Remove a client configuration

Remove the Fortify SCA MCP server entry for a client with the uninstall command. For VS Code, run:

```sh
debricked mcp uninstall --client vscode
```

#### Configure automatic invocation

For GitHub Copilot, add repository instructions so the agent calls the Fortify SCA MCP server whenever it changes a dependency.

Create `.github/copilot-instructions.md` in the repository:

```md
## Dependency policy

Before adding, installing, upgrading, importing, or recommending a dependency, call `check_dependency_policy_compliance` with 1–5 distinct, versioned PURLs (`purls`); use one for a single package.

- **Compliant:** Report the checked package/version as approved by Fortify SCA.
- **Blocked:** Do not add it. Report every rule's condition, package-specific trigger evidence, and configuration URL when present. Disclose truncated results; never infer which OR branch matched.
- **Unavailable:** Report the reason; do not claim approval.
- **Alternatives:** For a blocked package, inspect its use and compatibility, then present up to five exact, versioned PURLs as unchecked candidates. Ask approval for that exact list. After approval, check all approved candidates in one call. Recommend only candidates that pass; report each result and say if none pass. Approval permits checking only, not adding or installing. Get fresh approval before checking a different candidate list.
```

Commit this file with the repository. GitHub Copilot reads these instructions when it works in the repository.

#### Check a dependency

When an agent adds or upgrades a dependency, it calls the server automatically. You can also trigger a check with a direct request or a feature plan that requires a new package. For example, in GitHub Copilot Chat:

> Add `lodash` to my repository.

> Upgrade `lodash` to the latest version.

If a proposed package does not comply, the agent can find an alternative version or package. Each alternative triggers a new policy check. The agent proceeds only after the selected dependency complies with the repository's policies.

### Troubleshooting

If the server does not appear, close the AI client completely and reopen it. Then rerun `debricked mcp status`.

If the client configuration is missing, run setup again for that client. Use `debricked mcp --help` to review the commands supported by your installed CLI version.

For CLI source and release information, see the [Fortify SCA CLI repository](https://github.com/debricked/cli).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.debricked.com/tools-and-integrations/cli/debricked-cli/configure-mcp-servers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
