ON-PREM CHOREO CLOUD BOTH

What it is

The agent-manager-service (AMS) is the central Go service of Agent Manager. It offers the REST API and an MCP endpoint used by the console and the amctl command line, and it holds the business logic for agents, builds, deployments, gateways, LLM and MCP proxies, monitors and agent identities. It lives on the control plane.

AMS is the operations manager who schedules everything but never touches an aircraft.

Why it exists

People and tools need one place to manage AI agents without learning OpenChoreo, gateways and identity servers. AMS coordinates them all.

How it works

  • Public API on container port 8080 (service port 9000 in the chart), plus an internal TLS server on port 9243 for gateways.
  • Org, project, agent and environment objects live in OpenChoreo, and AMS calls OpenChoreo's API. Its own Postgres holds only Agent Manager data such as gateways, proxies, keys and monitors.
  • Request pipeline: CORS, JWT check, org check, per-route scope check, then controller, service and repository layers.
  • Background workers run inside it: monitor scheduler, AgentID reconciler, EventHub and the WebSocket manager.
  • On Choreo Cloud the same code runs inside the agent-platform shell with cloud adapters added.

Identity and access

AMS has no user table or session. Every call carries a JWT, which AMS verifies against the identity provider's keys. It reads the organization from the token (ouId), never from the URL, and each route demands an amp:<resource>:<action> scope.

Key facts

Language
Go
Public port
8080 (service 9000)
Internal port
9243 (TLS)
Namespace
wso2-amp (on-prem chart)
Database
Postgres
Side
Control plane

Talks to (19)

  • signs in with Platform ThunderID 1.0.0
    AMS validates JWT via KEY_MANAGER_JWKS_URL
    JWKS fetch HTTP
  • calls Platform ThunderID 1.0.0
    Users, groups, roles, OUs, flows
    HTTP admin API
  • calls Env ThunderID (per environment)
    Agent identities, roles, groups, MCP resource servers
    HTTP admin API :8090
  • calls OpenChoreo 1.2.0
    All org/project/component/env/build/release operations
    REST (generated client); scheme comes from OPEN_CHOREO_BASE_URL, default http
  • reads from Postgres (AMS DB)
    AMP state
    SQL (pgx/GORM) 5432
  • calls Secrets path
    Writes secrets creating SecretReference
    HTTPS OC secret-management API
  • calls amp-observer (agent-manager-observer)
    Monitor run logs only
    HTTP :9098
  • calls Argo Workflows
    Monitor evaluation runs
    OC WorkflowRun create
  • depends on API Platform Gateway runtime (APG)
    AMS is control plane of gateway (artifacts, keys, manifest)
  • calls platform-api (PAS)
    AMS reaches OpenChoreo through PAS (OPEN_CHOREO_BASE_URL is the internal gateway plus PAS base path)
    HTTPS via internal API Platform gateway
  • reads from WSO2 Policy Hub (external)
    Console guardrail catalog
    HTTPS catalog URL
  • calls ThunderID management API
    Roles, agents, resource servers
    HTTPS admin REST
  • calls openchoreo-api
    All project, component, build, deploy operations
    REST (scheme comes from OPEN_CHOREO_BASE_URL, default http)
  • calls Component to ReleaseBinding chain
    Deploy and promote
    OC REST generate-release then ReleaseBinding
  • calls AM build ClusterWorkflows
    TriggerBuild
    OC REST WorkflowRun
  • calls EventHub (Postgres-backed)
    GatewayEventsService publishes gateway events into the EventHub tables
    in-process Go call, then SQL insert in one transaction
  • calls Upstream MCP server
    Agent Manager reads the server info and tool list when you create an MCP proxy
    HTTP MCP initialize and tools/list
  • calls OC kgateway (gateway-default)
    Agent Manager reads an A2A agent's card from the agent's external URL, which OpenChoreo derives from the route host and the port of the data plane ingress gateway
    HTTP GET /.well-known/agent-card.json on the agent's external URL
  • reads from OpenBao + External Secrets
    Agent Manager reads a git credential from the workflow plane OpenBao when it lists the branches or commits of a private repository
    HTTP, OpenBao KV v2 read (vault client)

Used by (17)

Inside and around

Part of: Monitor scheduler

Contains: AMS internal server :9243, AgentID reconciler, Agent token manager (JWT signer, JWKS), AMS MCP server (/mcp), RBAC (amp:* scopes)