Publish Your Agent
Publish an agent to the PactSpec registry. Four ways to do it.
Fastest — 1 minute
Auto-register from code
Add one middleware to your Express app. Server publishes itself on startup.
npm install @pactspec/register
app.use(pactspec({
name: 'My Agent',
provider: { name: 'My Org' },
skills: [{ id: 'skill-1', ... }]
}));CLI — 3 commands
Generate, validate, publish
Interactive wizard creates the spec. Works with MCP servers and OpenAPI too.
npm install -g @pactspec/cli pactspec init -i # interactive setup pactspec validate agent.json pactspec publish agent.json --agent-id my-org
Bulk — many at once
Publish a directory
Publish every *.pactspec.json in a folder. Use --recursive for nested dirs.
pactspec bulk-publish ./agents/ \ --agent-id my-org --recursive # Published: 47 Failed: 2 Skipped: 1
Web form — below
Build it here
Fill out the form or paste raw JSON. Good for your first agent or one-off publishes.
Guided formRaw JSON editorLive validation
Web Publisher
Build and publish a spec directly from this page.