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:

  1. Clone this repo.
  2. Run ./bootstrap-infra.sh to 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

MethodEndpointDescription
GET/api/healthHealth check
GET/api/openapi.jsonOpenAPI 3.0 specification
GET/api/docsSwagger UI documentation
POST/api/registry/registerRegister or update a service listing
GET/api/registry/searchSearch 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

ServicePurposeProduction URL
PostgreSQLPersistent storageManaged 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