@stigmer/protos 0.0.73 → 0.0.75

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.
@@ -162,7 +162,8 @@ export type McpServerUsage = Message<"ai.stigmer.agentic.agent.v1.McpServerUsage
162
162
  enabledTools: string[];
163
163
  /**
164
164
  * Override approval requirements for specific tools.
165
- * Takes precedence over McpServer.default_tool_approvals.
165
+ * Takes precedence over McpServerSpec.pinned_tool_approvals and
166
+ * McpServerStatus.tool_approvals.
166
167
  *
167
168
  * @generated from field: repeated ai.stigmer.agentic.agent.v1.ToolApprovalOverride tool_approval_overrides = 3;
168
169
  */
@@ -211,14 +212,15 @@ export declare const McpAccessSchema: GenMessage<McpAccess>;
211
212
  * Set requires_approval to true to require approval even when the McpServer
212
213
  * has no default, or to false to skip approval even when the McpServer
213
214
  * requires it. These overrides take precedence over
214
- * McpServer.default_tool_approvals but can be bypassed at execution time
215
- * by AgentExecution.auto_approve_all.
215
+ * McpServerSpec.pinned_tool_approvals and McpServerStatus.tool_approvals,
216
+ * but can be bypassed at execution time by AgentExecution.auto_approve_all.
216
217
  *
217
218
  * @internal
218
219
  * Policy chain (lowest to highest priority):
219
- * 1. McpServer.default_tool_approvalsplatform/org defaults
220
- * 2. Agent.McpServerUsage.tool_approval_overridesper-agent (this message)
221
- * 3. AgentExecution.auto_approve_allruntime bypass
220
+ * 1. McpServerStatus.tool_approvalssystem-generated defaults
221
+ * 2. McpServerSpec.pinned_tool_approvalsmanual overrides
222
+ * 3. Agent.McpServerUsage.tool_approval_overridesper-agent (this message)
223
+ * 4. AgentExecution.auto_approve_all — runtime bypass
222
224
  *
223
225
  * Invalid tool names are silently ignored (no approval applied).
224
226
  * This allows forward-compatibility when MCP servers add/remove tools.
@@ -1 +1 @@
1
- {"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,mHAA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E,OAAO,EAAE,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,iDAAiD,EAAE,MAAM,+CAA+C,CAAC;AAElH,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAY,aAAa,CACzE,QAAQ,CAAC,k1DAAk1D,EAAE,CAAC,2CAA2C,EAAE,iDAAiD,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAiErgE;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,aAAa,CACjE,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;AA8DxD;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;AAgDxD;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;AA+BxD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,aAAa,CACjE,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;AAiDxD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC"}
@@ -124,9 +124,10 @@ export type ToolCall = Message<"ai.stigmer.agentic.agentexecution.v1.ToolCall">
124
124
  /**
125
125
  * True if this tool requires approval before execution.
126
126
  * Determined at runtime by merging:
127
- * 1. McpServer.default_tool_approvals (platform/org defaults)
128
- * 2. McpServerUsage.tool_approval_overrides (agent-specific)
129
- * 3. AgentExecutionSpec.auto_approve_all (runtime bypass)
127
+ * 1. McpServerStatus.tool_approvals (system-generated defaults)
128
+ * 2. McpServerSpec.pinned_tool_approvals (manual overrides)
129
+ * 3. McpServerUsage.tool_approval_overrides (agent-specific)
130
+ * 4. AgentExecutionSpec.auto_approve_all (runtime bypass)
130
131
  *
131
132
  * When true and status == TOOL_CALL_WAITING_APPROVAL, the tool is paused
132
133
  * awaiting user decision via SubmitApproval RPC.
@@ -1 +1 @@
1
- {"version":3,"file":"message_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/message_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,wIAAwI;AACxI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,+CAA+C,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAAY,aAAa,CACrF,QAAQ,CAAC,04CAA04C,EAAE,CAAC,8CAA8C,EAAE,+CAA+C,EAAE,0BAA0B,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAiEnjD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,iDAAiD,EAAE,CAAC,CAAC,CAAC;AAiMpE;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,iDAAiD,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"message_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/message_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,wIAAwI;AACxI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,+CAA+C,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAAY,aAAa,CACrF,QAAQ,CAAC,04CAA04C,EAAE,CAAC,8CAA8C,EAAE,+CAA+C,EAAE,0BAA0B,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAiEnjD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,iDAAiD,EAAE,CAAC,CAAC,CAAC;AAkMpE;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,iDAAiD,EAAE,CAAC,CAAC,CAAC"}
@@ -138,7 +138,7 @@ export type AgentExecutionSpec = Message<"ai.stigmer.agentic.agentexecution.v1.A
138
138
  * When true, tools that would normally require approval are automatically
139
139
  * approved without user intervention. This is the highest-priority override
140
140
  * in the approval policy chain:
141
- * McpServer.default_tool_approvals → Agent.tool_approval_overrides → auto_approve_all
141
+ * McpServerStatus.tool_approvalsMcpServerSpec.pinned_tool_approvals → Agent.tool_approval_overrides → auto_approve_all
142
142
  *
143
143
  * Use cases:
144
144
  * - Automated CI/CD pipelines where human approval isn't practical
@@ -113,54 +113,34 @@ export declare const McpServerCommandController: {
113
113
  readonly kind: any;
114
114
  };
115
115
  /**
116
- * Update the discovered capabilities (tools and resource templates) for an MCP server.
117
- *
118
- * Only modifies status.discovered_capabilities, leaving spec, validation
119
- * state, and other status fields untouched.
120
- *
121
- * @internal
122
- * Typical flow:
123
- * 1. CLI calls getByReference(org/slug) to fetch the McpServer and its ID
124
- * 2. CLI connects to the MCP server locally and queries tools/resources
125
- * 3. CLI calls this RPC with the ID and discovered capabilities
126
- *
127
- * Authorization: Requires can_edit permission on the mcp_server resource.
128
- *
129
- * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.updateDiscoveredCapabilities
130
- */
131
- readonly updateDiscoveredCapabilities: {
132
- readonly name: "updateDiscoveredCapabilities";
133
- readonly I: any;
134
- readonly O: any;
135
- readonly kind: any;
136
- };
137
- /**
138
- * Discover the capabilities of an MCP server by connecting to it.
116
+ * Connect to an MCP server: discover its tools and classify approval policies.
139
117
  *
140
118
  * Connects to the MCP server, enumerates tools and resource templates,
141
- * and stores the result. Blocks until discovery completes (up to ~30 seconds)
142
- * and returns the updated McpServer with populated
143
- * status.discovered_capabilities.
119
+ * classifies tool approval policies via a lightweight LLM, and stores the
120
+ * results in status.discovered_capabilities and status.tool_approvals.
121
+ * Blocks until completion (up to ~30 seconds) and returns the updated McpServer.
144
122
  *
145
123
  * @internal
146
- * Typical flow:
147
- * 1. Web console ensures required credentials are saved in the user's personal environment
148
- * 2. Web console calls discoverCapabilities with the MCP server ID
149
- * 3. Backend resolves env vars from the user's personal environment
150
- * 4. Backend starts a Temporal workflow; agent-runner connects to the MCP server
151
- * 5. Discovered tools and resource templates are stored and returned
124
+ * Typical flows:
125
+ * - Web console: user clicks Connect, backend resolves env vars from the
126
+ * user's personal environment, starts a Temporal workflow on the agent-runner.
127
+ * - CLI: `stigmer discover mcp-server <name>` calls connect with runtime_env
128
+ * populated from local env vars, delegating discovery to the backend.
129
+ * - Graphton backfill: agent-runner calls connect on first execution when
130
+ * status.discovered_capabilities is empty, passing runtime_env from the
131
+ * execution context.
152
132
  *
153
133
  * Errors:
154
134
  * - FAILED_PRECONDITION: Required credentials missing from personal environment
155
135
  * - DEADLINE_EXCEEDED: Discovery did not complete within the timeout
156
136
  * - NOT_FOUND: MCP server does not exist
157
137
  *
158
- * Authorization: Requires can_edit permission on the mcp_server resource.
138
+ * Authorization: Requires can_connect permission on the mcp_server resource.
159
139
  *
160
- * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.discoverCapabilities
140
+ * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.connect
161
141
  */
