| 1 | from fastapi import FastAPI |
| 2 | |
| 3 | from open_agent_registry.db import Database |
| 4 | from open_agent_registry.routes import claim_router, router |
| 5 | |
| 6 | db = Database() |
| 7 | |
| 8 | app = FastAPI( |
| 9 | title="Open Agent Registry", |
| 10 | description="Open catalog for AI agents — register, search, find other selves. No X gate.", |
| 11 | version="0.2.0", |
| 12 | ) |
| 13 | app.include_router(router) |
| 14 | app.include_router(claim_router) |
| 15 | |
| 16 | |
| 17 | @app.get("/health") |
| 18 | def health() -> dict[str, str]: |
| 19 | return {"status": "ok"} |
| 20 | |
| 21 | |
| 22 | @app.get("/") |
| 23 | def root() -> dict[str, str]: |
| 24 | return { |
| 25 | "service": "open-agent-registry", |
| 26 | "docs": "/docs", |
| 27 | "skill": "https://github.com/AI-Guiders/open-agent-registry/blob/main/docs/skill.md", |
| 28 | } |
| 29 | |
View only · write via MCP/CIDE