🤖 feat: add MCP server support#35
Conversation
|
@codex review Please review for:
|
|
@codex review Pushed a small follow-up to fix docs-quality (cspell) for health endpoints. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 039ab0b2d6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review Update: removed |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa6e7b9eb8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review Addressed the P1 feedback on |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f35420c40b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review Applied fixes for:
Resolved the previous review threads. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d88c85687e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review Addressed feedback:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 252a3781b5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review Follow-up: adjusted |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Summary
Add an in-cluster MCP (Model Context Protocol) server mode to
coder-k8sso remote clients can inspect operator-managed resources over HTTP (ideal forkubectl port-forward).New app mode:
--app=mcp-http: MCP over Streamable HTTP on:8090Background
The operator is expected to run in-cluster, and clients will connect remotely over HTTP (for example via
kubectl port-forward svc/coder-k8s -n coder-system 8090:8090).Implementation
internal/app/mcpappusinggithub.com/modelcontextprotocol/go-sdk/mcp/mcp/healthz,/readyzget_eventsrequires a namespace and is paginated (default limit 200, max 1000, returns acontinuetoken).get_pod_logsapplies safe defaults/bounds and marks output with(truncated)when the byte cap is hit.app_dispatch.gosupportsmcp-httpand is covered by dispatch tests.deploy/mcp-deployment.yaml(Deployment:coder-k8s-mcp)deploy/mcp-service.yaml(Service:coder-k8s, port 8090)deploy/rbac.yaml(addscoder-k8s-mcpSA + read-only ClusterRole)docs/how-to/mcp-server.mdMCP tools (MVP)
list_control_planesget_control_plane_statuslist_workspaceslist_templatesget_eventsget_pod_logscheck_healthValidation
make verify-vendormake buildmake testmake lintRisks
Generated with
mux• Model:openai:gpt-5.2• Thinking:xhigh• Cost:$3.92https://mux.md/1B5WD#6zoglyfH45bqAQ