162
- readonly discoverCapabilities: {
163
- readonly name: "discoverCapabilities";
142
+ readonly connect: {
143
+ readonly name: "connect";
164
144
  readonly I: any;
165
145
  readonly O: any;
166
146
  readonly kind: any;
@@ -118,55 +118,35 @@ export const McpServerCommandController = {
118
118
  kind: MethodKind.Unary,
119
119
  },
120
120
  /**
121
- * Update the discovered capabilities (tools and resource templates) for an MCP server.
122
- *
123
- * Only modifies status.discovered_capabilities, leaving spec, validation
124
- * state, and other status fields untouched.
125
- *
126
- * @internal
127
- * Typical flow:
128
- * 1. CLI calls getByReference(org/slug) to fetch the McpServer and its ID
129
- * 2. CLI connects to the MCP server locally and queries tools/resources
130
- * 3. CLI calls this RPC with the ID and discovered capabilities
131
- *
132
- * Authorization: Requires can_edit permission on the mcp_server resource.
133
- *
134
- * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.updateDiscoveredCapabilities
135
- */
136
- updateDiscoveredCapabilities: {
137
- name: "updateDiscoveredCapabilities",
138
- I: UpdateDiscoveredCapabilitiesInput,
139
- O: McpServer,
140
- kind: MethodKind.Unary,
141
- },
142
- /**
143
- * Discover the capabilities of an MCP server by connecting to it.
121
+ * Connect to an MCP server: discover its tools and classify approval policies.
144
122
  *
145
123
  * Connects to the MCP server, enumerates tools and resource templates,
146
- * and stores the result. Blocks until discovery completes (up to ~30 seconds)
147
- * and returns the updated McpServer with populated
148
- * status.discovered_capabilities.
124
+ * classifies tool approval policies via a lightweight LLM, and stores the
125
+ * results in status.discovered_capabilities and status.tool_approvals.
126
+ * Blocks until completion (up to ~30 seconds) and returns the updated McpServer.
149
127
  *
150
128
  * @internal
151
- * Typical flow:
152
- * 1. Web console ensures required credentials are saved in the user's personal environment
153
- * 2. Web console calls discoverCapabilities with the MCP server ID
154
- * 3. Backend resolves env vars from the user's personal environment
155
- * 4. Backend starts a Temporal workflow; agent-runner connects to the MCP server
156
- * 5. Discovered tools and resource templates are stored and returned
129
+ * Typical flows:
130
+ * - Web console: user clicks Connect, backend resolves env vars from the
131
+ * user's personal environment, starts a Temporal workflow on the agent-runner.
132
+ * - CLI: `stigmer discover mcp-server <name>` calls connect with runtime_env
133
+ * populated from local env vars, delegating discovery to the backend.
134
+ * - Graphton backfill: agent-runner calls connect on first execution when
135
+ * status.discovered_capabilities is empty, passing runtime_env from the
136
+ * execution context.
157
137
  *
158
138
  * Errors:
159
139
  * - FAILED_PRECONDITION: Required credentials missing from personal environment
160
140
  * - DEADLINE_EXCEEDED: Discovery did not complete within the timeout
161
141
  * - NOT_FOUND: MCP server does not exist
162
142
  *
163
- * Authorization: Requires can_edit permission on the mcp_server resource.
143
+ * Authorization: Requires can_connect permission on the mcp_server resource.
164
144
  *
165
- * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.discoverCapabilities
145
+ * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.connect
166
146
  */
167
- discoverCapabilities: {
168
- name: "discoverCapabilities",
169
- I: DiscoverCapabilitiesInput,
147
+ connect: {
148
+ name: "connect",
149
+ I: ConnectInput,
170
150
  O: McpServer,
171
151
  kind: MethodKind.Unary,
172
152
  },
@@ -1 +1 @@
1
- {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/command_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,8HAA8H;AAC9H,oBAAoB;AACpB,cAAc;AAGd,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIhD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,4DAA4D;IACtE,OAAO,EAAE;QACP;;;;;;;;;;;;;WAaG;QACH,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;WAWG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,sBAAsB;YACzB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;WAUG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,qBAAqB;YACxB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;WAeG;QACH,4BAA4B,EAAE;YAC5B,IAAI,EAAE,8BAA8B;YACpC,CAAC,EAAE,iCAAiC;YACpC,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,oBAAoB,EAAE;YACpB,IAAI,EAAE,sBAAsB;YAC5B,CAAC,EAAE,yBAAyB;YAC5B,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/command_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,8HAA8H;AAC9H,oBAAoB;AACpB,cAAc;AAGd,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIhD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,4DAA4D;IACtE,OAAO,EAAE;QACP;;;;;;;;;;;;;WAaG;QACH,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;WAWG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,sBAAsB;YACzB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;WAUG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,qBAAqB;YACxB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BG;QACH,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,CAAC,EAAE,YAAY;YACf,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
2
2
  import type { McpServerSchema } from "./api_pb";
3
- import type { DiscoverCapabilitiesInputSchema, UpdateDiscoveredCapabilitiesInputSchema } from "./io_pb";
3
+ import type { ConnectInputSchema } from "./io_pb";
4
4
  import type { ApiResourceDeleteInputSchema, UpdateVisibilityInputSchema } from "../../../commons/apiresource/io_pb";
5
5
  /**
6
6
  * Describes the file ai/stigmer/agentic/mcpserver/v1/command.proto.
@@ -114,54 +114,35 @@ export declare const McpServerCommandController: GenService<{
114
114
  output: typeof McpServerSchema;
115
115
  };
116
116
  /**
117
- * Update the discovered capabilities (tools and resource templates) for an MCP server.
118
- *
119
- * Only modifies status.discovered_capabilities, leaving spec, validation
120
- * state, and other status fields untouched.
121
- *
122
- * @internal
123
- * Typical flow:
124
- * 1. CLI calls getByReference(org/slug) to fetch the McpServer and its ID
125
- * 2. CLI connects to the MCP server locally and queries tools/resources
126
- * 3. CLI calls this RPC with the ID and discovered capabilities
127
- *
128
- * Authorization: Requires can_edit permission on the mcp_server resource.
129
- *
130
- * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.updateDiscoveredCapabilities
131
- */
132
- updateDiscoveredCapabilities: {
133
- methodKind: "unary";
134
- input: typeof UpdateDiscoveredCapabilitiesInputSchema;
135
- output: typeof McpServerSchema;
136
- };
137
- /**
138
- * Discover the capabilities of an MCP server by connecting to it.
117
+ * Connect to an MCP server: discover its tools and classify approval policies.
139
118
  *
140
119
  * Connects to the MCP server, enumerates tools and resource templates,
141
- * and stores the result. Blocks until discovery completes (up to ~30 seconds)
142
- * and returns the updated McpServer with populated
143
- * status.discovered_capabilities.
120
+ * classifies tool approval policies via a lightweight LLM, and stores the
121
+ * results in status.discovered_capabilities and status.tool_approvals.
122
+ * Blocks until completion (up to ~30 seconds) and returns the updated McpServer.
144
123
  *
145
124
  * @internal
146
- * Typical flow:
147
- * 1. Web console ensures required credentials are saved in the user's personal environment
148
- * 2. Web console calls discoverCapabilities with the MCP server ID
149
- * 3. Backend resolves env vars from the user's personal environment
150
- * 4. Backend starts a Temporal workflow; agent-runner connects to the MCP server
151
- * 5. Discovered tools and resource templates are stored and returned
125
+ * Typical flows:
126
+ * - Web console: user clicks Connect, backend resolves env vars from the
127
+ * user's personal environment, starts a Temporal workflow on the agent-runner.
128
+ * - CLI: `stigmer discover mcp-server <name>` calls connect with runtime_env
129
+ * populated from local env vars, delegating discovery to the backend.
130
+ * - Graphton backfill: agent-runner calls connect on first execution when
131
+ * status.discovered_capabilities is empty, passing runtime_env from the
132
+ * execution context.
152
133
  *
153
134
  * Errors:
154
135
  * - FAILED_PRECONDITION: Required credentials missing from personal environment
155
136
  * - DEADLINE_EXCEEDED: Discovery did not complete within the timeout
156
137
  * - NOT_FOUND: MCP server does not exist
157
138
  *
158
- * Authorization: Requires can_edit permission on the mcp_server resource.
139
+ * Authorization: Requires can_connect permission on the mcp_server resource.
159
140
  *
160
- * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.discoverCapabilities
141
+ * @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerCommandController.connect
161
142
  */
162
- discoverCapabilities: {
143
+ connect: {
163
144
  methodKind: "unary";
164
- input: typeof DiscoverCapabilitiesInputSchema;
145
+ input: typeof ConnectInputSchema;
165
146
  output: typeof McpServerSchema;
166
147
  };
167
148
  }>;
@@ -10,7 +10,7 @@ import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc
10
10
  /**
11
11
  * Describes the file ai/stigmer/agentic/mcpserver/v1/command.proto.
12
12
  */
13
- export const file_ai_stigmer_agentic_mcpserver_v1_command = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL2NvbW1hbmQucHJvdG8SH2FpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEylAkKGk1jcFNlcnZlckNvbW1hbmRDb250cm9sbGVyEl8KBWFwcGx5EiouYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5NY3BTZXJ2ZXIaKi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlchJmCgZjcmVhd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ZGF0ZSBtY3Agc2VydmVyIGNhcGFiaWxpdGllcxLJAQoUZGlzY292ZXJDYXBhYmlsaXRpZXMSOi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkRpc2NvdmVyQ2FwYWJpbGl0aWVzSW5wdXQaKi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlciJJwrgYRQgCECwiDW1jcF9zZXJ2ZXJfaWQqMHVuYXV0aG9yaXplZCB0byBkaXNjb3ZlciBtY3Agc2VydmVyIGNhcGFiaWxpdGllcxoEoP8rLGIGcHJvdG8z", [file_ai_stigmer_agentic_mcpserver_v1_api, file_ai_stigmer_agentic_mcpserver_v1_io, file_ai_stigmer_commons_apiresource_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
13
+ export const file_ai_stigmer_agentic_mcpserver_v1_command = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL2NvbW1hbmQucHJvdG8SH2FpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEylQcKGk1jcFNlcnZlckNvbW1hbmRDb250cm9sbGVyEl8KBWFwcGx5EiouYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5NY3BTZXJ2ZXIaKi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlchJmCgZjcmVhdGUSKi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlchoqLmFpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEuTWNwU2VydmVyIgTQuBgBEpoBCgZ1cGRhdGUSKi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlchoqLmFpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEuTWNwU2VydmVyIjjCuBg0CAIQLCILbWV0YWRhdGEuaWQqIXVuYXV0aG9yaXplZCB0byB1cGRhdGUgbWNwIHNlcnZlchKmAQoGZGVsZXRlEjYuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlRGVsZXRlSW5wdXQaKi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlciI4wrgYNAgDECwiC3Jlc291cmNlX2lkKiF1bmF1dGhvcml6ZWQgdG8gZGVsZXRlIG1jcCBzZXJ2ZXISugEKEHVwZGF0ZVZpc2liaWxpdHkSNS5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuVXBkYXRlVmlzaWJpbGl0eUlucHV0GiouYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5NY3BTZXJ2ZXIiQ8K4GD8IAhAsIgtyZXNvdXJjZV9pZCosdW5hdXRob3JpemVkIHRvIHVwZGF0ZSBtY3Agc2VydmVyIHZpc2liaWxpdHkSpAEKB2Nvbm5lY3QSLS5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkNvbm5lY3RJbnB1dBoqLmFpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEuTWNwU2VydmVyIj7CuBg6CBYQLCINbWNwX3NlcnZlcl9pZColdW5hdXRob3JpemVkIHRvIGNvbm5lY3QgdG8gbWNwIHNlcnZlchoEoP8rLGIGcHJvdG8z", [file_ai_stigmer_agentic_mcpserver_v1_api, file_ai_stigmer_agentic_mcpserver_v1_io, file_ai_stigmer_commons_apiresource_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
14
14
  /**
15
15
  * McpServerCommandController provides write operations for MCP server resources.
16
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/command_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,8HAA8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C,EAAE,uCAAuC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEjjD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GA6HlC,aAAa,CAChB,WAAW,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
2
  import type { ExecutionValue } from "../../executioncontext/v1/spec_pb";
3
- import type { DiscoveredCapabilities } from "./status_pb";
4
3
  import type { Message } from "@bufbuild/protobuf";
5
4
  /**
6
5
  * Describes the file ai/stigmer/agentic/mcpserver/v1/io.proto.
@@ -29,48 +28,15 @@ export type McpServerId = Message<"ai.stigmer.agentic.mcpserver.v1.McpServerId">
29
28
  */
30
29
  export declare const McpServerIdSchema: GenMessage<McpServerId>;
31
30
  /**
32
- * UpdateDiscoveredCapabilitiesInput is the request for the updateDiscoveredCapabilities RPC.
31
+ * ConnectInput is the request for the connect RPC.
33
32
  *
34
33
  * @internal
35
- * Used by:
36
- * - CLI: after `stigmer discover mcp-server <name>` connects locally, queries tools/resources,
37
- * and pushes the results to stigmer-server.
38
- * - Agent-runner: future runtime cache refresh.
39
- *
40
- * The caller must first resolve the MCP server's system ID (e.g., via getByReference)
41
- * before calling this RPC.
42
- *
43
- * @generated from message ai.stigmer.agentic.mcpserver.v1.UpdateDiscoveredCapabilitiesInput
44
- */
45
- export type UpdateDiscoveredCapabilitiesInput = Message<"ai.stigmer.agentic.mcpserver.v1.UpdateDiscoveredCapabilitiesInput"> & {
46
- /**
47
- * System-generated ID of the MCP server to update.
48
- * Obtained from McpServer.metadata.id (e.g., via getByReference).
49
- *
50
- * @generated from field: string mcp_server_id = 1;
51
- */
52
- mcpServerId: string;
53
- /**
54
- * Discovered tools and resource templates to store.
55
- *
56
- * @generated from field: ai.stigmer.agentic.mcpserver.v1.DiscoveredCapabilities discovered_capabilities = 2;
57
- */
58
- discoveredCapabilities?: DiscoveredCapabilities;
59
- };
60
- /**
61
- * Describes the message ai.stigmer.agentic.mcpserver.v1.UpdateDiscoveredCapabilitiesInput.
62
- * Use `create(UpdateDiscoveredCapabilitiesInputSchema)` to create a new message.
63
- */
64
- export declare const UpdateDiscoveredCapabilitiesInputSchema: GenMessage<UpdateDiscoveredCapabilitiesInput>;
65
- /**
66
- * DiscoverCapabilitiesInput is the request for the discoverCapabilities RPC.
67
- *
68
- * @internal
69
- * Triggers server-side MCP discovery: the backend creates an ephemeral
70
- * ExecutionContext with the resolved environment variables, starts a Temporal
71
- * workflow that connects to the MCP server (via the agent-runner), enumerates
72
- * tools and resource templates, and stores the result in
73
- * status.discovered_capabilities.
34
+ * Triggers server-side MCP discovery and tool approval classification:
35
+ * the backend creates an ephemeral ExecutionContext with the resolved
36
+ * environment variables, starts a Temporal workflow that connects to the
37
+ * MCP server (via the agent-runner), enumerates tools and resource
38
+ * templates, classifies tool approval policies, and stores the results
39
+ * in status.discovered_capabilities and status.tool_approvals.
74
40
  *
75
41
  * Environment variable resolution:
76
42
  * - When runtime_env is provided, the backend creates an ExecutionContext directly
@@ -78,23 +44,29 @@ export declare const UpdateDiscoveredCapabilitiesInputSchema: GenMessage<UpdateD
78
44
  * - When runtime_env is empty, the backend resolves values from the authenticated
79
45
  * user's personal environment.
80
46
  *
47
+ * Callers:
48
+ * - Web console: calls connect after saving credentials to personal environment.
49
+ * - CLI: calls connect with runtime_env populated from local env vars.
50
+ * - Graphton backfill: calls connect with runtime_env from execution context
51
+ * when status.discovered_capabilities is empty on first agent execution.
52
+ *
81
53
  * Prerequisites:
82
54
  * - The MCP server must exist and have a valid server_type (stdio or http)
83
55
  * - Either runtime_env must contain all required keys, or the keys must be
84
56
  * present in the user's personal environment
85
57
  *
86
- * @generated from message ai.stigmer.agentic.mcpserver.v1.DiscoverCapabilitiesInput
58
+ * @generated from message ai.stigmer.agentic.mcpserver.v1.ConnectInput
87
59
  */
88
- export type DiscoverCapabilitiesInput = Message<"ai.stigmer.agentic.mcpserver.v1.DiscoverCapabilitiesInput"> & {
60
+ export type ConnectInput = Message<"ai.stigmer.agentic.mcpserver.v1.ConnectInput"> & {
89
61
  /**
90
- * System-generated ID of the MCP server to discover.
62
+ * System-generated ID of the MCP server to connect to.
91
63
  * Obtained from McpServer.metadata.id (e.g., via getByReference).
92
64
  *
93
65
  * @generated from field: string mcp_server_id = 1;
94
66
  */
95
67
  mcpServerId: string;
96
68
  /**
97
- * Optional environment variable values for one-time discovery.
69
+ * Optional environment variable values for one-time use.
98
70
  * When empty, values are resolved from the user's personal environment.
99
71
  *
100
72
  * @generated from field: map<string, ai.stigmer.agentic.executioncontext.v1.ExecutionValue> runtime_env = 2;
@@ -104,7 +76,7 @@ export type DiscoverCapabilitiesInput = Message<"ai.stigmer.agentic.mcpserver.v1
104
76
  };
105
77
  };
106
78
  /**
107
- * Describes the message ai.stigmer.agentic.mcpserver.v1.DiscoverCapabilitiesInput.
108
- * Use `create(DiscoverCapabilitiesInputSchema)` to create a new message.
79
+ * Describes the message ai.stigmer.agentic.mcpserver.v1.ConnectInput.
80
+ * Use `create(ConnectInputSchema)` to create a new message.
109
81
  */
110
- export declare const DiscoverCapabilitiesInputSchema: GenMessage<DiscoverCapabilitiesInput>;
82
+ export declare const ConnectInputSchema: GenMessage<ConnectInput>;
@@ -3,25 +3,19 @@
3
3
  /* eslint-disable */
4
4
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
5
  import { file_ai_stigmer_agentic_executioncontext_v1_spec } from "../../executioncontext/v1/spec_pb";
6
- import { file_ai_stigmer_agentic_mcpserver_v1_status } from "./status_pb";
7
6
  import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb";
8
7
  /**
9
8
  * Describes the file ai/stigmer/agentic/mcpserver/v1/io.proto.
10
9
  */
11
- export const file_ai_stigmer_agentic_mcpserver_v1_io = /*@__PURE__*/ fileDesc("CihhaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL2lvLnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxIiQKC01jcFNlcnZlcklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEipAEKIVVwZGF0ZURpc2NvdmVyZWRDYXBhYmlsaXRpZXNJbnB1dBIdCg1tY3Bfc2VydmVyX2lkGAEgASgJQga6SAPIAQESYAoXZGlzY292ZXJlZF9jYXBhYmlsaXRpZXMYAiABKAsyNy5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkRpc2NvdmVyZWRDYXBhYmlsaXRpZXNCBrpIA8gBASKGAgoZRGlzY292ZXJDYXBhYmlsaXRpZXNJbnB1dBIdCg1tY3Bfc2VydmVyX2lkGAEgASgJQga6SAPIAQESXwoLcnVudGltZV9lbnYYAiADKAsySi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkRpc2NvdmVyQ2FwYWJpbGl0aWVzSW5wdXQuUnVudGltZUVudkVudHJ5GmkKD1J1bnRpbWVFbnZFbnRyeRILCgNrZXkYASABKAkSRQoFdmFsdWUYAiABKAsyNi5haS5zdGlnbWVyLmFnZW50aWMuZXhlY3V0aW9uY29udGV4dC52MS5FeGVjdXRpb25WYWx1ZToCOAFiBnByb3RvMw", [file_ai_stigmer_agentic_executioncontext_v1_spec, file_ai_stigmer_agentic_mcpserver_v1_status, file_buf_validate_validate]);
10
+ export const file_ai_stigmer_agentic_mcpserver_v1_io = /*@__PURE__*/ fileDesc("CihhaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL2lvLnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxIiQKC01jcFNlcnZlcklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEi7AEKDENvbm5lY3RJbnB1dBIdCg1tY3Bfc2VydmVyX2lkGAEgASgJQga6SAPIAQESUgoLcnVudGltZV9lbnYYAiADKAsyPS5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkNvbm5lY3RJbnB1dC5SdW50aW1lRW52RW50cnkaaQoPUnVudGltZUVudkVudHJ5EgsKA2tleRgBIAEoCRJFCgV2YWx1ZRgCIAEoCzI2LmFpLnN0aWdtZXIuYWdlbnRpYy5leGVjdXRpb25jb250ZXh0LnYxLkV4ZWN1dGlvblZhbHVlOgI4AWIGcHJvdG8z", [file_ai_stigmer_agentic_executioncontext_v1_spec, file_buf_validate_validate]);
12
11
  /**
13
12
  * Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerId.
14
13
  * Use `create(McpServerIdSchema)` to create a new message.
15
14
  */
16
15
  export const McpServerIdSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 0);
17
16
  /**
18
- * Describes the message ai.stigmer.agentic.mcpserver.v1.UpdateDiscoveredCapabilitiesInput.
19
- * Use `create(UpdateDiscoveredCapabilitiesInputSchema)` to create a new message.
17
+ * Describes the message ai.stigmer.agentic.mcpserver.v1.ConnectInput.
18
+ * Use `create(ConnectInputSchema)` to create a new message.
20
19
  */
21
- export const UpdateDiscoveredCapabilitiesInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 1);
22
- /**
23
- * Describes the message ai.stigmer.agentic.mcpserver.v1.DiscoverCapabilitiesInput.
24
- * Use `create(DiscoverCapabilitiesInputSchema)` to create a new message.
25
- */
26
- export const DiscoverCapabilitiesInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 2);
20
+ export const ConnectInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 1);
27
21
  //# sourceMappingURL=io_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/io_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,yHAAyH;AACzH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,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,CAAC,CAAC,CAAC;AAkD1D;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
2
  import type { EnvironmentSpec } from "../../environment/v1/spec_pb";
3
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
4
  import type { Message } from "@bufbuild/protobuf";
4
5
  /**
5
6
  * Describes the file ai/stigmer/agentic/mcpserver/v1/spec.proto.
@@ -88,24 +89,34 @@ export type McpServerSpec = Message<"ai.stigmer.agentic.mcpserver.v1.McpServerSp
88
89
  */
89
90
  envSpec?: EnvironmentSpec;
90
91
  /**
91
- * Default tool approval policies for this MCP server.
92
+ * Source/provenance of this MCP server definition.
93
+ * Populated by automated sync workflows (e.g. MCP Registry sync).
94
+ * Empty for hand-authored definitions like the system mcp-server-stigmer.
95
+ *
96
+ * @generated from field: ai.stigmer.agentic.mcpserver.v1.McpServerSource source = 10;
97
+ */
98
+ source?: McpServerSource;
99
+ /**
100
+ * Manual tool approval overrides set by the MCP server owner.
92
101
  *
93
102
  * @internal
94
- * Tools listed here require user approval before execution by default.
95
- * This is the first layer in the approval policy chain:
96
- * McpServer.default_tool_approvals → Agent.tool_approval_overrides → auto_approve_all
103
+ * These take precedence over system-generated `McpServerStatus.tool_approvals`.
104
+ * Never auto-modified only changed by explicit user action (apply/update).
97
105
  *
98
106
  * Use cases:
99
- * - Mark destructive operations as requiring approval by default
100
- * - Protect sensitive data access across all agents using this server
107
+ * - Force approval for a tool the classifier marked as auto-approve
108
+ * - Exempt a safe tool the classifier flagged as needing approval
101
109
  * - Establish organization-wide safety policies for dangerous tools
102
110
  *
103
- * Tools not listed here do not require approval by default.
104
- * Agents can still add approval requirements via tool_approval_overrides.
111
+ * Policy chain (lowest to highest priority):
112
+ * 1. McpServerStatus.tool_approvals - System-generated defaults
113
+ * 2. McpServerSpec.pinned_tool_approvals - Manual overrides (this field)
114
+ * 3. Agent.McpServerUsage.tool_approval_overrides - Per-agent customization
115
+ * 4. AgentExecution.auto_approve_all - Runtime bypass
105
116
  *
106
- * @generated from field: repeated ai.stigmer.agentic.mcpserver.v1.ToolApprovalPolicy default_tool_approvals = 9;
117
+ * @generated from field: repeated ai.stigmer.agentic.mcpserver.v1.ToolApprovalPolicy pinned_tool_approvals = 11;
107
118
  */
108
- defaultToolApprovals: ToolApprovalPolicy[];
119
+ pinnedToolApprovals: ToolApprovalPolicy[];
109
120
  };
110
121
  /**
111
122
  * Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerSpec.
@@ -137,9 +148,26 @@ export type StdioServerConfig = Message<"ai.stigmer.agentic.mcpserver.v1.StdioSe
137
148
  command: string;
138
149
  /**
139
150
  * Arguments to pass to the command.
151
+ *
152
+ * Argument values can reference environment variables using ${VAR_NAME} syntax.
153
+ * These placeholders are resolved at runtime from the execution environment
154
+ * (same source as HTTP header/query param placeholders). This enables MCP
155
+ * servers that take core configuration as positional CLI arguments (e.g.
156
+ * database connection URLs, directory paths) to be parameterized per-user
157
+ * through env_spec.
158
+ *
159
+ * Resolution uses strict mode: missing variables produce a clear error
160
+ * rather than passing a literal "${VAR}" to the subprocess.
161
+ *
162
+ * Note: resolved values appear in the subprocess argv, which is visible
163
+ * via /proc/<pid>/cmdline within the container. In the containerized
164
+ * agent-runner environment this is not a practical concern, but callers
165
+ * should be aware when debugging.
166
+ *
140
167
  * Examples:
141
- * - For npx: ["-y", "@modelcontextprotocol/server-github"]
142
- * - For python: ["-m", "mcp_server_sqlite", "--db-path", "/data/db.sqlite"]
168
+ * ["-y", "@modelcontextprotocol/server-github"]
169
+ * ["-y", "@modelcontextprotocol/server-postgres", "${POSTGRES_CONNECTION_URL}"]
170
+ * ["-m", "mcp_server_sqlite", "--db-path", "${DB_PATH}/data.sqlite"]
143
171
  *
144
172
  * @generated from field: repeated string args = 2;
145
173
  */
@@ -245,9 +273,10 @@ export declare const HttpServerConfigSchema: GenMessage<HttpServerConfig>;
245
273
  * If a placeholder references a missing argument, it's replaced with "<unknown>".
246
274
  *
247
275
  * Policy chain (lowest to highest priority):
248
- * 1. McpServer.default_tool_approvals (this message) - Platform/org defaults
249
- * 2. Agent.McpServerUsage.tool_approval_overrides - Per-agent customization
250
- * 3. AgentExecution.auto_approve_all - Runtime bypass
276
+ * 1. McpServerStatus.tool_approvals - System-generated defaults
277
+ * 2. McpServerSpec.pinned_tool_approvals - Manual overrides
278
+ * 3. Agent.McpServerUsage.tool_approval_overrides - Per-agent customization
279
+ * 4. AgentExecution.auto_approve_all - Runtime bypass
251
280
  *
252
281
  * @generated from message ai.stigmer.agentic.mcpserver.v1.ToolApprovalPolicy
253
282
  */
@@ -281,3 +310,59 @@ export type ToolApprovalPolicy = Message<"ai.stigmer.agentic.mcpserver.v1.ToolAp
281
310
  * Use `create(ToolApprovalPolicySchema)` to create a new message.
282
311
  */
283
312
  export declare const ToolApprovalPolicySchema: GenMessage<ToolApprovalPolicy>;
313
+ /**
314
+ * McpServerSource tracks provenance for MCP server definitions that were
315
+ * imported from an external registry or catalog via automated sync.
316
+ *
317
+ * This enables:
318
+ * - Traceability: users can inspect the upstream source of any marketplace entry.
319
+ * - Freshness tracking: the platform knows when a definition was last synced.
320
+ * - Deprecation detection: if a server disappears from the source registry,
321
+ * the sync workflow can flag it as deprecated.
322
+ * - Deduplication: source.registry_name is the natural key for upsert logic.
323
+ *
324
+ * @generated from message ai.stigmer.agentic.mcpserver.v1.McpServerSource
325
+ */
326
+ export type McpServerSource = Message<"ai.stigmer.agentic.mcpserver.v1.McpServerSource"> & {
327
+ /**
328
+ * Registry or catalog this definition was sourced from.
329
+ * Example: "registry.modelcontextprotocol.io"
330
+ *
331
+ * @generated from field: string registry = 1;
332
+ */
333
+ registry: string;
334
+ /**
335
+ * Name/identifier in the source registry (exact, unmodified).
336
+ * This is the canonical key used for dedup and update matching.
337
+ * Example: "ai.exa/exa"
338
+ *
339
+ * @generated from field: string registry_name = 2;
340
+ */
341
+ registryName: string;
342
+ /**
343
+ * Version from the source registry at the time of last sync.
344
+ * Example: "3.1.3"
345
+ *
346
+ * @generated from field: string version = 3;
347
+ */
348
+ version: string;
349
+ /**
350
+ * Repository URL for the MCP server source code.
351
+ * Lets users inspect the upstream implementation for trust and transparency.
352
+ * Example: "https://github.com/exa-labs/exa-mcp-server"
353
+ *
354
+ * @generated from field: string repository_url = 4;
355
+ */
356
+ repositoryUrl: string;
357
+ /**
358
+ * Timestamp of last successful sync from the source.
359
+ *
360
+ * @generated from field: google.protobuf.Timestamp last_synced_at = 5;
361
+ */
362
+ lastSyncedAt?: Timestamp;
363
+ };
364
+ /**
365
+ * Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerSource.
366
+ * Use `create(McpServerSourceSchema)` to create a new message.
367
+ */
368
+ export declare const McpServerSourceSchema: GenMessage<McpServerSource>;
@@ -4,10 +4,11 @@
4
4
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
5
  import { file_ai_stigmer_agentic_environment_v1_spec } from "../../environment/v1/spec_pb";
6
6
  import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb";
7
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
8
  /**
8
9
  * Describes the file ai/stigmer/agentic/mcpserver/v1/spec.proto.
9
10
  */
10
- export const file_ai_stigmer_agentic_mcpserver_v1_spec = /*@__PURE__*/ fileDesc("CiphaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL3NwZWMucHJvdG8SH2FpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEinAMKDU1jcFNlcnZlclNwZWMSEwoLZGVzY3JpcHRpb24YASABKAkSEAoIaWNvbl91cmwYAiABKAkSDAoEdGFncxgDIAMoCRJDCgVzdGRpbxgEIAEoCzIyLmFpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEuU3RkaW9TZ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f_validate_validate]);
11
+ export const file_ai_stigmer_agentic_mcpserver_v1_spec = /*@__PURE__*/ fileDesc("CiphaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL3NwZWMucHJvdG8SH2FpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEi3QMKDU1jcFNlcnZlclNwZWMSEwoLZGVzY3JpcHRpb24YASABKAkSEAoIaWNvbl91cmwYAiABKAkSDAoEdGFncxgDIAMoCRJDCgVzdGRpbxgEIAEoCzIyLmFpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEuU3RkaW9TZXJ2ZXJDb25maWdIABJBCgRodHRwGAUgASgLMjEuYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5IdHRwU2VydmVyQ29uZmlnSAASHQoVZGVmYXVsdF9lbmFibGVkX3Rvb2xzGAcgAygJEkQKCGVudl9zcGVjGAggASgLMjIuYWkuc3RpZ21lci5hZ2VudGljLmVudmlyb25tZW50LnYxLkVudmlyb25tZW50U3BlYxJACgZzb3VyY2UYCiABKAsyMC5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLk1jcFNlcnZlclNvdXJjZRJSChVwaW5uZWRfdG9vbF9hcHByb3ZhbHMYCyADKAsyMy5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLlRvb2xBcHByb3ZhbFBvbGljeUIUCgtzZXJ2ZXJfdHlwZRIFukgCCAEiTwoRU3RkaW9TZXJ2ZXJDb25maWcSFwoHY29tbWFuZBgBIAEoCUIGukgDyAEBEgwKBGFyZ3MYAiADKAkSEwoLd29ya2luZ19kaXIYAyABKAki4AIKEEh0dHBTZXJ2ZXJDb25maWcSGAoDdXJsGAEgASgJQgu6SAjIAQFyA4gBARJPCgdoZWFkZXJzGAIgAygLMj4uYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5IdHRwU2VydmVyQ29uZmlnLkhlYWRlcnNFbnRyeRJYCgxxdWVyeV9wYXJhbXMYAyADKAsyQi5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkh0dHBTZXJ2ZXJDb25maWcuUXVlcnlQYXJhbXNFbnRyeRIjCg90aW1lb3V0X3NlY29uZHMYBCABKAVCCrpIBxoFGKwCKAAaLgoMSGVhZGVyc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaMgoQUXVlcnlQYXJhbXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIkEKElRvb2xBcHByb3ZhbFBvbGljeRIaCgl0b29sX25hbWUYASABKAlCB7pIBHICEAESDwoHbWVzc2FnZRgCIAEoCSKXAQoPTWNwU2VydmVyU291cmNlEhAKCHJlZ2lzdHJ5GAEgASgJEhUKDXJlZ2lzdHJ5X25hbWUYAiABKAkSDwoHdmVyc2lvbhgDIAEoCRIWCg5yZXBvc2l0b3J5X3VybBgEIAEoCRIyCg5sYXN0X3N5bmNlZF9hdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBiBnByb3RvMw", [file_ai_stigmer_agentic_environment_v1_spec, file_buf_validate_validate, file_google_protobuf_timestamp]);
11
12
  /**
12
13
  * Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerSpec.
13
14
  * Use `create(McpServerSpecSchema)` to create a new message.
@@ -28,4 +29,9 @@ export const HttpServerConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_
28
29
  * Use `create(ToolApprovalPolicySchema)` to create a new message.
29
30
  */
30
31
  export const ToolApprovalPolicySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_spec, 3);
32
+ /**
33
+ * Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerSource.
34
+ * Use `create(McpServerSourceSchema)` to create a new message.
35
+ */
36
+ export const McpServerSourceSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_spec, 4);
31
37
  //# sourceMappingURL=spec_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,2HAA2H;AAC3H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAY,aAAa,CAC7E,QAAQ,CAAC,4zCAA4zC,EAAE,CAAC,2CAA2C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA4Gp5C;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AA8C5D;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAqE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAkD5D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,2HAA2H;AAC3H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAY,aAAa,CAC7E,QAAQ,CAAC,gmDAAgmD,EAAE,CAAC,2CAA2C,EAAE,0BAA0B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAuHxtD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AA+D5D;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAqE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAmD5D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AA0D5D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { ToolApprovalPolicy } from "./spec_pb";
