Clients#

Callers reach the toolkit through the typed client over REST, an MCP client, or skills.

Typed client to REST#

Typed client to the REST API Typed client to the REST API

Step

What happens

1-2

Your code creates a client with the base URL, a bearer token and a project ID, then calls an API area such as catalog search (POST /v1/catalog/search)

3

The client sends Authorization: Bearer and X-GeoNemo-Project-ID

4

The server limits the body size, authenticates the token and requires the route’s scope

5-6

It matches the route among the registered routers, validates the request model and calls the service

7-9

The service reads or writes; a retryable write carries an Idempotency-Key; a response model comes back

10-11

JSON with X-Correlation-ID and Cache-Control: no-store becomes a typed model, or an error derived from the client’s base error (ServicesClientError) on failure

Harness to MCP#

Agent harness to the MCP server Agent harness to the MCP server

Step

What happens

1-2

Connect over stdio with geonemo-mcp and a scope file, or over HTTP at /mcp with a bearer token. The server reads the scope: the tools, collections and project this caller may use

3-4

HTTP only: the toolkit verifies the token for the MCP audience (POST /v1/auth/mcp-delegate) and returns the subject, scopes and a toolkit token

5-8

A tool call such as catalog_search is refused outside the scope; otherwise the server builds a client with the caller’s token and project and sends the REST request

9-11

A typed response becomes a structured tool result, or an error with a code and a retryable flag

12-14

A skill is read as a resource: skill://geonemo-imagery-discovery/SKILL.md, supporting files at skill://{skill}/{+path}

Credentials and scopes#

Every call carries a bearer token and a project ID. Tokens are issued by core’s access service; a token’s scopes decide which routes and tools it can use, and an MCP caller is further limited by its scope file or delegated scopes. Operations run in OpenTelemetry spans.

Guides: Use the Toolkit. Reference: Python client, MCP tools.