Skip to main content

Declarative agent registry — catalog, discover, and diff agent capabilities across environments

Project description

Agent Catalog

CI PyPI Python License

A registry for AI agents. Track every agent you own — what it does, what tools it uses, what model it runs, where it's deployed. YAML manifests stored on disk. No database. Git-ops friendly.

Think npm for agents. One tool to list, search, diff, and invoke them all.

pip install agent-catalog
agent-catalog register ./my-agent.yaml
agent-catalog list

Why

You have agents scattered across repos, environments, and projects. Prod vs staging drift goes unnoticed. A dependency changes and nothing tells you. You grep through directories to find which agent has the capability you need.

Agent Catalog fixes that. One directory is the source of truth. Every command queries it.

Features

  • Registry. Register agents from YAML manifests. List, search, get details. Filter by environment, capability, tool, surface.
  • Diff. Compare manifests across environments (--left-env staging --right-env production). Catch drift before it hits prod.
  • Consistency. agent-catalog doctor finds orphaned files and missing manifests.
  • Security audit. Flags MCP endpoints without auth, write capabilities without confirmation gates, idempotent tools that should not be.
  • MCP server. Expose the catalog as MCP tools — any MCP client can discover agents and invoke their capabilities.
  • HTTP dashboard. agent-catalog serve starts a web UI on :8420.
  • Python SDK. from agent_catalog.client import CatalogClient — sync or async.
  • Decorator API. Define agents inline with @agent, @capability, @tool. Manifests auto-generated from Python classes.
  • Runtime loader. Load an agent class from the catalog and invoke a capability from the command line or API.

Quick start

pip install agent-catalog

# Register an agent
agent-catalog register ./examples/agentic-inbox.yaml

# See everything you have
agent-catalog list

# Get details
agent-catalog get agentic-inbox

# Search
agent-catalog search --capability send_email

# Validate a manifest without registering
agent-catalog validate ./my-agent.yaml

Walkthrough: managing agents across environments

# Register your staging agent
agent-catalog register ./staging/agent.yaml --env staging

# Later, register production
agent-catalog register ./prod/agent.yaml

# See the drift
agent-catalog diff agentic-inbox --left-env staging --right-env production

# Validate your changes
agent-catalog validate ./prod/agent.yaml

# Check everything is consistent
agent-catalog doctor

Walkthrough: exposing agents via MCP

# Start the MCP server
agent-catalog serve --mcp

# Any MCP client can now call:
# - catalog_list_agents
# - catalog_get_agent
# - catalog_search
# - catalog_invoke

Walkthrough: Python SDK

from agent_catalog.client import CatalogClient

client = CatalogClient()

# List all production agents
for agent in client.agents.list(env="production"):
    print(agent.slug, agent.capability_ids())

# Async
from agent_catalog.client import AsyncCatalogClient
client = AsyncCatalogClient()
agents = await client.agents.list()

Walkthrough: decorator API

from agent_catalog import agent, capability, tool, build_manifest

@agent(name="My Agent", version="1.0.0", environment="production")
class MyAgent:
    @capability(id="greet", description="Greets the user")
    @tool(name="greet", description="Say hello")
    def greet(self, name: str) -> str:
        return f"Hello, {name}!"

manifest = build_manifest(MyAgent)

Commands

Command Action
register <path> Register agent from YAML
list [--env] [--output json] List agents
get <slug> [--output json] Show agent details
search [--capability] [--tool] [--surface] [--env] Find agents
diff <slug> [--right] [--slug2] [--right-env] Compare manifests
validate <path> Validate YAML
unregister <slug> Remove agent
update <slug> <path> Update manifest
sync <dir> [--pattern] Bulk register YAML files
scan <dir> Discover @agent-decorated Python classes
inspect <file> Show manifest from Python file
export-contract <slug> Export eval contract
security-audit [--format json] Security audit
graph [--format json] Dependency graph
serve [--port] [--mcp] HTTP dashboard or MCP server
run <slug> <capability> Invoke a capability
doctor Consistency check

Storage

Manifests are YAML files in ~/.config/agent-catalog/agents/. index.yaml maps slugs to filenames. Set AGENT_CATALOG_DIR to point at a git repo — changes show up in git diff.

~/.config/agent-catalog/agents/
├── index.yaml            # slug → filename mapping
├── agentic-inbox.yaml    # agent manifests
├── nexusgate.yaml
└── trading-agent.yaml

Production features

  • Atomic writes. Every write goes to a temp file then os.replace() — no partial writes on crash.
  • Slug validation. Rejects path traversal characters (/, \, .., null).
  • Index cache. Repeated index() calls within one invocation skip re-parsing.
  • Config validation. Warns on type errors and unknown keys in config.yaml.
  • Consistency check. doctor command finds orphaned files and missing manifests.
  • XSS-safe dashboard. All agent values HTML-escaped.
  • CORS headers. JSON API supports cross-origin requests.
  • Graceful shutdown. SIGINT/SIGTERM signal handlers on HTTP server.
  • MCP token budget. Tool responses hard-truncated to 1500 chars.

Contributing

See CONTRIBUTING.md.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_catalog_new-0.2.0.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_catalog_new-0.2.0-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_catalog_new-0.2.0.tar.gz.

File metadata

  • Download URL: agent_catalog_new-0.2.0.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for agent_catalog_new-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9c077fe605a57ed38e6b4989f8cb9f4292a695dccd0d8c0b8f1fd55ac90f4d9f
MD5 46ed774cbfd524e85785ee73395f6112
BLAKE2b-256 40489a1196bed97f92c15cadb2696a31d54b020e8c5ea57c3ccd6198fcd73d2e

See more details on using hashes here.

File details

Details for the file agent_catalog_new-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_catalog_new-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4437fd65ad5121abc1a5ab736918971b223f65aed47e6e72e5e6e93b4850cfd
MD5 e5ee0fbc1bfae5ba8c0c6d853bfad093
BLAKE2b-256 3d4459df75e23b119dc74484a4510dabf2a9991f39a92763b146a55f92459114

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page