MICPManaged Integration & Credential Protocol
Protocol · v0.1 · November 2026

Integrations for agents,
without lending them the keys.

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.

9 pages·3 transports: http · smtp · imap ·Reference implementation in production
1 · The problem

The key ends up in the prompt

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.

01

Credentials leak through conversation

Prompts, tool outputs, logs and support tickets become a second copy of your secrets.

02

Permission is all-or-nothing

An API key for “send email” is also a key for “read every message in the mailbox”.

03

No answer to “what did it do?”

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.

2 · The model

One integration, many accounts, one contract per method

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:

The method is defined once

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.

The account is a parameter

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.

3 · Keys

One key protects all the others

There are exactly two kinds of key in MICP. Many keys belong to the providers. One key belongs to you.

KeyHow manyWhat it doesLeaves the server?
Vault keyone per installationencrypts and decrypts stored credentialsnever
Account credentialsone per accountwhat the provider issued: bearer, password, tokenonly on the outbound call
Access tokensone per agent or runwho is allowed to call which methodto 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.

The flow, in four beats

01 · store
Credential in
The user pastes it once. It is encrypted with the vault key before it touches disk.
02 · ask
Agent calls a method
It sends inputs only — a signed request. No credential, no vault key.
03 · open
Vault decrypts
In memory, for the duration of the call. Bound to workspace, account and field.
04 · call
Provider is called
The credential goes on the wire. The plaintext is dropped. The call is recorded.
Storing encrypts; calling decrypts; nothing else ever sees the secret.
Rotation does not re-ask for anything. Changing the vault key re-encrypts the rows and retires the old key. The provider credentials stay exactly as they were.
4 · The call

Signed, scoped, recorded

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:

Is this really them, unmodified?

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.

Are they allowed to do this?

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.

5 · Boundaries

What MICP is not

Not a marketplace

Integrations are private definitions and reviewed packs. There is no store, no ranking, no third-party payouts.

Not MCP

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.

Not arbitrary code

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.

6 · Implement

Five steps, no new standard

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.

  1. Decide where the vault livesSame process (embedded) or a separate integration server. If separate, the platform points at a URL and the two sides pair once, with a code that expires.
  2. Expose discoveryThe server answers “what exists, for this workspace” — accounts, methods, input and output schemas. Filtered by what that workspace was enabled for.
  3. Cross with grantsKeep only what this agent may call. Do this before the model sees anything, not after it tries.
  4. Translate into toolsintegration + 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.
  5. Forward signed callsWhen the model picks a tool, send the inputs to the server with a signature. Return the mapped output, or a typed error.

Conformance — the twelve checks

#Check
1A method is one operation, with an input and an output schema.
2Every method names its transport from {http, smtp, imap}.
3Secrets are referenced, never embedded: $vault:name.field.
4No pack contains a credential, in any form.
5Every integration declares an allowlist of destinations.
6Grants are per account and per method — never per integration.
7Discovery returns only what the caller is granted.
8Every call is idempotent per run, node and attempt.
9Calls carry timestamp and nonce; replays are rejected.
10Errors are typed: invalid input, vault unavailable, not authorised, provider failure, idempotency conflict.
11The vault key is stored outside the database, with a separate backup.
12Every call is recorded: account, method, caller, run, outcome, duration.
Reference implementation. MICP v0.1 runs in production as the integration layer of a pipeline platform: declarative methods, a vault key, per-method grants, filtered discovery and an audit trail. The paper separates what exists from what is intended — section 12 is the status table.
7 · Documents

Read it, or build it