MICP is a declarative protocol for connecting software agents to real services. One integration is a set of accounts and methods. The credentials live in a vault that the agent never touches. Every call is signed, scoped and recorded.
An agent needs to send an email. The fastest way is to paste an app password into the conversation. It works — for about three weeks.
Then nobody remembers which account was used, whether the password is still valid, or who else has seen it. The password is now in a transcript, in a log, in a provider's retention window. And the agent has permission to do everything that account can do, including the things you never intended.
Prompts, tool outputs, logs and support tickets become a second copy of your secrets.
An API key for “send email” is also a key for “read every message in the mailbox”.
When something goes wrong, there is no record of which account did what, and when.
The usual fix is to move credentials out of the prompt and into a tool-calling protocol. That solves the first symptom. The second and third remain: a tool is either available or not, and the record is whatever the client decides to keep.
An integration is a type — gmail, stripe.
Below it live accounts: the actual credentials. Each account exposes
methods, and the method is where the contract lives.
{ "integration": "gmail",
"accounts": [
{ "account": "elizeu", "enabled_methods": ["send"] },
{ "account": "support", "enabled_methods": ["send", "read", "mark_read"] }
],
"methods": {
"send": { "fields": { "account": "account", "to": "email", "subject": "text", "body": "text" },
"output": { "sent": "boolean", "id": "text" } },
"read": { "fields": { "account": "account", "folder": "text", "limit": "number" } }
} }
Two decisions follow from this shape, and they are the whole design:
Adding a tenth Gmail account is one row of data, not ten definitions. Twenty accounts with six methods is six tools, not a hundred and twenty.
account is a first-class field, filled from the account list — never typed by the
model. So “the support mailbox” is a choice, not a guess.
A method is declarative: a transport, a request template, an input schema, an output map. There is no code per integration — the executor is written once and reads the recipe. That is why adding an integration is a configuration change, not a deployment.
There are exactly two kinds of key in MICP. Many keys belong to the providers. One key belongs to you.
| Key | How many | What it does | Leaves the server? |
|---|---|---|---|
| Vault key | one per installation | encrypts and decrypts stored credentials | never |
| Account credentials | one per account | what the provider issued: bearer, password, token | only on the outbound call |
| Access tokens | one per agent or run | who is allowed to call which method | to the caller |
The vault key never authenticates anything and never decides anything. It does one job: it opens the vault. Permissions are decided by grants, in the database — never by a key.
A call carries the method, the inputs, and a signature over the exact bytes. Two questions are answered separately, and this is the part most designs get wrong:
Answered by the signature — HMAC or Ed25519 over the body, with a timestamp and a nonce. It proves authenticity and integrity. It says nothing about permission.
Answered by the grant — a row that says “this agent may call
gmail.support.send”. Verified on the server, before the vault is opened.
POST /methods/gmail.send
Authorization: Bearer <run pass> # who is calling (15 min, scoped)
X-Micp-Run: r_8f21
X-Micp-Ts: 1795649100
X-Micp-Nonce: 7c1a9f
{"account":"support","to":"joao@example.com","subject":"Report","body":"Attached."}
On the server: verify signature → check timestamp and nonce → check grant → open vault → execute → map output → record. The agent sees the first step and the last. Everything between them happens behind the counter.
Discovery is filtered by the same grants. A method the agent cannot use is not refused at execution time — it never appears in the list. Invisibility, not rejection.
Integrations are private definitions and reviewed packs. There is no store, no ranking, no third-party payouts.
MCP is a tool-calling transport. MICP is the layer underneath: credentials, accounts, grants, audit. MCP, REST, OpenAPI and CLI are adapters on top of it.
Three transports — http, smtp, imap. No shell, no
plugins, no scripts. Determinism is the feature.
A vendor that ships a CLI is still covered: the CLI is code, and code does not belong in a protocol. What belongs here is the declaration — what exists, who may call it, what it returns — and a single executor that honours it.
A model does not need a protocol to receive tools. It needs a name, a description and a JSON schema. Whoever assembles that list is the platform — and that is the work.
integration + account + method becomes one tool:
stable name, natural-language description, fields as JSON schema. The account is
folded into the name, so the model never invents one.| # | Check |
|---|---|
| 1 | A method is one operation, with an input and an output schema. |
| 2 | Every method names its transport from {http, smtp, imap}. |
| 3 | Secrets are referenced, never embedded: $vault:name.field. |
| 4 | No pack contains a credential, in any form. |
| 5 | Every integration declares an allowlist of destinations. |
| 6 | Grants are per account and per method — never per integration. |
| 7 | Discovery returns only what the caller is granted. |
| 8 | Every call is idempotent per run, node and attempt. |
| 9 | Calls carry timestamp and nonce; replays are rejected. |
| 10 | Errors are typed: invalid input, vault unavailable, not authorised, provider failure, idempotency conflict. |
| 11 | The vault key is stored outside the database, with a separate backup. |
| 12 | Every call is recorded: account, method, caller, run, outcome, duration. |