---
name: iblai-connect-wiz
description: "Read Wiz data through the Wiz API and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with Wiz data, or to set up a Wiz MCP connection on ibl.ai."
metadata:
  kind: guide
---

# Wiz connector for AI agents

> A starting point maintained on ibl.ai at https://ibl.ai/developer/connectors/wiz — not part of the iblai/base repository. Checked against Wiz, Inc.'s documentation on October 20, 2026; test it against your own Wiz setup before you rely on it.

Wiz scans cloud environments and maps resources, configurations, identities and data into a security graph. A tenant holds a cloud inventory, security issues and toxic risk combinations, and Wiz Defend threat detections.

## Auth & conventions

- **API:** Wiz API (Documented only in the login-gated Wiz Docs). Wiz documents its API only inside Wiz Docs, which requires a customer login, so no endpoint is quoted here. Wiz's own MCP Server, in the Wiz integration portal, gives agents inventory, issue and threat access.
- **Access:** Issued by your administrator. Credentials and the API reference come from the customer's Wiz tenant and the login-required Wiz Docs; a Wiz administrator sets up the integration.
- **Auth:** not published by Wiz, Inc.. Wiz does not publish its authentication scheme outside the login-gated Wiz Docs; follow the setup there for the tenant's region.
- Keep Wiz credentials in environment variables or the ibl.ai credential store. Never print a token in chat and never commit one to a file.
- Destructive or outward-facing calls are marked **Confirm with the user first** — do.

## Reads

- **Cloud inventory** — Resources across the cloud environment, e.g. every MongoDB instance (per Wiz's MCP Server announcement).
- **Security issues** — Critical issues and their details, including exposure and toxic risk combinations.
- **Threats (Wiz Defend)** — Active threats and the resources they affect.

## Writes

- None. This skill only reads Wiz data.

## Expose it to an ibl.ai agent (MCP)

Wiz, Inc. publishes an official MCP server, Wiz MCP Server (https://www.wiz.io/blog/introducing-mcp-server-for-wiz). Register it below as-is, or host your own server that wraps the calls in this skill.

First install the ibl.ai platform skills and connect your organization (writes `IBLAI_ORG`, `IBLAI_USERNAME` and `IBLAI_API_KEY` to `.env`):

```bash
npx skills add iblai/base --all
# then, in your coding agent:
/iblai-api-login
```

Every call below sends `Authorization: Api-Token $IBLAI_API_KEY`.

1. **Register the server** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-servers/` with `name`, `url`, `transport` (`sse` | `websocket` | `streamable_http`) and `auth_type` (`none` | `token` | `oauth2`). Capture the returned `id`.
   - For an API key or service credential use `auth_type=token` with `auth_scope=platform` for one key across the organization, or scope it to a single agent for one key per agent.
2. **Create the connection** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-server-connections/` with `server`, `scope` (`platform` | `mentor` | `user`), `auth_type`, and either `credentials` + `authorization_scheme` or a `connected_service` id for OAuth. Credentials are masked on read; never send a masked value back.
3. **Enable it on the agent** — `GET https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/{agent_id}/settings/`, add `mcp-tool` to `tool_slugs` and the server id to `mcp_servers`, then `PATCH` the full lists back. They are replaced, not merged.

Full reference: https://ibl.ai/developer/platform/mcp/mcp-connections and the `/iblai-api-agent-mcp` skill.

## Example prompts

- "List critical issues on internet-exposed resources opened this week"
- "Which cloud resources are affected by active Wiz Defend threats?"
- "Summarize toxic combinations involving sensitive data stores"
- "Draft a weekly cloud risk report by project and severity"

## Guardrails

- Cloud inventory and security issues map where an organization's cloud can be attacked. Scope Wiz credentials to least privilege and log every agent query.
- Request the narrowest Wiz scopes or role the task needs, and prefer a read-only credential for agents that only answer questions.
- Return the fields the user asked for, not whole records; do not paste personal data into chat that the user did not request.
- Before any write, show the user exactly what will change and wait for a yes.
- Page through large result sets and back off on rate-limit responses instead of retrying in a loop.

## References

- Introducing the MCP Server for Wiz: https://www.wiz.io/blog/introducing-mcp-server-for-wiz
- Wiz MCP Server in AWS Marketplace: https://www.wiz.io/blog/wiz-mcp-server-now-available-in-the-new-aws-marketplace-ai-agents-and-tools-categ
- Wiz MCP Server: https://www.wiz.io/blog/introducing-mcp-server-for-wiz
- This connector on ibl.ai: https://ibl.ai/developer/connectors/wiz
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
