@comforge/mcp 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/host.d.ts CHANGED
@@ -112,6 +112,11 @@ export interface RemoteGovernanceHost {
112
112
  authorize(request: RemoteAuthorizationRequest): RemoteAuthorizationDecision | Promise<RemoteAuthorizationDecision>;
113
113
  /** The writer's correlation-marker namespace; default the configuration's `security.markerNamespace`. */
114
114
  markerNamespace?: string;
115
+ /**
116
+ * The login the credential for `command` acts as (0.4.1), or undefined to read it from GitHub.
117
+ * Required for a GitHub App installation token, which cannot read `GET /user`.
118
+ */
119
+ identity?(command: RemoteGovernanceCommand): string | undefined;
115
120
  }
116
121
  export interface RemoteHost {
117
122
  trustedConfig(binding: RemoteRepositoryBinding): TrustedConfigSnapshot | Promise<TrustedConfigSnapshot>;
package/dist/tools.d.ts CHANGED
@@ -17,7 +17,7 @@ export declare const SERVER_NAME = "comforge-mcp";
17
17
  * Reported as `serverInfo.version`. A literal on purpose: a bundler cannot resolve a runtime
18
18
  * read of package.json. test/version.test.ts fails when it differs from package.json.
19
19
  */
20
- export declare const SERVER_VERSION = "0.4.0";
20
+ export declare const SERVER_VERSION = "0.5.0";
21
21
  export interface CallContext {
22
22
  principal: Principal;
23
23
  binding: RepositoryBinding | null;
package/dist/tools.js CHANGED
@@ -19,7 +19,7 @@ export const SERVER_NAME = "comforge-mcp";
19
19
  * Reported as `serverInfo.version`. A literal on purpose: a bundler cannot resolve a runtime
20
20
  * read of package.json. test/version.test.ts fails when it differs from package.json.
21
21
  */
22
- export const SERVER_VERSION = "0.4.0";
22
+ export const SERVER_VERSION = "0.5.0";
23
23
  /** The host's credential provider, wrapped so every value it hands out is redacted later. */
24
24
  function credentialsFor(c) {
25
25
  const provider = c.binding ? c.host.credentials?.(c.binding, c.principal) : undefined;
@@ -194,6 +194,7 @@ async function remoteGovernance(c, tool) {
194
194
  ...(host.fetchImpl ? { fetchImpl: host.fetchImpl } : {}),
195
195
  signal: c.signal,
196
196
  ...(governance.markerNamespace ? { markerNamespace: governance.markerNamespace } : {}),
197
+ ...((identity) => (identity !== undefined ? { identity } : {}))(governance.identity?.(command)),
197
198
  });
198
199
  }
199
200
  /** A checkout-free publication takes no grant: the host authorizes it (owner-grant repositories refuse). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comforge/mcp",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "comforge-mcp: the governed agent lifecycle of @comforge/cli as a Model Context Protocol server. Intent-oriented tools over the published lifecycle services, capability profiles, a repository allowlist, server-owned credentials, stdio and Streamable HTTP. Remote execution is off unless the host supplies isolation. Never merges, deploys, approves or closes.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "dependencies": {
32
- "@comforge/cli": "0.6.0",
32
+ "@comforge/cli": "0.7.0",
33
33
  "@comforge/core": "0.2.0",
34
34
  "@comforge/github": "0.6.0",
35
35
  "@comforge/ledger": "0.1.0",