@stigmer/mcp-server 3.1.6 → 3.1.8
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/cli/mcp-server-stigmer.js +1 -1
- package/gen/agent.d.ts +92 -0
- package/gen/agent.d.ts.map +1 -1
- package/gen/agent.js +37 -2
- package/gen/agent.js.map +1 -1
- package/gen/mcpserver.d.ts +8 -0
- package/gen/mcpserver.d.ts.map +1 -1
- package/gen/mcpserver.js +3 -0
- package/gen/mcpserver.js.map +1 -1
- package/package.json +3 -3
- package/src/gen/agent.ts +36 -2
- package/src/gen/mcpserver.ts +2 -0
package/gen/agent.d.ts
CHANGED
|
@@ -142,6 +142,42 @@ export declare const AgentInputShape: {
|
|
|
142
142
|
optional?: boolean | undefined;
|
|
143
143
|
is_secret?: boolean | undefined;
|
|
144
144
|
}>>>>;
|
|
145
|
+
readonly sharing: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
146
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
allowed_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
+
messages: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
149
|
+
rate_limited: z.ZodOptional<z.ZodString>;
|
|
150
|
+
unavailable: z.ZodOptional<z.ZodString>;
|
|
151
|
+
conversation_ended: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
unavailable?: string | undefined;
|
|
154
|
+
rate_limited?: string | undefined;
|
|
155
|
+
conversation_ended?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
unavailable?: string | undefined;
|
|
158
|
+
rate_limited?: string | undefined;
|
|
159
|
+
conversation_ended?: string | undefined;
|
|
160
|
+
}>>>;
|
|
161
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
enabled?: boolean | undefined;
|
|
164
|
+
messages?: {
|
|
165
|
+
unavailable?: string | undefined;
|
|
166
|
+
rate_limited?: string | undefined;
|
|
167
|
+
conversation_ended?: string | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
audience?: string | undefined;
|
|
170
|
+
allowed_origins?: string[] | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
enabled?: boolean | undefined;
|
|
173
|
+
messages?: {
|
|
174
|
+
unavailable?: string | undefined;
|
|
175
|
+
rate_limited?: string | undefined;
|
|
176
|
+
conversation_ended?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
audience?: string | undefined;
|
|
179
|
+
allowed_origins?: string[] | undefined;
|
|
180
|
+
}>>>;
|
|
145
181
|
};
|
|
146
182
|
export declare const AgentInputSchema: z.ZodObject<{
|
|
147
183
|
readonly name: z.ZodString;
|
|
@@ -284,10 +320,56 @@ export declare const AgentInputSchema: z.ZodObject<{
|
|
|
284
320
|
optional?: boolean | undefined;
|
|
285
321
|
is_secret?: boolean | undefined;
|
|
286
322
|
}>>>>;
|
|
323
|
+
readonly sharing: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
324
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
allowed_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
326
|
+
messages: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
327
|
+
rate_limited: z.ZodOptional<z.ZodString>;
|
|
328
|
+
unavailable: z.ZodOptional<z.ZodString>;
|
|
329
|
+
conversation_ended: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
unavailable?: string | undefined;
|
|
332
|
+
rate_limited?: string | undefined;
|
|
333
|
+
conversation_ended?: string | undefined;
|
|
334
|
+
}, {
|
|
335
|
+
unavailable?: string | undefined;
|
|
336
|
+
rate_limited?: string | undefined;
|
|
337
|
+
conversation_ended?: string | undefined;
|
|
338
|
+
}>>>;
|
|
339
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
enabled?: boolean | undefined;
|
|
342
|
+
messages?: {
|
|
343
|
+
unavailable?: string | undefined;
|
|
344
|
+
rate_limited?: string | undefined;
|
|
345
|
+
conversation_ended?: string | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
audience?: string | undefined;
|
|
348
|
+
allowed_origins?: string[] | undefined;
|
|
349
|
+
}, {
|
|
350
|
+
enabled?: boolean | undefined;
|
|
351
|
+
messages?: {
|
|
352
|
+
unavailable?: string | undefined;
|
|
353
|
+
rate_limited?: string | undefined;
|
|
354
|
+
conversation_ended?: string | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
audience?: string | undefined;
|
|
357
|
+
allowed_origins?: string[] | undefined;
|
|
358
|
+
}>>>;
|
|
287
359
|
}, "strip", z.ZodTypeAny, {
|
|
288
360
|
name: string;
|
|
289
361
|
org: string;
|
|
290
362
|
visibility?: string | undefined;
|
|
363
|
+
sharing?: {
|
|
364
|
+
enabled?: boolean | undefined;
|
|
365
|
+
messages?: {
|
|
366
|
+
unavailable?: string | undefined;
|
|
367
|
+
rate_limited?: string | undefined;
|
|
368
|
+
conversation_ended?: string | undefined;
|
|
369
|
+
} | undefined;
|
|
370
|
+
audience?: string | undefined;
|
|
371
|
+
allowed_origins?: string[] | undefined;
|
|
372
|
+
} | undefined;
|
|
291
373
|
slug?: string | undefined;
|
|
292
374
|
description?: string | undefined;
|
|
293
375
|
instructions?: string | undefined;
|
|
@@ -335,6 +417,16 @@ export declare const AgentInputSchema: z.ZodObject<{
|
|
|
335
417
|
name: string;
|
|
336
418
|
org: string;
|
|
337
419
|
visibility?: string | undefined;
|
|
420
|
+
sharing?: {
|
|
421
|
+
enabled?: boolean | undefined;
|
|
422
|
+
messages?: {
|
|
423
|
+
unavailable?: string | undefined;
|
|
424
|
+
rate_limited?: string | undefined;
|
|
425
|
+
conversation_ended?: string | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
audience?: string | undefined;
|
|
428
|
+
allowed_origins?: string[] | undefined;
|
|
429
|
+
} | undefined;
|
|
338
430
|
slug?: string | undefined;
|
|
339
431
|
description?: string | undefined;
|
|
340
432
|
instructions?: string | undefined;
|
package/gen/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/gen/agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAM7F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6NAA6N;AAC7N,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/gen/agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAM7F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6NAA6N;AAC7N,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAelB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAoE1D,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CA0B1D"}
|
package/gen/agent.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Flattened apply-input zod schema + toProto bridge for the Agent resource.
|
|
4
4
|
// Source proto package: ai.stigmer.agentic.agent.v1
|
|
5
|
-
import { generateSlug, visibilityFromString } from "./apply-runtime.js";
|
|
5
|
+
import { generateSlug, visibilityFromString, enumFromString } from "./apply-runtime.js";
|
|
6
6
|
import { create } from "@bufbuild/protobuf";
|
|
7
7
|
import { AgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
8
|
-
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
8
|
+
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema, AgentSharingMessagesSchema, AgentSharingSchema, AgentSharingAudience } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
9
9
|
import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
|
|
10
10
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
11
11
|
import { ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
@@ -26,6 +26,7 @@ export const AgentInputShape = {
|
|
|
26
26
|
skill_refs: z.array(z.lazy(() => SkillRefInputSchema)).optional().describe("Skill resources providing additional knowledge to the agent."),
|
|
27
27
|
sub_agents: z.array(z.lazy(() => SubAgentInputSchema)).optional().describe("Sub-agents that can be delegated to. Sub-agents can access a subset of the parent's MCP servers and tools."),
|
|
28
28
|
env: z.record(z.lazy(() => EnvVarDeclarationInputSchema)).optional().describe("Environment variable declarations for this agent. Keys are variable names; values describe their metadata and optionality."),
|
|
29
|
+
sharing: z.lazy(() => AgentSharingInputSchema).optional().describe("Sharing configuration for the agent's hosted chat experience. Controls who can chat with the running agent over its hosted link: anyone with the link (public audience) or signed-in members of the owning organization (org audience). This is a distinct consent from metadata.visibility: visibility governs who can READ the agent blueprint (marketplace), while sharing governs who can CHAT with the agent runtime. Conversations over a shared link consume the owning organization's credits, so enabling sharing is an explicit, billing-affecting decision. Unset is equivalent to sharing disabled. @internal Declarative spec semantics apply: update/apply replace this field like any other spec field, so a manifest that omits sharing revokes an active share (fails closed). Console and CLI toggle it via the targeted updateSharing RPC instead of a full-resource write. Enforcement is app-level in the getSharedProfile handler — sharing deliberately writes NO FGA visibility tuples, because a public wildcard viewer tuple would expose the full blueprint (instructions included) to any authenticated account via getByReference, conflating the two consents."),
|
|
29
30
|
};
|
|
30
31
|
export const AgentInputSchema = z.object(AgentInputShape);
|
|
31
32
|
const McpServerRefInputSchema = z.object({
|
|
@@ -64,6 +65,17 @@ const EnvVarDeclarationInputSchema = z.object({
|
|
|
64
65
|
description: z.string().optional().describe("Human-readable description shown in the UI credential form. Should explain what the variable is used for and where to obtain it."),
|
|
65
66
|
optional: z.boolean().optional().describe("Whether this variable is optional. @internal When false (default): the execution pipeline rejects a run if this variable is missing from the user's environment. When true: a missing value is acceptable (the MCP server or agent degrades gracefully without it)."),
|
|
66
67
|
});
|
|
68
|
+
const AgentSharingMessagesInputSchema = z.object({
|
|
69
|
+
rate_limited: z.string().optional().describe("Shown when a visitor or the org exceeds the message rate limit."),
|
|
70
|
+
unavailable: z.string().optional().describe("Shown when the org's credits are exhausted (sharing fails closed)."),
|
|
71
|
+
conversation_ended: z.string().optional().describe("Shown when a conversation hits its turn limit or inactivity timeout."),
|
|
72
|
+
});
|
|
73
|
+
const AgentSharingInputSchema = z.object({
|
|
74
|
+
enabled: z.boolean().optional().describe("Whether hosted-chat access for the configured audience is enabled."),
|
|
75
|
+
allowed_origins: z.array(z.string()).optional().describe("Origins permitted to embed this agent's chat widget. Each entry is an exact web origin (scheme://host[:port]) with no path, for example 'https://docs.example.com'. An empty list allows embedding from any site; listing origins restricts embedding to those sites. The first-party hosted chat page is always exempt. @internal Enforced since T04 against the embed_origin the widget reports at mintGuestToken time (stamped into the guest JWT as a claim) and re-validated against this live list by the guest create-time gate (SharedSessionBlueprintAccess) on every session/execution create — the same gate that re-checks sharing.enabled, so revocation latency is identical (immediate). Unframed hosted-page visitors report no origin and are exempt by construction. Exact origins only — loosening to wildcards later is a non-breaking change, tightening would not be."),
|
|
76
|
+
messages: z.lazy(() => AgentSharingMessagesInputSchema).optional().describe("Owner-customizable copy shown to visitors when a launch-gate limit refuses their message. Unset fields fall back to platform defaults. @internal Resolved server-side at the refusal point and carried in the gRPC status description — deliberately NOT surfaced on SharedAgentProfile and NOT mapped client-side, so the copy reaches every client (web, embed, CLI) through the existing error-message path."),
|
|
77
|
+
audience: z.string().optional().describe("Who can chat with the shared agent. Unspecified means public (anyone with the link), so pre-existing shares keep their behavior. To keep an agent org-only, audience must be present in every apply: update/apply replace spec.sharing wholesale, so a manifest that sets enabled without audience resets the share to public. @internal Org audience is enforced cloud-side only (org membership is a multi-tenant IAM concept): the guest mint and public profile handlers treat audience=org as NOT_FOUND, and the create-time blueprint gate admits authenticated org members via an app-level FGA member check (no visibility tuples written — same posture as the sharing flag). The OSS single-user server stores and echoes the field. Allowed values: agent_sharing_audience_public, agent_sharing_audience_org."),
|
|
78
|
+
});
|
|
67
79
|
/** Build the fully-formed Agent proto from the flat MCP apply input. */
|
|
68
80
|
export function agentInputToProto(input) {
|
|
69
81
|
const slug = input.slug && input.slug.length > 0 ? input.slug : generateSlug(input.name);
|
|
@@ -84,6 +96,8 @@ export function agentInputToProto(input) {
|
|
|
84
96
|
for (const [k, v] of Object.entries(input.env))
|
|
85
97
|
spec.env[k] = envVarDeclarationInputToProto(v);
|
|
86
98
|
}
|
|
99
|
+
if (input.sharing !== undefined)
|
|
100
|
+
spec.sharing = agentSharingInputToProto(input.sharing);
|
|
87
101
|
return Object.assign(create(AgentSchema), {
|
|
88
102
|
apiVersion: "agentic.stigmer.ai/v1",
|
|
89
103
|
kind: "Agent",
|
|
@@ -167,4 +181,25 @@ function envVarDeclarationInputToProto(input) {
|
|
|
167
181
|
result.optional = input.optional;
|
|
168
182
|
return result;
|
|
169
183
|
}
|
|
184
|
+
function agentSharingMessagesInputToProto(input) {
|
|
185
|
+
const result = create(AgentSharingMessagesSchema);
|
|
186
|
+
if (input.rate_limited !== undefined)
|
|
187
|
+
result.rateLimited = input.rate_limited;
|
|
188
|
+
if (input.unavailable !== undefined)
|
|
189
|
+
result.unavailable = input.unavailable;
|
|
190
|
+
if (input.conversation_ended !== undefined)
|
|
191
|
+
result.conversationEnded = input.conversation_ended;
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
function agentSharingInputToProto(input) {
|
|
195
|
+
const result = create(AgentSharingSchema);
|
|
196
|
+
if (input.enabled !== undefined)
|
|
197
|
+
result.enabled = input.enabled;
|
|
198
|
+
if (input.allowed_origins !== undefined)
|
|
199
|
+
result.allowedOrigins = input.allowed_origins;
|
|
200
|
+
if (input.messages !== undefined)
|
|
201
|
+
result.messages = agentSharingMessagesInputToProto(input.messages);
|
|
202
|
+
result.audience = enumFromString(AgentSharingAudience, input.audience);
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
170
205
|
//# sourceMappingURL=agent.js.map
|
package/gen/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/gen/agent.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,4EAA4E;AAC5E,oDAAoD;AAEpD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,C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AE,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;IAC5E,IAAI,KAAK,CAAC,kBAAkB,KAAK,SAAS;QAAE,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC,kBAAkB,CAAC;IAChG,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,wBAAwB,CAAC,KAAwB;IACxD,MAAM,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC1C,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS;QAAE,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IAChE,IAAI,KAAK,CAAC,eAAe,KAAK,SAAS;QAAE,MAAM,CAAC,cAAc,GAAG,KAAK,CAAC,eAAe,CAAC;IACvF,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;QAAE,MAAM,CAAC,QAAQ,GAAG,gCAAgC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrG,MAAM,CAAC,QAAQ,GAAG,cAAc,CAAC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAyB,CAAC;IAC/F,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/gen/mcpserver.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export declare const McpServerInputShape: {
|
|
|
83
83
|
token_lifetime_hint: z.ZodOptional<z.ZodString>;
|
|
84
84
|
scope_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
85
|
discovery_url: z.ZodOptional<z.ZodString>;
|
|
86
|
+
oauth_only: z.ZodOptional<z.ZodBoolean>;
|
|
86
87
|
}, "strip", z.ZodTypeAny, {
|
|
87
88
|
oauth_app_ref?: {
|
|
88
89
|
slug: string;
|
|
@@ -92,6 +93,7 @@ export declare const McpServerInputShape: {
|
|
|
92
93
|
token_lifetime_hint?: string | undefined;
|
|
93
94
|
scope_hints?: string[] | undefined;
|
|
94
95
|
discovery_url?: string | undefined;
|
|
96
|
+
oauth_only?: boolean | undefined;
|
|
95
97
|
}, {
|
|
96
98
|
oauth_app_ref?: {
|
|
97
99
|
slug: string;
|
|
@@ -101,6 +103,7 @@ export declare const McpServerInputShape: {
|
|
|
101
103
|
token_lifetime_hint?: string | undefined;
|
|
102
104
|
scope_hints?: string[] | undefined;
|
|
103
105
|
discovery_url?: string | undefined;
|
|
106
|
+
oauth_only?: boolean | undefined;
|
|
104
107
|
}>>>;
|
|
105
108
|
};
|
|
106
109
|
export declare const McpServerInputSchema: z.ZodObject<{
|
|
@@ -185,6 +188,7 @@ export declare const McpServerInputSchema: z.ZodObject<{
|
|
|
185
188
|
token_lifetime_hint: z.ZodOptional<z.ZodString>;
|
|
186
189
|
scope_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
187
190
|
discovery_url: z.ZodOptional<z.ZodString>;
|
|
191
|
+
oauth_only: z.ZodOptional<z.ZodBoolean>;
|
|
188
192
|
}, "strip", z.ZodTypeAny, {
|
|
189
193
|
oauth_app_ref?: {
|
|
190
194
|
slug: string;
|
|
@@ -194,6 +198,7 @@ export declare const McpServerInputSchema: z.ZodObject<{
|
|
|
194
198
|
token_lifetime_hint?: string | undefined;
|
|
195
199
|
scope_hints?: string[] | undefined;
|
|
196
200
|
discovery_url?: string | undefined;
|
|
201
|
+
oauth_only?: boolean | undefined;
|
|
197
202
|
}, {
|
|
198
203
|
oauth_app_ref?: {
|
|
199
204
|
slug: string;
|
|
@@ -203,6 +208,7 @@ export declare const McpServerInputSchema: z.ZodObject<{
|
|
|
203
208
|
token_lifetime_hint?: string | undefined;
|
|
204
209
|
scope_hints?: string[] | undefined;
|
|
205
210
|
discovery_url?: string | undefined;
|
|
211
|
+
oauth_only?: boolean | undefined;
|
|
206
212
|
}>>>;
|
|
207
213
|
}, "strip", z.ZodTypeAny, {
|
|
208
214
|
name: string;
|
|
@@ -237,6 +243,7 @@ export declare const McpServerInputSchema: z.ZodObject<{
|
|
|
237
243
|
token_lifetime_hint?: string | undefined;
|
|
238
244
|
scope_hints?: string[] | undefined;
|
|
239
245
|
discovery_url?: string | undefined;
|
|
246
|
+
oauth_only?: boolean | undefined;
|
|
240
247
|
} | undefined;
|
|
241
248
|
icon_url?: string | undefined;
|
|
242
249
|
default_enabled_tools?: string[] | undefined;
|
|
@@ -280,6 +287,7 @@ export declare const McpServerInputSchema: z.ZodObject<{
|
|
|
280
287
|
token_lifetime_hint?: string | undefined;
|
|
281
288
|
scope_hints?: string[] | undefined;
|
|
282
289
|
discovery_url?: string | undefined;
|
|
290
|
+
oauth_only?: boolean | undefined;
|
|
283
291
|
} | undefined;
|
|
284
292
|
icon_url?: string | undefined;
|
|
285
293
|
default_enabled_tools?: string[] | undefined;
|
package/gen/mcpserver.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpserver.d.ts","sourceRoot":"","sources":["../../src/gen/mcpserver.ts"],"names":[],"mappings":"AAQA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,wDAAwD,CAAC;AAKzG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,sOAAsO;AACtO,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"mcpserver.d.ts","sourceRoot":"","sources":["../../src/gen/mcpserver.ts"],"names":[],"mappings":"AAQA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,wDAAwD,CAAC;AAKzG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,sOAAsO;AACtO,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBtB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAgDlE,4EAA4E;AAC5E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CA4BtE"}
|
package/gen/mcpserver.js
CHANGED
|
@@ -62,6 +62,7 @@ const McpServerAuthInputSchema = z.object({
|
|
|
62
62
|
token_lifetime_hint: z.string().optional().describe("Informational hint about expected token lifetime for UI display. Helps users understand when re-authentication may be needed. Empty means unknown. Examples: '1h', '2h', '90d', 'never'."),
|
|
63
63
|
scope_hints: z.array(z.string()).optional().describe("Optional scope hints for UI display before the OAuth flow starts. For DCR servers: shown to the user since actual scopes are discovered at connect time during authorization server metadata retrieval. For vendor OAuth: informational (scopes are defined on the OAuthApp)."),
|
|
64
64
|
discovery_url: z.string().optional().describe("Optional URL for OAuth authorization server discovery on stdio servers. HTTP servers do not need this: the platform derives the discovery endpoint from http.url (fetching /.well-known/oauth-authorization-server relative to the server URL). Stdio servers have no URL, so DCR discovery has nothing to derive from. Set this field to the base URL of the vendor's OAuth authorization server to enable DCR for a stdio-based MCP server. Resolution priority: 1. discovery_url (if set — used for both stdio and HTTP) 2. http.url (default for HTTP servers) Ignored when oauth_app_ref is set (vendor OAuth uses OAuthApp endpoints directly, no discovery needed)."),
|
|
65
|
+
oauth_only: z.boolean().optional().describe("Whether the server's endpoint rejects manually-entered static tokens. Some hosted MCP endpoints (e.g. Notion, Monday) only accept an access token obtained through their OAuth flow — a personal API token or PAT pasted into the credential form is rejected with a 401. For these servers OAuth is not merely the preferred path, it is the only path that works. When true, the connect surfaces present OAuth as the sole credential option and suppress the 'enter token manually' affordance, so users are never sent down a path that cannot succeed. When false (the default), a static token remains a valid alternative — appropriate for API-key servers (e.g. Tavily) and for vendor endpoints that also accept a PAT (e.g. GitHub). This is a structural fact about the endpoint, not observable from the spec shape alone (an OAuth-only server and a PAT-capable server can have identical auth blocks), so it must be declared explicitly."),
|
|
65
66
|
});
|
|
66
67
|
/** Build the fully-formed McpServer proto from the flat MCP apply input. */
|
|
67
68
|
export function mcpServerInputToProto(input) {
|
|
@@ -164,6 +165,8 @@ function mcpServerAuthInputToProto(input) {
|
|
|
164
165
|
result.scopeHints = input.scope_hints;
|
|
165
166
|
if (input.discovery_url !== undefined)
|
|
166
167
|
result.discoveryUrl = input.discovery_url;
|
|
168
|
+
if (input.oauth_only !== undefined)
|
|
169
|
+
result.oauthOnly = input.oauth_only;
|
|
167
170
|
return result;
|
|
168
171
|
}
|
|
169
172
|
//# sourceMappingURL=mcpserver.js.map
|
package/gen/mcpserver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpserver.js","sourceRoot":"","sources":["../../src/gen/mcpserver.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,gFAAgF;AAChF,wDAAwD;AAExD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,eAAe,EAAkB,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC9L,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAClG,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,sOAAsO;AACtO,MAA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,qBAAqB,CAAC;IACxG,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAuB;IACtD,OAAO,MAAM,CAAC,0BAA0B,EAAE;QACxC,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,IAAI,EAAE,eAAe,CAAC,SAAS;KAChC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,yBAAyB,CAAC,KAAyB;IAC1D,MAAM,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3C,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS;QAAE,MAAM,CAAC,WAAW,GAAG,uBAAuB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACzG,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS;QAAE,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC;IACnF,IAAI,KAAK,CAAC,mBAAmB,KAAK,SAAS;QAAE,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC,mBAAmB,CAAC;IAClG,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS;QAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC;IAC3E,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS;QAAE,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC;IACjF,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS;QAAE,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC;IACxE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/mcp-server",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"description": "Model Context Protocol server for the Stigmer platform — exposes Stigmer agents, skills, MCP servers, and workflows as MCP tools and resources",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@connectrpc/connect": "^2.0.0",
|
|
36
36
|
"@connectrpc/connect-node": "^2.1.1",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
38
|
-
"@stigmer/protos": "3.1.
|
|
39
|
-
"@stigmer/sdk": "3.1.
|
|
38
|
+
"@stigmer/protos": "3.1.8",
|
|
39
|
+
"@stigmer/sdk": "3.1.8",
|
|
40
40
|
"yaml": "^2.8.2",
|
|
41
41
|
"zod": "^3.25.0"
|
|
42
42
|
}
|
package/src/gen/agent.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// Flattened apply-input zod schema + toProto bridge for the Agent resource.
|
|
4
4
|
// Source proto package: ai.stigmer.agentic.agent.v1
|
|
5
5
|
|
|
6
|
-
import { generateSlug, visibilityFromString } from "./apply-runtime.js";
|
|
6
|
+
import { generateSlug, visibilityFromString, enumFromString } from "./apply-runtime.js";
|
|
7
7
|
import { create } from "@bufbuild/protobuf";
|
|
8
8
|
import { AgentSchema, type Agent } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
9
|
-
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
9
|
+
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema, AgentSharingMessagesSchema, AgentSharingSchema, AgentSharingAudience } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
10
10
|
import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
|
|
11
11
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
12
12
|
import { ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
@@ -28,6 +28,7 @@ export const AgentInputShape = {
|
|
|
28
28
|
skill_refs: z.array(z.lazy(() => SkillRefInputSchema)).optional().describe("Skill resources providing additional knowledge to the agent."),
|
|
29
29
|
sub_agents: z.array(z.lazy(() => SubAgentInputSchema)).optional().describe("Sub-agents that can be delegated to. Sub-agents can access a subset of the parent's MCP servers and tools."),
|
|
30
30
|
env: z.record(z.lazy(() => EnvVarDeclarationInputSchema)).optional().describe("Environment variable declarations for this agent. Keys are variable names; values describe their metadata and optionality."),
|
|
31
|
+
sharing: z.lazy(() => AgentSharingInputSchema).optional().describe("Sharing configuration for the agent's hosted chat experience. Controls who can chat with the running agent over its hosted link: anyone with the link (public audience) or signed-in members of the owning organization (org audience). This is a distinct consent from metadata.visibility: visibility governs who can READ the agent blueprint (marketplace), while sharing governs who can CHAT with the agent runtime. Conversations over a shared link consume the owning organization's credits, so enabling sharing is an explicit, billing-affecting decision. Unset is equivalent to sharing disabled. @internal Declarative spec semantics apply: update/apply replace this field like any other spec field, so a manifest that omits sharing revokes an active share (fails closed). Console and CLI toggle it via the targeted updateSharing RPC instead of a full-resource write. Enforcement is app-level in the getSharedProfile handler — sharing deliberately writes NO FGA visibility tuples, because a public wildcard viewer tuple would expose the full blueprint (instructions included) to any authenticated account via getByReference, conflating the two consents."),
|
|
31
32
|
} as const;
|
|
32
33
|
|
|
33
34
|
export const AgentInputSchema = z.object(AgentInputShape);
|
|
@@ -83,6 +84,21 @@ const EnvVarDeclarationInputSchema = z.object({
|
|
|
83
84
|
});
|
|
84
85
|
type EnvVarDeclarationInput = z.infer<typeof EnvVarDeclarationInputSchema>;
|
|
85
86
|
|
|
87
|
+
const AgentSharingMessagesInputSchema = z.object({
|
|
88
|
+
rate_limited: z.string().optional().describe("Shown when a visitor or the org exceeds the message rate limit."),
|
|
89
|
+
unavailable: z.string().optional().describe("Shown when the org's credits are exhausted (sharing fails closed)."),
|
|
90
|
+
conversation_ended: z.string().optional().describe("Shown when a conversation hits its turn limit or inactivity timeout."),
|
|
91
|
+
});
|
|
92
|
+
type AgentSharingMessagesInput = z.infer<typeof AgentSharingMessagesInputSchema>;
|
|
93
|
+
|
|
94
|
+
const AgentSharingInputSchema = z.object({
|
|
95
|
+
enabled: z.boolean().optional().describe("Whether hosted-chat access for the configured audience is enabled."),
|
|
96
|
+
allowed_origins: z.array(z.string()).optional().describe("Origins permitted to embed this agent's chat widget. Each entry is an exact web origin (scheme://host[:port]) with no path, for example 'https://docs.example.com'. An empty list allows embedding from any site; listing origins restricts embedding to those sites. The first-party hosted chat page is always exempt. @internal Enforced since T04 against the embed_origin the widget reports at mintGuestToken time (stamped into the guest JWT as a claim) and re-validated against this live list by the guest create-time gate (SharedSessionBlueprintAccess) on every session/execution create — the same gate that re-checks sharing.enabled, so revocation latency is identical (immediate). Unframed hosted-page visitors report no origin and are exempt by construction. Exact origins only — loosening to wildcards later is a non-breaking change, tightening would not be."),
|
|
97
|
+
messages: z.lazy(() => AgentSharingMessagesInputSchema).optional().describe("Owner-customizable copy shown to visitors when a launch-gate limit refuses their message. Unset fields fall back to platform defaults. @internal Resolved server-side at the refusal point and carried in the gRPC status description — deliberately NOT surfaced on SharedAgentProfile and NOT mapped client-side, so the copy reaches every client (web, embed, CLI) through the existing error-message path."),
|
|
98
|
+
audience: z.string().optional().describe("Who can chat with the shared agent. Unspecified means public (anyone with the link), so pre-existing shares keep their behavior. To keep an agent org-only, audience must be present in every apply: update/apply replace spec.sharing wholesale, so a manifest that sets enabled without audience resets the share to public. @internal Org audience is enforced cloud-side only (org membership is a multi-tenant IAM concept): the guest mint and public profile handlers treat audience=org as NOT_FOUND, and the create-time blueprint gate admits authenticated org members via an app-level FGA member check (no visibility tuples written — same posture as the sharing flag). The OSS single-user server stores and echoes the field. Allowed values: agent_sharing_audience_public, agent_sharing_audience_org."),
|
|
99
|
+
});
|
|
100
|
+
type AgentSharingInput = z.infer<typeof AgentSharingInputSchema>;
|
|
101
|
+
|
|
86
102
|
|
|
87
103
|
/** Build the fully-formed Agent proto from the flat MCP apply input. */
|
|
88
104
|
export function agentInputToProto(input: AgentInput): Agent {
|
|
@@ -97,6 +113,7 @@ export function agentInputToProto(input: AgentInput): Agent {
|
|
|
97
113
|
if (input.env !== undefined) {
|
|
98
114
|
for (const [k, v] of Object.entries(input.env)) spec.env[k] = envVarDeclarationInputToProto(v);
|
|
99
115
|
}
|
|
116
|
+
if (input.sharing !== undefined) spec.sharing = agentSharingInputToProto(input.sharing);
|
|
100
117
|
return Object.assign(create(AgentSchema), {
|
|
101
118
|
apiVersion: "agentic.stigmer.ai/v1",
|
|
102
119
|
kind: "Agent",
|
|
@@ -171,3 +188,20 @@ function envVarDeclarationInputToProto(input: EnvVarDeclarationInput) {
|
|
|
171
188
|
return result;
|
|
172
189
|
}
|
|
173
190
|
|
|
191
|
+
function agentSharingMessagesInputToProto(input: AgentSharingMessagesInput) {
|
|
192
|
+
const result = create(AgentSharingMessagesSchema);
|
|
193
|
+
if (input.rate_limited !== undefined) result.rateLimited = input.rate_limited;
|
|
194
|
+
if (input.unavailable !== undefined) result.unavailable = input.unavailable;
|
|
195
|
+
if (input.conversation_ended !== undefined) result.conversationEnded = input.conversation_ended;
|
|
196
|
+
return result;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function agentSharingInputToProto(input: AgentSharingInput) {
|
|
200
|
+
const result = create(AgentSharingSchema);
|
|
201
|
+
if (input.enabled !== undefined) result.enabled = input.enabled;
|
|
202
|
+
if (input.allowed_origins !== undefined) result.allowedOrigins = input.allowed_origins;
|
|
203
|
+
if (input.messages !== undefined) result.messages = agentSharingMessagesInputToProto(input.messages);
|
|
204
|
+
result.audience = enumFromString(AgentSharingAudience, input.audience) as AgentSharingAudience;
|
|
205
|
+
return result;
|
|
206
|
+
}
|
|
207
|
+
|
package/src/gen/mcpserver.ts
CHANGED
|
@@ -77,6 +77,7 @@ const McpServerAuthInputSchema = z.object({
|
|
|
77
77
|
token_lifetime_hint: z.string().optional().describe("Informational hint about expected token lifetime for UI display. Helps users understand when re-authentication may be needed. Empty means unknown. Examples: '1h', '2h', '90d', 'never'."),
|
|
78
78
|
scope_hints: z.array(z.string()).optional().describe("Optional scope hints for UI display before the OAuth flow starts. For DCR servers: shown to the user since actual scopes are discovered at connect time during authorization server metadata retrieval. For vendor OAuth: informational (scopes are defined on the OAuthApp)."),
|
|
79
79
|
discovery_url: z.string().optional().describe("Optional URL for OAuth authorization server discovery on stdio servers. HTTP servers do not need this: the platform derives the discovery endpoint from http.url (fetching /.well-known/oauth-authorization-server relative to the server URL). Stdio servers have no URL, so DCR discovery has nothing to derive from. Set this field to the base URL of the vendor's OAuth authorization server to enable DCR for a stdio-based MCP server. Resolution priority: 1. discovery_url (if set — used for both stdio and HTTP) 2. http.url (default for HTTP servers) Ignored when oauth_app_ref is set (vendor OAuth uses OAuthApp endpoints directly, no discovery needed)."),
|
|
80
|
+
oauth_only: z.boolean().optional().describe("Whether the server's endpoint rejects manually-entered static tokens. Some hosted MCP endpoints (e.g. Notion, Monday) only accept an access token obtained through their OAuth flow — a personal API token or PAT pasted into the credential form is rejected with a 401. For these servers OAuth is not merely the preferred path, it is the only path that works. When true, the connect surfaces present OAuth as the sole credential option and suppress the 'enter token manually' affordance, so users are never sent down a path that cannot succeed. When false (the default), a static token remains a valid alternative — appropriate for API-key servers (e.g. Tavily) and for vendor endpoints that also accept a PAT (e.g. GitHub). This is a structural fact about the endpoint, not observable from the spec shape alone (an OAuth-only server and a PAT-capable server can have identical auth blocks), so it must be declared explicitly."),
|
|
80
81
|
});
|
|
81
82
|
type McpServerAuthInput = z.infer<typeof McpServerAuthInputSchema>;
|
|
82
83
|
|
|
@@ -160,6 +161,7 @@ function mcpServerAuthInputToProto(input: McpServerAuthInput) {
|
|
|
160
161
|
if (input.token_lifetime_hint !== undefined) result.tokenLifetimeHint = input.token_lifetime_hint;
|
|
161
162
|
if (input.scope_hints !== undefined) result.scopeHints = input.scope_hints;
|
|
162
163
|
if (input.discovery_url !== undefined) result.discoveryUrl = input.discovery_url;
|
|
164
|
+
if (input.oauth_only !== undefined) result.oauthOnly = input.oauth_only;
|
|
163
165
|
return result;
|
|
164
166
|
}
|
|
165
167
|
|