Capability Broker (Studio Service Directory)
January 9, 2026 ยท View on GitHub
๐ ARCHITECTURAL ANCHOR
This project is part of the Berlin AI Automation Studio. It is governed by the global rules in berlin-ai-infra.
Setup for new laptops:
- Clone this repo.
- Run
./bootstrap-infra.shto link to the global Master Brain.
Capability Broker (Studio Service Directory)
Central "Live Phonebook" for the Berlin AI Automation Studio. Handles dynamic service registration and skills-aware routing.
๐ฏ What This Does
The Capability Broker is the heart of the Studio's service discovery. It allows:
- Service Registration: Microservices can self-submit their metadata, URLs, and pricing.
- Agent Discovery: Natural language and tag-based search for agents to find and consume each other's APIs.
- Skills-Aware Routing: (Planned) Dynamic routing of tasks based on agent performance and trust scores.
๐ก API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health | Health check |
| GET | /api/openapi.json | OpenAPI 3.0 specification |
| GET | /api/docs | Swagger UI documentation |
| POST | /api/registry/register | Register or update a service listing |
| GET | /api/registry/search | Search for services by query or tags |
๐๏ธ Architecture
src/
โโโ domain/ # ServiceListing entity, ICapabilityRepository port
โโโ application/ # RegisterCapability, FindAgents use cases
โโโ infrastructure/ # PostgresCapabilityRepository, Prisma client
โโโ app/ # Next.js App Router (API and Dashboard)
๐ Quick Start
# Install dependencies
npm install
# Apply database schema
npx prisma db push
# Start development server
npm run dev
๐งช Testing
# Unit & Integration tests
npm run test
# acceptance/E2E tests
npm run test:e2e
๐ Dependencies
| Service | Purpose | Production URL |
|---|---|---|
| PostgreSQL | Persistent storage | Managed on Railway/Tembo |
๐ Status
- Deployment: Railway
- Production URL:
https://agent-capability-broker-production.up.railway.app - Catalog Entry: Microservices_Catalog.md
- OpenAPI: โ Agent-Ready
๐ License
MIT