# kosa8 mcp-policy

Govern which MCP servers and tools each team may use

An org signs a policy of scopes — "engineering", "data-science" — each
listing the MCP servers it may reach and, within a server, which tools.

A server nobody approved is denied: the approved set is a list, not a
denylist of things someone thought to forbid. Tool names take wildcards
("read_*"); server names never do, because one pattern would re-approve
everything. Deny beats allow.

The policy is signed with the same key as `kosa8 policy` and verified
against the same pinned signer, so editing it locally breaks it — and a
broken policy denies everything rather than falling back to open.

## Example

```
  kosa8 mcp-policy show
  kosa8 mcp-policy init > mcp-policy.json
  kosa8 mcp-policy check github create_issue --scope eng
```

## Subcommands

- [`kosa8 mcp-policy check`](https://docs.kosa8.com/reference/mcp-policy-check.md): Ask whether a scope may call a tool, and record the decision
- [`kosa8 mcp-policy events`](https://docs.kosa8.com/reference/mcp-policy-events.md): Export MCP policy decisions for a SIEM (--format jsonl|cef)
- [`kosa8 mcp-policy init`](https://docs.kosa8.com/reference/mcp-policy-init.md): Print a template MCP policy to edit and sign
- [`kosa8 mcp-policy install`](https://docs.kosa8.com/reference/mcp-policy-install.md): Verify a signed MCP policy against the trusted key and activate it
- [`kosa8 mcp-policy scopes`](https://docs.kosa8.com/reference/mcp-policy-scopes.md): List the scopes the org policy defines
- [`kosa8 mcp-policy show`](https://docs.kosa8.com/reference/mcp-policy-show.md): Show the active MCP policy
- [`kosa8 mcp-policy sign`](https://docs.kosa8.com/reference/mcp-policy-sign.md): Sign an MCP policy with your org's ed25519 private key

---
Source: https://docs.kosa8.com/reference/mcp-policy/
