AI Development

Why does an AI agent need plugin.json? In November 2026 VS Code uses $schema to tell four manifests apart

About 16 min read

An AI agent needs plugin.json because skills and MCP servers can already move on their own. The wrapper around them still cannot. The VS Code plugin authoring reference, approved on 11 November 2026, still auto-detects four manifests. A root plugin.json follows the closed Agent Plugins 1.0.0 list only when $schema is that specification URL. Without it, the same file name is a Copilot manifest. Cursor also reads .cursor-plugin/plugin.json, and that file may inline mcpServers. On the portable manifest the same key is ignored.

Before you read

Question Fact in November 2026 What the manifest does not do
Why a manifest Components are portable. Wrappers were not. Clients must validate root plugin.json first Install, permissions, sandbox, marketplace. v1 defines none of these
$schema The VS Code reference (DateApproved 2026-11-11) uses it to pick among four manifests It is not a comment. An unsupported version rejects the package. Clients must not fetch a schema while loading
Ten fields $schema, name, version, description, author, homepage, repository, license, keywords, extensions mcpServers, skills, agents, hooks. On the portable manifest those keys are ignored
A 12 Nov repo One Repo, Every IDE still generates a manifest for VS Code, Copilot CLI, Claude Code, and Cursor Adding $schema stops Copilot from reading a legacy root agents/ folder

The model only fills JSON. The host reads the manifest and starts processes. The order id A-1042 is fictional.

Why does an AI agent need a plugin manifest now?

The manifest fixes the wrapper. It does not invent another tool protocol. Agent Plugins 1.0.0 makes root plugin.json the conformance floor: a client loads and validates it before discovering components. No other file may replace, supplement, or override its core fields. When Google joined the maintainers on 6 August 2026, the same point was stated directly: skills and MCP servers already had specs. The box around them did not travel.

  • The VS Code authoring reference (DateApproved 2026-11-11) detects four manifests from path and $schema. A root plugin.json with the canonical URL uses Agent Plugins semantics. With no other format marker, the default is a Copilot plugin.json. The other paths are .claude-plugin/plugin.json and .plugin/plugin.json.
  • Cursor's plugin reference loads two formats. The open standard is root plugin.json, for skills and MCP. The Cursor format is .cursor-plugin/plugin.json. Its only required field is name, and mcpServers may be a path, an inline object, or an array. A skills path in that file replaces folder discovery. The default skills/ directory is not also scanned.
  • The note One Repo, Every IDE, posted on 12 November 2026 and updated on 15 November, records one repository backing out. The author wanted to keep a root agents/ folder. Adding the Agent Plugins $schema selected different Copilot semantics, so Copilot clients stopped reading that legacy folder. The author says the repository's own validator rejects that schema. That is a project rule, not a ban in the specification.

Opening the manifest in November is how you see which discovery rules $schema selected. For the directory layout, see the Agent Plugins layout. For which layer MCP owns, see how it splits from MCP. For a copyable plugin.json plus mcp.json, see the copyable directory.

Which ten fields may a portable plugin.json contain?

Section 5.2 closes the object. The only top-level fields are $schema, name, version, description, author, homepage, repository, license, keywords, and extensions. The first two are required. For 1.0.0, $schema must be https://agent-plugins.org/schemas/1.0.0/plugin.schema.json. Clients use that value to select validation they already support. They must not retrieve a schema while loading a plugin. An unsupported declared version rejects the package.

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "orders-plugin",
  "version": "1.0.0",
  "description": "Names the package. Order id A-1042 stays in tool arguments.",
  "license": "MIT",
  "keywords": ["orders"],
  "extensions": {
    "com.example.client": {
      "setting": true
    }
  }
}

name is 1 to 64 characters: lowercase letters, digits, hyphens, and periods, starting and ending with an alphanumeric, with no consecutive hyphens or periods. My-Plugin, -start, and has--double reject the whole package. Components are not discovered. author may contain only the strings name, email, and url. One extra field makes the manifest invalid. A non-SemVer version, an unrecognized URL, or a non-SPDX license is not, by itself, grounds to reject.

