Core#
core/ is the serving code shared by knowledge, tools and skills.
Component |
Code |
What it does |
|---|---|---|
REST app |
|
The |
Access + identity |
|
OIDC sign-in, API tokens, consent, workload credentials and scopes. Every API role authenticates against the same access records in PostgreSQL |
MCP server |
|
Scoped MCP tools and skill resources over stdio and streamable HTTP. It calls the REST API like any client. Runs as |
Part registry |
|
Where parts add routers, settings, runtime services, CLI groups and checks. See Parts |
Event feeds |
|
Read-only, cursor-based feeds of catalog and GKB changes, kept for seven days. Nothing is claimed or acknowledged |
Health + status |
|
Liveness, readiness, per-service status, incidents and history. Runs as |
Idempotency + spans |
|
Durable receipts for retried writes; OpenTelemetry spans to any OTLP collector |
Admin CLI |
|
|
Access and scopes#
A caller sees only what its scope grants. Reads need services:read; a change needs the
scope its route names (for example gkb:publish, gpu:manage, collections:manage), and
parts name their own. A write that may be retried carries an Idempotency-Key.
API roles#
One process serves one role, chosen with geonemo-services api --role or
GEONEMO_API_ROLE.
Role |
Serves |
|---|---|
|
Every role in one process (default) |
|
The toolkit |
|
The agent service routers |
|
The monitoring routers |
The toolkit role forwards the agent service’s and monitoring’s paths to their own processes, so clients keep one address.
A request#
Step |
What happens |
|---|---|
1 |
The request carries |
2 |
Middleware sets a correlation ID, checks the project ID, limits the body and applies CORS |
3-4 |
Access authenticates a bearer token for the API audience, or a console session, and returns the principal and its scopes |
5 |
A workload credential is admitted by the issuing orchestration and checked against its tool grants |
6-7 |
The route’s scope is required; the request goes to the matching router, or to another role’s process |
8-9 |
The handler validates the body and calls the service. A repeated |
10 |
Operation spans leave through OpenTelemetry |
11 |
The response carries |