GeoNeMo API credential setup#
Resolve the endpoint and trust#
Use the GeoNeMo server HTTPS origin from the user, trusted host configuration, or the
GEONEMO_SERVICES_API_ENDPOINT environment variable (read by the stdio MCP bridge). Examples use
https://geonemo.example.com; substitute the deployment’s origin. Paths below are appended to the
origin without changing it.
Credential values never belong in an endpoint’s userinfo, query, or fragment.
Keep TLS verification enabled. Python/GeoNeMo CLI clients can use SSL_CERT_FILE referencing a
host-approved PEM bundle when the certificate chain is absent from their default trust. The
bundle must also contain any other roots needed by browser-login HTTP requests. Use the actual
client’s supported trust mechanism; Python trust configuration does not establish trust for an
editor’s native MCP client. Missing CA trust is a TLS failure, not an invalid credential. Do not
create or install a new CA or replace global trust as part of routine credential setup.
Python and host HTTP usage#
GEONEMO_SERVICES_TOKEN is an explicit host environment convention. The Python client does not
automatically read that variable; pass it through token=. Without an explicit token, it reuses
the CLI cache:
import os
from geonemo.client import GeoNeMoClient
with GeoNeMoClient(
"https://geonemo.example.com",
token=os.environ.get("GEONEMO_SERVICES_TOKEN"),
) as client:
identity = client.transport.request_json(
"GET", "/v1/auth/me", dict, operation="identity"
)
discovery = client.transport.request_json(
"GET", "/v1/discovery", dict, operation="capability discovery"
)
For a generic HTTP client, have the host supply Authorization: Bearer … from its API credential
reference on GET /v1/auth/me and GET /v1/discovery. Keep headers out of logs and use finite
timeouts without redirects to another origin. The snippet above illustrates host-side use;
this skill bundles no network code. Output only the sanitized identity, scopes, capabilities,
and discovered MCP endpoint. Do not dump credential files or response headers containing secrets.
Scopes and completion#
services:read supports reads and discovery; tools:execute is additionally needed for detector
execution; gkb:publish, agents:control, and connections:manage grant separate operations.
Setup requests do not imply a need for all scopes. Report missing operation-specific scopes
without testing a destructive or costly operation.
API completion requires both successful identity and discovery checks through the selected credential source. If configuring both connections, pass only the trusted advertised MCP URL to independent MCP setup and select an MCP credential there. Report pending browser consent, missing token entry, or unavailable client capabilities explicitly.