2
3
  import type { ApiResourceAudit } from "../../../commons/apiresource/status_pb";
3
4
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
4
5
  import type { JsonObject, Message } from "@bufbuild/protobuf";
@@ -10,17 +11,15 @@ export declare const file_ai_stigmer_agentic_mcpserver_v1_status: GenFile;
10
11
  * McpServerStatus represents the system-managed state of an MCP server definition.
11
12
  *
12
13
  * @internal
13
- * Tracks two concerns:
14
+ * Tracks three concerns:
14
15
  * 1. Structural validation — whether the definition is valid and can be used by agents.
15
16
  * 2. Discovered capabilities — the tools and resource templates the MCP server
16
- * actually provides. Populated by one of three mechanisms:
17
+ * actually provides. Populated by:
17
18
  * a. Static seedpack bootstrap (for built-in servers like stigmer-mcp-server)
18
- * b. CLI discovery: `stigmer discover mcp-server <name>` connects locally,
19
- * queries the running server, and pushes results via updateDiscoveredCapabilities
20
- * c. Agent-runner runtime cache (future)
21
- *
22
- * CLI discovery runs on the developer's machine, so credentials (e.g., GITHUB_TOKEN)
23
- * never leave the local environment. The server only receives tool/resource metadata.
19
+ * b. The connect RPC the backend delegates to the agent-runner via a Temporal
20
+ * workflow, which connects to the MCP server and enumerates tools/resources.
21
+ * 3. Tool approval policies — system-generated by a lightweight LLM classifier during
22
+ * the connect flow. Manual overrides live in McpServerSpec.pinned_tool_approvals.
24
23
  *
