Clients#
Callers reach the toolkit through the typed client over REST, an MCP client, or skills.
Typed client to REST#
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 ( |
3 |
The client sends |
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 |
10-11 |
JSON with |
Harness to MCP#
Step |
What happens |
|---|---|
1-2 |
Connect over stdio with |
3-4 |
HTTP only: the toolkit verifies the token for the MCP audience ( |
5-8 |
A tool call such as |
9-11 |
A typed response becomes a structured tool result, or an error with a code and a |
12-14 |
A skill is read as a resource: |
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.