Skip to main content

User guide · Chapter 13 of 13

Building plugins for ODIN

How a developer builds an ODIN plugin, tests it, submits it for review and publishes it to the marketplace, as with ChatGPT apps and Claude plugins.

On this page

Acme's finance team uses a local accounting system nobody has connected yet. Priya, one of Acme's developers, decides to build the plugin herself. This chapter follows her from an empty folder to a plugin every ODIN company can install.

What is an ODIN plugin?

A plugin connects ODIN to another tool. It has two parts: an MCP server that does the work, and a manifest, a JSON file that says what the plugin reads, which actions it offers, how a person signs in and why each permission is needed. ODIN's own connectors (GitLab, Outlook, Gmail, Slack and the rest) are plugins in the same format, so yours sits next to them in the directory with the same rules.

Three things stay with ODIN and never live in your plugin: each person's credential (kept in ODIN's vault and passed to your server per call), the gate that asks a person before anything is sent or changed, and the record of every run.

Where do I start?

Start from the open-source kit at github.com/myviliha/open-connectors. It holds the Rust crates odin-connector-kit (the manifest rules and webhook signature checks), odin-connectors (sixteen working connectors to copy from, among them Slack, Teams, Gmail, GitHub, Linear and Telegram) and odin-connectors-mcp (an MCP server that serves them). The connectors are Apache 2.0. Copy the folder of the connector closest to yours and change it.

You can write your MCP server in any language. Only the manifest's format is fixed.

What goes in the manifest?

Here is the smallest useful manifest:

{
  "id": "acme-ledger",
  "name": "Acme Ledger",
  "publisher": "Acme",
  "version": "1.0.0",
  "status": "available",
  "description": "Read invoices and post an approved payment note.",
  "sections": ["finance"],
  "sign_in": {
    "kind": "token",
    "provider": "acme-ledger",
    "scopes": [
      { "name": "invoices:read", "why": "find the invoices you ask about" },
      { "name": "notes:write", "why": "post a payment note you approved" }
    ]
  },
  "reads": ["Invoices and their status (read live)"],
  "actions": [
    {
      "name": "find_invoices",
      "description": "Find invoices by customer, number or status",
      "writes": false,
      "input": { "type": "object", "properties": { "query": { "type": "string" } }, "required": ["query"] }
    },
    {
      "name": "post_note",
      "description": "Post a note on an invoice",
      "writes": true,
      "approval": "ask",
      "input": { "type": "object", "properties": { "invoice": { "type": "string" }, "text": { "type": "string" } }, "required": ["invoice", "text"] }
    }
  ],
  "events": ["invoice.paid"]
}

Each action becomes a tool your users' agents call as acme-ledger.find_invoices. The input is the tool's JSON Schema.

Which rules does a manifest have to keep?

ODIN checks every manifest the same way, its own included:

  • The id is lowercase letters, digits and hyphens, at most 40 characters, and is yours once you first submit it. Action names are lowercase letters, digits and underscores.
  • A name, a publisher and a description are required, written in plain words.
  • The version is major.minor.patch, and each new submission is newer than the last one approved.
  • The status is available. (coming is for ODIN's own roadmap.)
  • It sits in at least one section of the directory: popular, new, code, tracking, documents, email, chat, calendar, files, crm, cloud, logistics, finance or real-estate.
  • The sign-in is oauth or token with a provider and the scopes it asks for, or none with no scopes. Every scope says why it is needed, in words a person reads before agreeing. Ask for the least.
  • Every action that sends or changes something has "writes": true and "approval": "ask". The gate then asks the person before each run, whatever the company's other settings.
  • It says what it reads. A plugin reads live and never copies a tool's files or messages into storage.
  • Events are named noun.verb, such as invoice.paid.
  • Nothing in it looks like a secret. Credentials come from each person's vault, never from the manifest.

How do I test my plugin?

Test in three steps, cheapest first.

  1. Check the manifest. In the kit, odin_connector_kit::manifest::check returns every rule the manifest breaks. Or ask your agent "Hey Odin, validate this plugin manifest" (odin_validate_plugin): it runs ODIN's own check and lists each problem in words.
  2. Test the actions. Write tests against recorded provider responses, never a real token. The connectors in open-connectors show how, with a mock server standing in for the provider.
  3. Use it in your own company first. Submit it as private. A private plugin passes the same automatic checks but skips the human review, so it is approved at once for your company only. Ask your agent "Hey Odin, what would the gate do with my plugin?" (odin_simulate_plugin) to see each action as the gate will treat it: reading actions run with the person's credential and are recorded, and each writing action waits for the person's yes every time.

How do I submit it?

You need to be an administrator of your company on ODIN. A public plugin also needs a verified company domain (Settings, Domains). Ask your agent to submit it (odin_submit_plugin), or send POST /v1/plugins/submissions with:

  • the manifest;
  • the endpoint: the https address where ODIN reaches your MCP server;
  • the visibility: public (every company, after ODIN's review) or private (your company only);
  • your privacy policy's https address, required for a public plugin;
  • notes for the reviewer: how to try it, and a test account if one is needed.

The automatic checks run at once: the manifest's rules, an https endpoint, the privacy policy, no secret in the manifest, an id that is not one of ODIN's and not another publisher's. If anything fails, nothing is stored and you get every problem in one answer. One version of a plugin is in review at a time.

What happens in review?

An ODIN reviewer reads the manifest, the scopes and the replay of what the gate will do, tries the plugin, and decides:

  • Approved: you can publish it when you choose.
  • Changes requested: the reviewer says what to change. Fix it and submit a new version.
  • Rejected: the reviewer says why.

Anything but an approval comes with a reason. Your submissions and their state are in odin_plugin_submissions, and every step is written to your company's audit log.

How do I publish, update or withdraw it?

Publish an approved version with odin_publish_plugin (what: publish). It replaces the version published before, and it appears in the marketplace (odin_marketplace) for every company, or only for yours when it is private. To update, raise the version and submit again; the published version stays live until the new one is approved and you publish it. You can withdraw a version that is in review, approved or waiting for changes.

ODIN can suspend a published plugin that breaks the rules or harms its users. The reason is sent to you, and you can fix it and submit a new version.

Can I contribute my connector to open-connectors instead?

Yes. A connector for a widely used tool helps everyone, and ODIN maintains the official ones. Open an issue first so the approach is agreed, fork the repository on GitHub, branch from develop, sign off each commit, and open a pull request with tests. The repository's CONTRIBUTING file has the steps.

Questions

Do I need ODIN's permission to build a plugin?

No. Anyone can build one and use it privately in their own company. Listing it for every company takes ODIN's review.

Does my plugin ever see a person's password or token?

It receives the credential for one call, to do that call. It must never write it anywhere. The credential is kept in ODIN's vault and each person signs in for themselves.

Can my plugin send a message or change data without asking?

No. Every action that sends or changes something has approval ask, and the gate holds it until the person says yes. A manifest without it fails the checks.

Can I charge for my plugin?

Not yet. Paid plugins come after the marketplace's first phase.