Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(host-context-controller): correct stale oauth-projection comments (R4-L6)

Diego Zacariasae892e6ec429
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.json
index dbbd87fd5..f02d8db39 100644
--- a/host-context-controller/package-lock.json
+++ b/host-context-controller/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-host-context-controller",
- "version": "0.1.249",
+ "version": "0.1.250",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-host-context-controller",
- "version": "0.1.249",
+ "version": "0.1.250",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@clerum/image-policy": "file:../packages/image-policy",
diff --git a/host-context-controller/package.json b/host-context-controller/package.json
index d3d738da8..189a692dd 100644
--- a/host-context-controller/package.json
+++ b/host-context-controller/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-host-context-controller",
- "version": "0.1.249",
+ "version": "0.1.250",
"description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API",
"main": "dist/main.js",
"engines": {
diff --git a/host-context-controller/src/k8sClient.ts b/host-context-controller/src/k8sClient.ts
index 291019704..f9dc2d8e8 100644
--- a/host-context-controller/src/k8sClient.ts
+++ b/host-context-controller/src/k8sClient.ts
@@ -2629,8 +2629,10 @@ export class McpServerWatcher implements McpServerProvider {
contextRef: server.spec.contextRef,
transport,
auth: server.spec.auth,
- // Project the OAuth block (grantScope etc.) verbatim so mcp-host can
- // dispatch the per-connection partition. Token is NEVER mounted (O4).
+ // Discovery metadata only: the OAuth block is projected verbatim, but
+ // mcp-host does NOT read it — per-connection partition dispatch is driven
+ // by `authKind` (derived separately from the AuthorityMcpServer store),
+ // so this field currently has no consumer. Token is NEVER mounted (O4).
oauth: server.spec.oauth,
enabled: server.spec.enabled !== false,
status: this.reconciler.getStatus(server),
diff --git a/host-context-controller/src/types.ts b/host-context-controller/src/types.ts
index 1cc3e2065..c14322ba8 100644
--- a/host-context-controller/src/types.ts
+++ b/host-context-controller/src/types.ts
@@ -627,9 +627,10 @@ export interface McpServerInfo {
contextRef: string
transport: McpServerTransport
auth?: McpServerAuth
- // OAuth broker config; present iff auth.type === 'oauth'. mcp-host reads
- // `grantScope` to dispatch the per-connection partition. HCC does NOT mount
- // the resolved token as env (O4 stays intact — this is discovery metadata).
+ // OAuth broker config; present iff auth.type === 'oauth'. Discovery metadata
+ // only — mcp-host dispatches the per-connection partition from `authKind`
+ // (derived separately), not from this field, which currently has no consumer.
+ // HCC does NOT mount the resolved token as env (O4 stays intact).
oauth?: McpServerOAuth
enabled: boolean
status: McpServerStatus