25
24
  * @generated from message ai.stigmer.agentic.mcpserver.v1.McpServerStatus
26
25
  */
@@ -46,11 +45,28 @@ export type McpServerStatus = Message<"ai.stigmer.agentic.mcpserver.v1.McpServer
46
45
  validationMessage: string;
47
46
  /**
48
47
  * Tools and resource templates discovered from the MCP server.
49
- * Optional — absent until discovery has been performed (or seeded from seedpack).
48
+ * Optional — absent until the connect RPC has been called (or seeded from seedpack).
50
49
  *
51
50
  * @generated from field: ai.stigmer.agentic.mcpserver.v1.DiscoveredCapabilities discovered_capabilities = 3;
52
51
  */
53
52
  discoveredCapabilities?: DiscoveredCapabilities;
53
+ /**
54
+ * System-generated tool approval policies.
55
+ *
56
+ * @internal
57
+ * Produced by a lightweight LLM classifier during the connect flow.
58
+ * Overwritten on each reconnect. Never manually edited — use
59
+ * McpServerSpec.pinned_tool_approvals for manual overrides.
60
+ *
61
+ * Policy chain (lowest to highest priority):
62
+ * 1. McpServerStatus.tool_approvals (this field) - System-generated defaults
63
+ * 2. McpServerSpec.pinned_tool_approvals - Manual overrides
64
+ * 3. Agent.McpServerUsage.tool_approval_overrides - Per-agent customization
65
+ * 4. AgentExecution.auto_approve_all - Runtime bypass
66
+ *
67
+ * @generated from field: repeated ai.stigmer.agentic.mcpserver.v1.ToolApprovalPolicy tool_approvals = 4;
68
+ */
69
+ toolApprovals: ToolApprovalPolicy[];
54
70
  /**
55
71
  * Standard audit information (created_at, updated_at, created_by, etc.)
56
72
  *
@@ -79,8 +95,7 @@ export declare const McpServerStatusSchema: GenMessage<McpServerStatus>;
79
95
  *
80
96
  * Populated by:
81
97
  * - Seedpack bootstrap (built-in servers with known, stable tool sets)
82
- * - CLI discovery (`stigmer discover mcp-server <name>`)
83
- * - Agent-runner runtime cache (future)
98
+ * - The connect RPC (web console, CLI, or Graphton first-time-use backfill)
84
99
  *
85
100
  * @generated from message ai.stigmer.agentic.mcpserver.v1.DiscoveredCapabilities
86
101
  */
