> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/ai/mcp/test.md).

# Test an MCP integration

Test an MCP integration — Norbix checks that its secret is stored and can be read.

**Where:** Project → Integrations → MCP → an integration → **Test integration** · `/projects/<project>/ai/mcps/integrations/<integrationId>/edit`

## Before you start

* The integration is saved — see [MCP providers](/codemash/cloud/ai/mcp/providers.md).

{% hint style="warning" %}
The test does **not** connect to the MCP server and does not list its tools. It only checks that Norbix can read the stored secret (the one check is called **secrets**). A wrong **Server URL** or token also passes.
{% endhint %}

## Steps

1. Open **Project → Integrations**, tab **MCP**, and press the integration, here `Stripe tools`. The badges say **ENABLED** and **NOT TESTED**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-2dce3ec5784cc426f2b9126cdaf54d6152e99ace%2Fmcp-test-1.png?alt=media" alt="Editing Stripe integration: badges ENABLED and NOT TESTED, the id, Server URL, API Key, Integration Name Stripe tools, and the test panel with Run test after successful save"><figcaption><p>Before the test.</p></figcaption></figure>
2. Press **Test integration** at the bottom.

## Result

The panel says **Test passed**, with the time of the run and **secrets — Success**; the badge becomes **TESTED**.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-d74b1fed44711eafc96a4d6100dd1b018320498a%2Fmcp-test-2.png?alt=media" alt="Test passed, Last run 10/6/2026 4:14 PM, secrets Success; badges ENABLED and TESTED"><figcaption><p>Test passed — with a placeholder key, so the test did not reach Stripe.</p></figcaption></figure>

## Change or remove it later

* Change the URL or the secret, press **Save** (the secret is asked again on every save), and test again.
* [Disable or delete](/codemash/cloud/ai/mcp/disable.md) the integration.

## Do it from code

```ts
const { items } = await norbix.hub.ai.testMcpIntegration({ integrationId: 'int_6MHdxteSMYMEQShNkGStUH' });
console.log(items); // [ { operation: 'secrets', result: 'OK' } ]
```

```sh
norbix hub ai mcp integration test --integrationId int_6MHdxteSMYMEQShNkGStUH
```

The client setup is on the [AI page](/codemash/cloud/ai.md#use-it-from-code). API: [Test Mcp Integration](/codemash/api-reference/ai/integrations/test-mcp-integration.md)
