Skip to content

Prepare the optional OpenAI plugin

The optional package distributes the four canonical xObject workflows with a connection to one installation. The live MCP server remains the authority for data, module availability, permissions and journals.

Terminal window
npm run plugin:prepare -- --url https://your-installation.example/mcp --output .local/my-xobject-plugin
npm run test:packaging

Use the actual installation endpoint. HTTP is allowed only for loopback development. The output directory must be new. The package includes root plugin.json and mcp.json, canonical skills/*/SKILL.md, OpenAI dependency descriptors, license/notice and source hashes. Credentials never belong in these files.

Both manifests have been validated against the official Agent Plugins 1.0.0 schemas. The portable MCP configuration declares Streamable HTTP and relies on standard OAuth discovery. It omits vendor authentication extensions because the currently published portable MCP JSON Schema rejects those additional server properties; the OpenAI authoring guide currently describes them. Keep the portable format valid and test host support before distributing an installation-specific package.

Review the OpenAI plugin packaging guide for the actual client surface. Import/installation, registered server mapping and marketplace availability depend on the client/workspace. This generator installs nothing and modifies no user or project agent configuration.

In an available OpenAI client, connect to the installation, authorize the current user and complete the PRD interoperability scenarios. Check workflow discovery/loading as well as reads, writes, conflicts, lifecycle confirmation and revocation. Record client/model/protocol and actual results.

Static packaged skills are instructions, not capabilities. The server’s Skills extension filters live discovery and reads by current module/object/role access; the optional package also directs each workflow to check those conditions. Installing a skill grants no data access.

Local packaging and SDK/OAuth tests are complete. The live Codex exercise additionally installed the portable package, loaded its Foundation/Projects instruction files and used them with MCP/OAuth data access. Installed files matched the canonical source hashes. That exercise used the host’s ordinary file-reading mechanism for packaged instructions; it did not activate the native MCP Skills extension. The temporary plugin/marketplace and test authorization were removed after verification. Public-directory submission additionally requires a reachable reviewed HTTPS service and its required publisher/privacy information; no service or plugin has been published.