@@ -103,12 +118,6 @@ export type DiscoveredCapabilities = Message<"ai.stigmer.agentic.mcpserver.v1.Di
103
118
  * @generated from field: google.protobuf.Timestamp last_discovered_at = 3;
104
119
  */
105
120
  lastDiscoveredAt?: Timestamp;
106
- /**
107
- * How this snapshot was produced.
108
- *
109
- * @generated from field: ai.stigmer.agentic.mcpserver.v1.DiscoverySource discovered_by = 4;
110
- */
111
- discoveredBy: DiscoverySource;
112
121
  };
113
122
  /**
114
123
  * Describes the message ai.stigmer.agentic.mcpserver.v1.DiscoveredCapabilities.
@@ -226,46 +235,3 @@ export declare enum ValidationState {
226
235
  * Describes the enum ai.stigmer.agentic.mcpserver.v1.ValidationState.
227
236
  */
228
237
  export declare const ValidationStateSchema: GenEnum<ValidationState>;
229
- /**
230
- * DiscoverySource identifies how discovered capabilities were obtained.
231
- *
232
- * @generated from enum ai.stigmer.agentic.mcpserver.v1.DiscoverySource
233
- */
234
- export declare enum DiscoverySource {
235
- /**
236
- * Default/unspecified.
237
- *
238
- * @generated from enum value: discovery_source_unspecified = 0;
239
- */
240
- discovery_source_unspecified = 0,
241
- /**
242
- * Statically defined in the seedpack (built-in servers with known tool sets).
243
- *
244
- * @generated from enum value: seedpack = 1;
245
- */
246
- seedpack = 1,
247
- /**
248
- * Discovered by the CLI via `stigmer discover mcp-server <name>`.
249
- * The CLI connects to the MCP server locally and pushes results to the server.
250
- *
251
- * @generated from enum value: cli = 2;
252
- */
253
- cli = 2,
254
- /**
255
- * Discovered by the agent-runner at runtime (future).
256
- *
257
- * @generated from enum value: agent_runner = 3;
258
- */
259
- agent_runner = 3,
260
- /**
261
- * Discovered via the discoverCapabilities RPC (web console or API).
262
- * The backend delegates to the agent-runner via a Temporal workflow.
263
- *
264
- * @generated from enum value: api = 4;
265
- */
266
- api = 4
267
- }
268
- /**
269
- * Describes the enum ai.stigmer.agentic.mcpserver.v1.DiscoverySource.
270
- */
271
- export declare const DiscoverySourceSchema: GenEnum<DiscoverySource>;
@@ -2,12 +2,13 @@
2
2
  // @generated from file ai/stigmer/agentic/mcpserver/v1/status.proto (package ai.stigmer.agentic.mcpserver.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_ai_stigmer_agentic_mcpserver_v1_spec } from "./spec_pb";
