GeoNeMo API credentials#
Teach the host to configure and verify API authorization using existing clients. This package contains no authentication client, credential store, or executable script. HTTP MCP uses a different token audience, even when it shares the GeoNeMo server hostname.
Read setup for client commands, secret references, and approved TLS trust. Read troubleshooting when verification fails and the worked example for sanitized inputs and completion evidence.
Workflow#
Establish the requested client, trusted GeoNeMo server HTTPS origin, and intended operations from user instructions, host configuration, or the
GEONEMO_SERVICES_API_ENDPOINTenvironment variable. Reuse the host’s approved CA trust; do not infer a public origin or port from an old MCP URL. Examples usehttps://geonemo.example.com; substitute the deployment’s origin.Have the host resolve an existing API credential reference or the GeoNeMo CLI’s saved login without exposing its value. Preserve valid credentials and unrelated configuration. An explicit API credential takes precedence for this request; do not silently substitute another identity if it fails. OAuth refresh belongs to the existing client.
If credentials are missing, use the existing CLI’s browser login where interactive sign-in is available. For headless use, guide the user to Console → Access to issue an API personal token, then import it through the CLI’s non-echoing prompt or the host secret store. Request only the scopes needed for the user’s intended work. The user completes browser consent or token entry; missing interaction remains pending rather than becoming a successful setup.
Verify the selected credential through the actual client’s
GET /v1/auth/me, thenGET /v1/discovery. Both must succeed before reporting API setup complete. Preserve returned identity, scopes, advertised endpoints, and capability availability. Discovery alone does not prove the requested scope or a detector’s readiness.For a request to configure both connections, complete API verification first and use the returned
endpoints.mcpas discovery for independent HTTP MCP setup. Usegeonemo-mcp-credentialswhen installed; this skill still completes API-only requests without that package. Never reuse the API token as an HTTP MCP bearer token.Report API and MCP states separately: verified, failed, pending user action, or not requested. Include endpoint, client, credential source reference, identity and scopes when returned, verification evidence, and the next required action. A failure after successful API setup leaves API verified and MCP incomplete.
Boundary#
Secrets stay in host credential stores, secure prompts, or process environment references.
Never print token values, copy them into repository files or reports, put them in URLs or command
arguments, or request them in chat. Preserve certificate verification; do not follow an
authenticated redirect to an unapproved origin. Host requests have finite timeouts. Report a
network/TLS failure separately from authentication, and do not diagnose a generic 401 as an
audience mismatch without evidence. Stop on a failed check until its cause is corrected; do not
cycle through unrelated credentials or start detection, publication, or account administration.