Verify HTTP MCP with its own credential#
What this demonstrates#
Configure a supported MCP client with a host-held MCP secret reference and verify initialization and discovery. A valid API login remains independently verified if MCP setup fails.
Example input#
{
"request": "Configure my HTTP MCP connection using the existing MCP token",
"mcp_url": "https://services.example.test/mcp",
"client": "codex",
"credential_ref": "env:GEONEMO_MCP_TOKEN",
"required_scopes": ["services:read"]
}
Workflow#
Load this skill and confirm the trusted URL and actual client’s approved TLS trust.
Reuse the MCP secret reference, preserve unrelated config, and ensure the Codex process receives the variable. Configure
bearer_token_env_varwithout a literal token value.Require successful
initializeandtools/listthrough the configured client.Report only server/discovery evidence actually returned; initialization does not return an authenticated person’s identity or their complete scopes.
Example output#
{
"api": {"state": "not_requested"},
"mcp": {
"state": "verified",
"endpoint": "https://services.example.test/mcp",
"client": "codex",
"credential_ref": "env:GEONEMO_MCP_TOKEN",
"checks": ["initialize", "tools/list"],
"server_name": "geonemo-services",
"tools": ["catalog_list_collections", "catalog_get_record"]
},
"remaining_action": null
}
Human-readable result#
HTTP MCP initialization and tool discovery are verified through Codex. API authorization was not requested. Listed tools were not invoked.
Limitations#
This is synthetic evidence. Configuration inspection and public OAuth metadata do not verify MCP authentication; tool discovery does not prove permission for every listed operation. A generic 401 does not identify a token’s audience. HTTP MCP credentials differ from API credentials; the optional stdio bridge instead uses API authorization.
Reproduce#
Use an existing authorized MCP client or evaluate the corresponding scenario in
evals/scenarios.json offline. host_auth_setup and host_auth_probe are test-only host-action
fixtures, not advertised production tools. No authentication client is bundled in this package.