5
6
  import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/apiresource/status_pb";
6
7
  import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
8
  /**
8
9
  * Describes the file ai/stigmer/agentic/mcpserver/v1/status.proto.
9
10
  */
10
- export const file_ai_stigmer_agentic_mcpserver_v1_status = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL3N0YXR1cy5wcm90bxIfYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MSKUAgoPTWNwU2VydmVyU3RhdHVzEkoKEHZhbGlkYXRpb25fc3RhdGUYASABKA4yMC5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLlZhbGlkYXRpb25TdGF0ZRIaChJ2YWxpZGF0aW9uX21lc3NhZ2UYAiABKAkSWAoXZGlzY292ZXJlZF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EgcKA2NsaRACEhAKDGFnZW50X3J1bm5lchADEgcKA2FwaRAEYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_status, file_google_protobuf_struct, file_google_protobuf_timestamp]);
11
+ export const file_ai_stigmer_agentic_mcpserver_v1_status = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL3N0YXR1cy5wcm90bxIfYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MSLhAgoPTWNwU2VydmVyU3RhdHVzEkoKEHZhbGlkYXRpb25fc3RhdGUYASABKA4yMC5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLlZhbGlkYXRpb25TdGF0ZRIaChJ2YWxpZGF0aW9uX21lc3NhZ2UYAiABKAkSWAoXZGlzY292ZXJlZF9jYXBhYmlsaXRpZXMYAyABKAsyNy5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkRpc2NvdmVyZWRDYXBhYmlsaXRpZXMSSwoOdG9vbF9hcHByb3ZhbHMYBCADKAsyMy5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLlRvb2xBcHByb3ZhbFBvbGljeRI/CgVhdWRpdBhjIAEoCzIwLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUF1ZGl0IukBChZEaXNjb3ZlcmVkQ2FwYWJpbGl0aWVzEj4KBXRvb2xzGAEgAygLMi8uYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5EaXNjb3ZlcmVkVG9vbBJXChJyZXNvdXJjZV90ZW1wbGF0ZXMYAiADKAsyOy5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkRpc2NvdmVyZWRSZXNvdXJjZVRlbXBsYXRlEjYKEmxhc3RfZGlzY292ZXJlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiYgoORGlzY292ZXJlZFRvb2wSDAoEbmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRItCgxpbnB1dF9zY2hlbWEYAyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0ImgKGkRpc2NvdmVyZWRSZXNvdXJjZVRlbXBsYXRlEhQKDHVyaV90ZW1wbGF0ZRgBIAEoCRIMCgRuYW1lGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEhEKCW1pbWVfdHlwZRgEIAEoCSpLCg9WYWxpZGF0aW9uU3RhdGUSIAocdmFsaWRhdGlvbl9zdGF0ZV91bnNwZWNpZmllZBAAEgkKBXZhbGlkEAESCwoHaW52YWxpZBACYgZwcm90bzM", [file_ai_stigmer_agentic_mcpserver_v1_spec, file_ai_stigmer_commons_apiresource_status, file_google_protobuf_struct, file_google_protobuf_timestamp]);
11
12
  /**
12
13
  * Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerStatus.
13
14
  * Use `create(McpServerStatusSchema)` to create a new message.
@@ -64,48 +65,4 @@ export var ValidationState;
64
65
  * Describes the enum ai.stigmer.agentic.mcpserver.v1.ValidationState.
65
66
  */
