feat: authenticate via public-api gateway instead of OpenShift API#23
Merged
jeremyeder merged 1 commit intomainfrom Feb 11, 2026
Merged
feat: authenticate via public-api gateway instead of OpenShift API#23jeremyeder merged 1 commit intomainfrom
jeremyeder merged 1 commit intomainfrom
Conversation
Replace direct OpenShift API authentication with HTTP requests to the public-api gateway service. This simplifies the MCP server by removing the oc CLI dependency and aligns with the platform's security model where the public-api is the single entry point for all clients. Changes: - client.py: Rewrite to use httpx for HTTP requests to public-api - settings.py: Update ClusterConfig to point to public-api URL - server.py: Reduce to 7 supported tools (list, get, delete sessions) - formatters.py: Remove unused formatters - pyproject.toml: Replace aiohttp with httpx, update description The public-api provides: - GET/POST/DELETE /v1/sessions endpoints - Bearer token auth via Authorization header - Project context via X-Ambient-Project header Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ocCLI dependency entirelyChanges
client.pyhttpxfor HTTP requests to/v1/sessionsendpointssettings.pyClusterConfig.servernow points to public-api URL (e.g.,https://public-api-ambient.apps.cluster.example.com)server.pyformatters.pypyproject.tomlaiohttpwithhttpx, update description/keywordsSupported Tools
acp_list_sessions- List/filter sessionsacp_get_session- Get session by IDacp_delete_session- Delete session (with dry-run)acp_bulk_delete_sessions- Delete up to 3 sessionsacp_list_clusters- List configured clustersacp_whoami- Check auth statusacp_switch_cluster- Switch cluster contextConfiguration
Test plan
acp_list_sessionsreturns sessions from public-apiacp_delete_sessionwithdry_run=trueshows previewacp_delete_sessionactually deletes🤖 Generated with Claude Code