AI Development

How Do You Package an MCP Server and Agent Skills in One Directory? Copyable Agent Plugins JSON After November 2026

About 16 min read

On 11 November 2026, Google Cloud said its Cloud SQL and AlloyDB plugins put safe actions in MCP and the steps in Agent Skills. What you copy is three files, not a product name. plugin.json only names the plugin. The SKILL.md body loads when a task needs it. mcp.json declares the servers. The model still only fills JSON.

Before you read

File What it does in this tutorial Leave it out
plugin.json Only $schema and name are required. It identifies the plugin. It does not list skills or servers skills, mcpServers, secrets
skills/lookup-order/SKILL.md Startup loads the YAML name and description. The body enters context on demand A nested directory, or a full runbook in description
mcp.json A stdio command is one token. Placeholders belong only in args, env, and cwd A shell string, placeholders in url, a portable credential field
Startup index The host keeps skill summaries and server names. This is not a spec file The skill body, or tools/call arguments

Facts as of 2026-11-13: the 11 Nov 2026 Google Open Source Blog (Kurtis Van Gent, Daryl Ducharme) and Agent Plugins 1.0.0. orders-plugin, A-1042, and orders.example.com are fictional. That post did not publish a Cloud SQL plugin.json.

One directory: the manifest names it, the skill states the step, mcp.json names the server

People searching for how to configure plugin.json and mcp.json often paste a client-private manifest. Agent Plugins 1.0.0 does not read a server list from the manifest. The client validates root plugin.json, discovers SKILL.md only in immediate children of skills/, and connects only from root mcp.json. In the 11 Nov 2026 Google Open Source Blog, Kurtis Van Gent describes the same split for Antigravity connecting to PostgreSQL on Cloud SQL or AlloyDB: MCP lists safe actions the agent may take, and Skills supply the steps, such as provisioning an instance or configuring IAM database authentication. The interview does not include that official manifest. The orders-plugin below uses fictional order A-1042 so you can copy the shape.

  • Manifest. Set name to orders-plugin. Do not add skills or mcpServers.
  • Skill. Startup loads only the YAML name and description. The body, references, and scripts load when a task needs them. That is the progressive disclosure from the same interview.
  • MCP. command is one executable token. ${PLUGIN_ROOT} appears only in args, env, and cwd. url and headers are not expanded.

The closed field list and failure boundaries are in what plugin.json owns. Turning an existing REST API into a remote MCP server is in turning REST into MCP. The tools/call wire shape is in how a coding agent calls MCP. This page is the copyable directory.

Start with a short plugin.json

Locations are fixed. A plugin may omit skills/ or mcp.json. Only plugin.json is required. The action-plus-steps layout in this tutorial needs all three:

orders-plugin/
├── plugin.json
├── skills/
│   └── lookup-order/
│       └── SKILL.md
├── mcp.json
└── config/
    └── policy.json

Only $schema and name are required. version, description, and keywords are optional. Unknown top-level keys are reported and ignored, so an mcpServers key here starts nothing. The closed field list is in what plugin.json owns. The client also must not fetch that schema while loading.

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "orders-plugin",
  "version": "1.0.0",
  "description": "Look up fictional order A-1042. The skill says when. MCP exposes lookup_order.",
  "keywords": ["orders", "lookup"]
}

State when to call the tool in one SKILL.md description

A skill is an immediate child of skills/ whose file is named exactly SKILL.md. A deeper file is not discovered. Frontmatter follows the Agent Skills specification. The 11 Nov 2026 account is: startup loads the YAML name and description, and the body enters context on demand. Keep description to one executable boundary. Do not paste the runbook there.

---
name: lookup-order
description: Look up fictional order A-1042 with lookup_order. Do not call refund_order.
---

When the user asks for order A-1042, call lookup_order with {"order_id":"A-1042"}.
Read the tool result before answering.
Do not invent a refund, and do not call refund_order.
If that server entry was skipped, say the lookup tool is unavailable.

This skill does one job. When the user asks for A-1042, call lookup_order, and do not call refund_order. The skill does not perform the side effect. The host validates arguments against a schema, then sends tools/call.

Declare a local process and a remote endpoint in mcp.json

The top level may contain only $schema and mcpServers, and the version must match plugin.json at 1.0.0. A stdio command is a bare executable name or a plugin-relative path starting with ./. It is not a shell string, and placeholders are not expanded in it. ${PLUGIN_ROOT} and ${PLUGIN_DATA} belong in args, env, and cwd. Those two names are forbidden inside env. The client sets them. A streamable-http url and its headers are literals. Version 1.0.0 has no portable credential field.

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
  "mcpServers": {
    "orders": {
      "type": "stdio",
      "command": "./bin/orders",
      "args": ["--data", "${PLUGIN_DATA}/orders"],
      "env": {
        "POLICY_FILE": "${PLUGIN_ROOT}/config/policy.json"
      },
      "cwd": "${PLUGIN_ROOT}"
    },
    "order-status": {
      "type": "streamable-http",
      "url": "https://orders.example.com/mcp",
      "headers": {
        "X-Tenant": "public-demo"
      }
    }
  }
}
Field What 1.0.0 does
command No expansion. One token: a bare name, or a ./ path that stays inside the plugin root
args, env, cwd Expand PLUGIN_ROOT and PLUGIN_DATA once. Replacement is not recursive
url, header names, header values Literals. No placeholder expansion and no environment-variable reads
PLUGIN_ROOT or PLUGIN_DATA inside env That server entry is invalid. The client sets both after applying env