66
67
  export const ValidationStateSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_mcpserver_v1_status, 0);
67
- /**
68
- * DiscoverySource identifies how discovered capabilities were obtained.
69
- *
70
- * @generated from enum ai.stigmer.agentic.mcpserver.v1.DiscoverySource
71
- */
72
- export var DiscoverySource;
73
- (function (DiscoverySource) {
74
- /**
75
- * Default/unspecified.
76
- *
77
- * @generated from enum value: discovery_source_unspecified = 0;
78
- */
79
- DiscoverySource[DiscoverySource["discovery_source_unspecified"] = 0] = "discovery_source_unspecified";
80
- /**
81
- * Statically defined in the seedpack (built-in servers with known tool sets).
82
- *
83
- * @generated from enum value: seedpack = 1;
84
- */
85
- DiscoverySource[DiscoverySource["seedpack"] = 1] = "seedpack";
86
- /**
87
- * Discovered by the CLI via `stigmer discover mcp-server <name>`.
88
- * The CLI connects to the MCP server locally and pushes results to the server.
89
- *
90
- * @generated from enum value: cli = 2;
91
- */
92
- DiscoverySource[DiscoverySource["cli"] = 2] = "cli";
93
- /**
94
- * Discovered by the agent-runner at runtime (future).
95
- *
96
- * @generated from enum value: agent_runner = 3;
97
- */
98
- DiscoverySource[DiscoverySource["agent_runner"] = 3] = "agent_runner";
99
- /**
100
- * Discovered via the discoverCapabilities RPC (web console or API).
101
- * The backend delegates to the agent-runner via a Temporal workflow.
102
- *
103
- * @generated from enum value: api = 4;
104
- */
105
- DiscoverySource[DiscoverySource["api"] = 4] = "api";
106
- })(DiscoverySource || (DiscoverySource = {}));
107
- /**
108
- * Describes the enum ai.stigmer.agentic.mcpserver.v1.DiscoverySource.
109
- */
110
- export const DiscoverySourceSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_mcpserver_v1_status, 1);
111
68
  //# sourceMappingURL=status_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"status_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/status_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,6HAA6H;AAC7H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AAEpG,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGrG;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,y4CAAy4C,EAAE,CAAC,0CAA0C,EAAE,2BAA2B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA0DjgD;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAqD9D;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC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AE/E,OAAO,EAAE,yCAAyC,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AAEpG,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGrG;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,qwCAAqwC,EAAE,CAAC,yCAAyC,EAAE,0CAA0C,EAAE,2BAA2B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA0Ex6C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AA6C9D;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAkC9D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AA2C9D;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA2C,aAAa,CACnG,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,CAAN,IAAY,eA0BX;AA1BD,WAAY,eAAe;IACzB;;;;;OAKG;IACH,qGAAgC,CAAA;IAEhC;;;;;;OAMG;IACH,uDAAS,CAAA;IAET;;;;;;OAMG;IACH,2DAAW,CAAA;AACb,CAAC,EA1BW,eAAe,KAAf,eAAe,QA0B1B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B,aAAa,CAC1E,QAAQ,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}