Keys under extensions are reverse-domain namespaces, and each value must be an object. A client ignores namespaces it does not implement, without validating those values. VS Code reads Copilot-specific agents, commands, rules, and hooks from com.github.copilot, not from new top-level keys. A non-object extensions field is reported and ignored. Components still load.

What happens if mcpServers is inside plugin.json?

An unknown top-level field still violates the schema. Clients must report and ignore each one, keep loading, and assign it no meaning. The draft below looks like it registers an orders server and points at a skills directory. On a portable manifest both keys do nothing.

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "orders-plugin",
  "mcpServers": {
    "orders": {
      "command": "./bin/orders"
    }
  },
  "skills": "./skills/"
}

A missing $schema, a missing or empty name, an uppercase name, or a wrong type on an allowed field rejects the plugin. No component may be discovered or executed. An extra mcpServers key follows the other rule. The plugin can still load. That key does not start a server. Skills are discovered only from the fixed skills/ directory. plugin.json cannot relocate or inline components.

Why does MCP configuration have to live in mcp.json?

The only core path is mcp.json at the plugin root. Its only top-level fields are $schema and mcpServers. An empty mcpServers object is valid. Each server needs type and must match one closed variant: stdio, streamable-http, or sse. A stdio command is one executable token. A ./ path resolves against the plugin root. The spec does not expand placeholders in command.

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
  "mcpServers": {
    "orders": {
      "type": "stdio",
      "command": "./bin/orders",
      "args": ["--order", "A-1042"]
    }
  }
}

If mcp.json is not valid JSON, targets a different Agent Plugins version than plugin.json, or breaks the top-level rules, the client must disable MCP for that plugin and continue with other components. One bad server entry skips that server only. A server that fails to start must not take the skills down with it. A-1042 in args is a fictional order id. Header values are visible package data. The spec forbids credentials in headers. For why a schema is a gate, see why a schema is a gate. For the tools/call shape, see the tools/call shape.

What does the same plugin.json name mean on four paths?

The file name can hide opposite meanings. On the portable manifest a skills key is ignored, and discovery stays at skills/. In Cursor's .cursor-plugin/plugin.json a skills path replaces automatic discovery, and an inline mcpServers value overrides default mcp.json discovery. The next sample is a Cursor manifest, not an Agent Plugins 1.0.0 root manifest.

{
  "name": "orders-plugin",
  "skills": "./skills/",
  "mcpServers": {
    "orders": {
      "command": "./bin/orders",
      "args": ["--order", "A-1042"]
    }
  }
}

Cursor's docs separate the two formats by manifest location. The rest of that reference describes the Cursor format. variables declares names and types only. Secret values are set at install or configure time, not committed. OpenAI's packaging guide puts client data under extensions.com.openai. .codex-plugin/plugin.json remains a compatibility fallback. New packages should use the closed root manifest.

Path you opened Who treats it this way in Nov 2026 Required Extra keys
Root plugin.json whose $schema is the 1.0.0 URL VS Code: Agent Plugins 1.0. Cursor: the open standard $schema and name Unknown keys are ignored. They are not servers or paths
Root plugin.json without that $schema VS Code: Copilot by default when no other marker exists That format's own fields That format's own discovery, including legacy component folders
.claude-plugin/plugin.json or .plugin/plugin.json VS Code: Claude, or legacy OpenPlugin Each manifest's own fields Not decided by the ten closed fields
.cursor-plugin/plugin.json Cursor's own format name mcpServers may be inline. A component path replaces the default folder

Which six checks belong on a manifest you just opened?

Read the path, then $schema, and only then the server you hope it will start.

  1. Confirm the path: root plugin.json, .cursor-plugin/plugin.json, .claude-plugin/plugin.json, or .plugin/plugin.json.
  2. Read $schema only on the root file. The closed list applies when the value is exactly https://agent-plugins.org/schemas/1.0.0/plugin.schema.json.
  3. Check name: lowercase, 1 to 64 characters, alphanumeric ends, no consecutive hyphens or periods.
  4. List top-level keys. Anything outside the ten names has no meaning on the portable manifest. Move mcpServers into mcp.json.
  5. Open mcp.json. Only $schema and mcpServers at the top, both schemas on the same version. Every server has type, and command stays one token.
  6. For Cursor rules, hooks, or an inline server, write .cursor-plugin/plugin.json. Do not copy those keys back into the root file.

