Verify an existing API login#
What this demonstrates#
Reuse a host-held API credential, verify identity and discovery, and hand off only the advertised MCP URL for separate MCP authorization. No token value enters the example.
Example input#
{
"request": "Configure API access using my saved login",
"api_origin": "https://services.example.test",
"client": "geonemo",
"credential_ref": "host:api-saved-login",
"required_scopes": ["services:read"]
}
Workflow#
Load this skill and use the host’s approved TLS trust.
Reuse the saved login through the official client without printing the credential file.
Verify
GET /v1/auth/me, thenGET /v1/discovery, through that selected credential source.Report sanitized evidence. MCP remains not requested; its URL does not make API authorization valid for HTTP MCP.
Example output#
{
"api": {
"state": "verified",
"endpoint": "https://services.example.test",
"client": "geonemo",
"credential_ref": "host:api-saved-login",
"identity": {"name": "Example User"},
"scopes": ["services:read"],
"checks": ["/v1/auth/me", "/v1/discovery"],
"capabilities": [{"name": "media", "available": true}],
"advertised_mcp": "https://services.example.test/mcp"
},
"mcp": {"state": "not_requested"},
"remaining_action": null
}
Human-readable result#
API access is verified for Example User with services:read. Media is advertised as available.
MCP has not been configured or authenticated.
Limitations#
This is synthetic evidence. Identity/discovery do not prove detector readiness, publication permission, or MCP authorization. If discovery fails after identity succeeds, setup is incomplete. Native browser login and headless import require the user’s sign-in or secure token entry.
Reproduce#
Use the host’s existing GeoNeMo client against an authorized deployment, or evaluate the saved-login
scenario in this package’s evals/scenarios.json offline. host_auth_setup and host_auth_probe
in those traces are test-only representations of host actions, not production MCP tools.