@@ -121,7 +121,13 @@ export declare enum IamPermission {
121
121
  *
122
122
  * @generated from enum value: login_to_back_office = 20;
123
123
  */
124
- login_to_back_office = 20
124
+ login_to_back_office = 20,
125
+ /**
126
+ * MCP server connect permission.
127
+ *
128
+ * @generated from enum value: can_connect = 22;
129
+ */
130
+ can_connect = 22
125
131
  }
126
132
  /**
127
133
  * Describes the enum ai.stigmer.iam.v1.IamPermission.
@@ -5,7 +5,7 @@ import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv1";
5
5
  /**
6
6
  * Describes the file ai/stigmer/iam/v1/enum.proto.
7
7
  */
8
- export const file_ai_stigmer_iam_v1_enum = /*@__PURE__*/ fileDesc("ChxhaS9zdGlnbWVyL2lhbS92MS9lbnVtLnByb3RvEhFhaS5zdGlnbWVyLmlhbS52MSqOBAoNSWFtUGVybWlzc2lvbhIPCgt1bnNwZWNpZmllZBAAEgwKCGNhbl92aWV3EAESDAoIY2FuX2VkaXQQAhIOCgpjYW5fZGVsZXRlEAMSFAoQY2FuX2dyYW50X2FjY2VzcxAEEhMKD2Nhbl92aWV3X2FjY2VzcxAFEhQKEGNhbl9jcmVhdGVfYWdlbnQQBhIXChNjYW5fY3JlYXRlX3dvcmtmbG93EAcSFgoSY2FuX2NyZWF0ZV9zZXNzaW9uEAgSFAoQY2FuX2NyZWF0ZV9za2lsbBAJEhYKEmNhbl9jcmVhdGVfcHJvamVjdBAKEhIKDmNhbl9jcmVhdGVfaWRwEAsSGgoWY2FuX2NyZWF0ZV9lbnZpcm9ubWVudBAMEh8KG2Nhbl9jcmVhdGVfaWRlbnRpdHlfYWNjb3VudBAVEhsKF2Nhbl9jcmVhdGVfZXhlY3V0aW9uX2luEA0SFwoTY2FuX2NyZWF0ZV9pbnN0YW5jZRAOEg8KC2Nhbl9leGVjdXRlEA8SFAoQY2FuX3JlYWRfc2VjcmV0cxAQEhUKEWNhbl9ib290c3RyYXBfaWFtEBESIAocY2FuX21hbmFnZV9pZGVudGl0eV9hY2NvdW50cxASEh8KG2Nhbl91cGRhdGVfZXhlY3V0aW9uX3N0YXR1cxATEhgKFGxvZ2luX3RvX2JhY2tfb2ZmaWNlEBQqU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lchADEgoKBnZpZXdlchAEYgZwcm90bzM");
9
9
  /**
10
10
  * IamPermission defines the permissions checked by the authorization
11
11
  * interceptor before an RPC handler executes.
@@ -126,6 +126,12 @@ export var IamPermission;
126
126
  * @generated from enum value: login_to_back_office = 20;
127
127
  */
128
128
  IamPermission[IamPermission["login_to_back_office"] = 20] = "login_to_back_office";
129
+ /**
130
+ * MCP server connect permission.
131
+ *
132
+ * @generated from enum value: can_connect = 22;
133
+ */
134
+ IamPermission[IamPermission["can_connect"] = 22] = "can_connect";
129
135
  })(IamPermission || (IamPermission = {}));
130
136
  /**
131
137
  * Describes the enum ai.stigmer.iam.v1.IamPermission.
@@ -1 +1 @@
1
- {"version":3,"file":"enum_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/iam/v1/enum_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,+FAA+F;AAC/F,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAY,aAAa,CAC/D,QAAQ,CAAC,83BAA83B,CAAC,CAAC;AAE34B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAN,IAAY,aA8HX;AA9HD,WAAY,aAAa;IACvB;;OAEG;IACH,+DAAe,CAAA;IAEf;;;;OAIG;IACH,yDAAY,CAAA;IAEZ;;OAEG;IACH,yDAAY,CAAA;IAEZ;;OAEG;IACH,6DAAc,CAAA;IAEd;;;;OAIG;IACH,yEAAoB,CAAA;IAEpB;;OAEG;IACH,uEAAmB,CAAA;IAEnB;;;;OAIG;IACH,yEAAoB,CAAA;IAEpB;;OAEG;IACH,+EAAuB,CAAA;IAEvB;;OAEG;IACH,6EAAsB,CAAA;IAEtB;;OAEG;IACH,yEAAoB,CAAA;IAEpB;;OAEG;IACH,8EAAuB,CAAA;IAEvB;;OAEG;IACH,sEAAmB,CAAA;IAEnB;;OAEG;IACH,sFAA2B,CAAA;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;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAqB,aAAa,CAC1D,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigmer/protos",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "description": "Generated TypeScript protobuf stubs for Stigmer APIs",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",