orders is a local process. order-status points at fictional orders.example.com. X-Tenant is a demo label, not a secret. One invalid server entry is skipped. An invalid mcp.json disables MCP for that plugin only. Skills still load. The argument gate for lookup_order is in why AI needs JSON Schema.

At startup, keep the skill summary and the server names

The next object is not a specification file. It is an index a host can keep at startup. It matches the split Van Gent described: MCP made tools shareable, and Skills use progressive disclosure to keep context small. Google Cloud's database plugins are the same index. Safe actions come from MCP. Steps for provisioning and IAM authentication come from the skill. The interview says complex database tasks finish faster and more reliably when the two are paired. It does not give a number.

{
  "plugin": "orders-plugin",
  "loaded_at": "startup",
  "skills": [
    {
      "name": "lookup-order",
      "description": "Look up fictional order A-1042 with lookup_order. Do not call refund_order.",
      "body": "deferred"
    }
  ],
  "mcp_servers": ["orders", "order-status"]
}

body is deferred, so the instructions are not in context yet. mcp_servers is only names. After connect, the model fills arguments for lookup_order and the host runs the call. As of 11 Nov 2026, the Agent Skills specification still does not define how a collection of skills is packaged, discovered, or disambiguated. Van Gent called that the next step. The directory above is the packaging that already exists. Do not add a second manifest under skills/.

Six steps to assemble the plugin

Check the three files locally with fictional order A-1042, then rename the tool to yours:

  1. Write root plugin.json. Use the lowercase name orders-plugin. Do not add skills or mcpServers.
  2. Put the skill in a direct child directory. skills/lookup-order/SKILL.md. The description only looks up the order and says not to call refund_order.
  3. Match mcp.json $schema to 1.0.0. Set command to ./bin/orders. Put placeholders only in args, env, and cwd.
  4. Use streamable-http with a literal url. Do not put a token in headers. X-Tenant here is public-demo.
  5. Separate the failure layers. A bad server entry is skipped. A bad mcp.json disables MCP only. A bad plugin.json rejects the package.
  6. Write a schema for the arguments. This directory only finds lookup_order. The host still checks A-1042 before it runs the call.

config/policy.json is an ordinary bundled file for POLICY_FILE. It is not a second manifest, and it should not hold a secret.

Lay out both JSON files before you commit

If a server does not start, decide whether the package was rejected, all MCP was disabled, or one entry was skipped.

  • Format plugin.json and mcp.json, then Schema validate them for an extra top-level key or a missing $schema.
  • Use JSONPath extract to pull $.name, $.mcpServers.orders.command, and $.mcpServers.order-status.url.
  • After you change command or headers, run a JSON Diff. Confirm you did not add a shell string or a token.
  • Match the SKILL.md description to the mcpServers keys. lookup_order, the tool the skill names, has to exist on one of those servers.
  • Run headers and env through redact first. How keys leak from MCP config is in how API keys leak from config. JSONSort stays in the browser and does not upload the file.

Once the two JSON files match, you can tell an extra manifest key from a placeholder in the wrong field, or a skill description that names a missing tool.

Pitfalls

  • Putting mcpServers in plugin.json. Unknown top-level fields are ignored. With no root mcp.json, no server starts.
  • A shell string in command, or ${PLUGIN_ROOT} inside command. The spec wants one token, and command is not expanded.
  • Setting PLUGIN_ROOT or PLUGIN_DATA in env. That server entry is invalid. The client writes both after it applies env.
  • Putting the runbook in description. Startup loads that sentence into context. The body should wait until the task needs it.
  • Treating the Cloud SQL plugin as a file you can paste. The 11 Nov post describes the pairing. It does not publish that plugin.json.
  • Waiting for the Agent Skills spec to define collection packaging. As of that interview, packaging and discovery are still next. Agent Plugins 1.0.0 already fixes the directory.

FAQ

How is this different from the October article on what plugin.json is?

That article is the closed field list and the failure boundaries. This one is the copyable plugin.json, SKILL.md, and mcp.json after Google Cloud described the pairing on 11 Nov 2026.

Can plugin.json point at mcp.json with a path?

No. Discovery paths are fixed. MCP is read only from mcp.json at the plugin root. It cannot be inlined in the manifest or moved.

When does the SKILL.md body load?

Not at startup. Startup loads the YAML name and description. The body, references, and scripts enter context when a task needs them.

Where does the database password go?

Not in these files. Version 1.0.0 has no portable credential field. url and headers are not expanded from the environment. Authentication stays with the client. The example has no secret.

If order-status fails to connect, is lookup-order still there?

Yes. One invalid server entry is skipped and skills keep loading. Only an invalid mcp.json disables every MCP server in that plugin.

Conclusion

To ship an MCP server and a skill together, copy three files: a short plugin.json, a SKILL.md whose description draws a hard boundary, and an mcp.json whose command is one token.

The 11 November split is the point. MCP lists the safe action, the skill says when to use it, and the model only fills JSON for lookup_order. The host still checks A-1042 before it runs the call.

Further reading

Changelog: First published