Do not assume the two manifests merge into one field set. Generated client manifests should match their source, not drift through hand edits.

What should you inspect?

These checks run locally in the browser. The JSON is not uploaded.

  • Use Format to confirm one object. Use Schema validator against a 1.0.0 schema you already have, for required fields and types. Clients must not fetch a schema while loading, so the validator needs the schema text from you.
  • Use JSONPath for $['$schema'] and $.name, and list the top-level keys. mcpServers or skills still sitting here means the portable manifest is carrying keys it will ignore.
  • Use JSON Diff on the draft with unknown keys and the ten-field manifest. The server should remain only in mcp.json.
  • Check the name characters, and whether author grew a fourth field. Both reject the package.
  • Use redaction on the manifest and mcp.json for tokens. How keys leak from config is covered in how keys leak from config. Cursor variables declare names only.

The sample order is A-1042. Headers, env, and files in the repo do not carry credentials.

Pitfalls

  • Treating $schema as an editor comment. In VS Code it chooses Agent Plugins or default Copilot for that root plugin.json.
  • Seeing the plugin load and assuming mcpServers inside plugin.json registered a server. Unknown fields are ignored, loading continues, and that key starts nothing.
  • Using a name like My-Plugin. Upper case rejects the package, so skills/ and mcp.json are not discovered.
  • Putting a spaced command string in command. A stdio command is one token, arguments belong in args, and command is not placeholder-expanded.
  • Putting a token in mcp.json headers or in Cursor variables. Headers are visible package data. variables declares the name; the value is set at install.
  • Expecting a v1 manifest to install the plugin, grant permissions, or verify provenance. v1 is a package format. Install, distribution, permissions, and sandbox stay with each client.

FAQ

Why are plugin.json and mcp.json separate files?

The manifest names the package and selects the version. A bad server config must not take the skills down. If mcp.json is invalid or its version disagrees with plugin.json, the client disables MCP for that plugin and keeps loading other components. One bad server skips that entry only.

Do I still need plugin.json for a single MCP server?

On 6 August 2026 Google wrote the practical test: one server for one client is simpler as mcp.json alone, and one skill does not need a plugin. The manifest earns its place when components must travel together.

Why are unknown fields not a hard reject?

The design note says a closed field list catches typos, and client experiments belong under reverse-domain keys in extensions. Unknown top-level fields are still invalid, but clients report and ignore them so one client's experiment does not break the others. Ignore does not mean the old mcpServers spelling works. Missing required fields and type errors reject the package.

Is .cursor-plugin/plugin.json an Agent Plugin?

It is the second format in Cursor's docs. Only name is required. It may include rules, agents, commands, hooks, variables, and inline mcpServers. A portable package uses a separate root plugin.json limited to the ten names. The same skills key means opposite things in the two files.

What if $schema names the wrong version?

A client must not download a schema during load. An unsupported version rejects the plugin. That is a different rule from a root plugin.json that lacks the URL and therefore loads as Copilot. OpenAI still accepts a .codex-plugin/plugin.json fallback when extensions.com.openai is absent. That is another path.

Conclusion

In November 2026 an AI agent needs plugin.json because clients still choose discovery rules from the manifest path and from $schema. The portable file has two required jobs: declare 1.0.0, and give a legal name. Servers belong in mcp.json. Cursor path overrides and inline mcpServers stay in .cursor-plugin/plugin.json, or under extensions.

The model only fills JSON arguments. The host reads the manifest, checks fields, and starts processes. Identify which manifest you opened before you decide what it will start.

Further reading

Checked . Sources: Agent Plugins 1.0.0, the VS Code plugin authoring reference (DateApproved 2026-11-11), the Cursor plugin reference, and One Repo, Every IDE (12 Nov 2026).