@alpic-ai/api 0.0.0-staging.gccf54e6 → 0.0.0-staging.gcd4957c

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.
Files changed (2) hide show
  1. package/dist/index.mjs +369 -23
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,6 +1,174 @@
1
1
  import { z } from "zod";
2
+ import * as z$1 from "zod/v4";
2
3
  import { oc } from "@orpc/contract";
3
4
  import ms from "ms";
5
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_@cfworker+json-schema@4.1.1_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
6
+ /**
7
+ * Reusable URL validation that disallows javascript: scheme
8
+ */
9
+ const SafeUrlSchema = z$1.url().superRefine((val, ctx) => {
10
+ if (!URL.canParse(val)) {
11
+ ctx.addIssue({
12
+ code: z$1.ZodIssueCode.custom,
13
+ message: "URL must be parseable",
14
+ fatal: true
15
+ });
16
+ return z$1.NEVER;
17
+ }
18
+ }).refine((url) => {
19
+ const u = new URL(url);
20
+ return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
21
+ }, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
22
+ /**
23
+ * RFC 9728 OAuth Protected Resource Metadata
24
+ */
25
+ const OAuthProtectedResourceMetadataSchema = z$1.looseObject({
26
+ resource: z$1.string().url(),
27
+ authorization_servers: z$1.array(SafeUrlSchema).optional(),
28
+ jwks_uri: z$1.string().url().optional(),
29
+ scopes_supported: z$1.array(z$1.string()).optional(),
30
+ bearer_methods_supported: z$1.array(z$1.string()).optional(),
31
+ resource_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
32
+ resource_name: z$1.string().optional(),
33
+ resource_documentation: z$1.string().optional(),
34
+ resource_policy_uri: z$1.string().url().optional(),
35
+ resource_tos_uri: z$1.string().url().optional(),
36
+ tls_client_certificate_bound_access_tokens: z$1.boolean().optional(),
37
+ authorization_details_types_supported: z$1.array(z$1.string()).optional(),
38
+ dpop_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
39
+ dpop_bound_access_tokens_required: z$1.boolean().optional()
40
+ });
41
+ /**
42
+ * RFC 8414 OAuth 2.0 Authorization Server Metadata
43
+ */
44
+ const OAuthMetadataSchema = z$1.looseObject({
45
+ issuer: z$1.string(),
46
+ authorization_endpoint: SafeUrlSchema,
47
+ token_endpoint: SafeUrlSchema,
48
+ registration_endpoint: SafeUrlSchema.optional(),
49
+ scopes_supported: z$1.array(z$1.string()).optional(),
50
+ response_types_supported: z$1.array(z$1.string()),
51
+ response_modes_supported: z$1.array(z$1.string()).optional(),
52
+ grant_types_supported: z$1.array(z$1.string()).optional(),
53
+ token_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
54
+ token_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
55
+ service_documentation: SafeUrlSchema.optional(),
56
+ revocation_endpoint: SafeUrlSchema.optional(),
57
+ revocation_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
58
+ revocation_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
59
+ introspection_endpoint: z$1.string().optional(),
60
+ introspection_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
61
+ introspection_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
62
+ code_challenge_methods_supported: z$1.array(z$1.string()).optional(),
63
+ client_id_metadata_document_supported: z$1.boolean().optional()
64
+ });
65
+ /**
66
+ * OpenID Connect Discovery 1.0 Provider Metadata
67
+ * see: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
68
+ */
69
+ const OpenIdProviderMetadataSchema = z$1.looseObject({
70
+ issuer: z$1.string(),
71
+ authorization_endpoint: SafeUrlSchema,
72
+ token_endpoint: SafeUrlSchema,
73
+ userinfo_endpoint: SafeUrlSchema.optional(),
74
+ jwks_uri: SafeUrlSchema,
75
+ registration_endpoint: SafeUrlSchema.optional(),
76
+ scopes_supported: z$1.array(z$1.string()).optional(),
77
+ response_types_supported: z$1.array(z$1.string()),
78
+ response_modes_supported: z$1.array(z$1.string()).optional(),
79
+ grant_types_supported: z$1.array(z$1.string()).optional(),
80
+ acr_values_supported: z$1.array(z$1.string()).optional(),
81
+ subject_types_supported: z$1.array(z$1.string()),
82
+ id_token_signing_alg_values_supported: z$1.array(z$1.string()),
83
+ id_token_encryption_alg_values_supported: z$1.array(z$1.string()).optional(),
84
+ id_token_encryption_enc_values_supported: z$1.array(z$1.string()).optional(),
85
+ userinfo_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
86
+ userinfo_encryption_alg_values_supported: z$1.array(z$1.string()).optional(),
87
+ userinfo_encryption_enc_values_supported: z$1.array(z$1.string()).optional(),
88
+ request_object_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
89
+ request_object_encryption_alg_values_supported: z$1.array(z$1.string()).optional(),
90
+ request_object_encryption_enc_values_supported: z$1.array(z$1.string()).optional(),
91
+ token_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
92
+ token_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
93
+ display_values_supported: z$1.array(z$1.string()).optional(),
94
+ claim_types_supported: z$1.array(z$1.string()).optional(),
95
+ claims_supported: z$1.array(z$1.string()).optional(),
96
+ service_documentation: z$1.string().optional(),
97
+ claims_locales_supported: z$1.array(z$1.string()).optional(),
98
+ ui_locales_supported: z$1.array(z$1.string()).optional(),
99
+ claims_parameter_supported: z$1.boolean().optional(),
100
+ request_parameter_supported: z$1.boolean().optional(),
101
+ request_uri_parameter_supported: z$1.boolean().optional(),
102
+ require_request_uri_registration: z$1.boolean().optional(),
103
+ op_policy_uri: SafeUrlSchema.optional(),
104
+ op_tos_uri: SafeUrlSchema.optional(),
105
+ client_id_metadata_document_supported: z$1.boolean().optional()
106
+ });
107
+ /**
108
+ * OpenID Connect Discovery metadata that may include OAuth 2.0 fields
109
+ * This schema represents the real-world scenario where OIDC providers
110
+ * return a mix of OpenID Connect and OAuth 2.0 metadata fields
111
+ */
112
+ const OpenIdProviderDiscoveryMetadataSchema = z$1.object({
113
+ ...OpenIdProviderMetadataSchema.shape,
114
+ ...OAuthMetadataSchema.pick({ code_challenge_methods_supported: true }).shape
115
+ });
116
+ z$1.object({
117
+ access_token: z$1.string(),
118
+ id_token: z$1.string().optional(),
119
+ token_type: z$1.string(),
120
+ expires_in: z$1.coerce.number().optional(),
121
+ scope: z$1.string().optional(),
122
+ refresh_token: z$1.string().optional()
123
+ }).strip();
124
+ z$1.object({
125
+ error: z$1.string(),
126
+ error_description: z$1.string().optional(),
127
+ error_uri: z$1.string().optional()
128
+ });
129
+ /**
130
+ * Optional version of SafeUrlSchema that allows empty string for retrocompatibility on tos_uri and logo_uri
131
+ */
132
+ const OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z$1.literal("").transform(() => void 0));
133
+ /**
134
+ * RFC 7591 OAuth 2.0 Dynamic Client Registration metadata
135
+ */
136
+ const OAuthClientMetadataSchema = z$1.object({
137
+ redirect_uris: z$1.array(SafeUrlSchema),
138
+ token_endpoint_auth_method: z$1.string().optional(),
139
+ grant_types: z$1.array(z$1.string()).optional(),
140
+ response_types: z$1.array(z$1.string()).optional(),
141
+ client_name: z$1.string().optional(),
142
+ client_uri: SafeUrlSchema.optional(),
143
+ logo_uri: OptionalSafeUrlSchema,
144
+ scope: z$1.string().optional(),
145
+ contacts: z$1.array(z$1.string()).optional(),
146
+ tos_uri: OptionalSafeUrlSchema,
147
+ policy_uri: z$1.string().optional(),
148
+ jwks_uri: SafeUrlSchema.optional(),
149
+ jwks: z$1.any().optional(),
150
+ software_id: z$1.string().optional(),
151
+ software_version: z$1.string().optional(),
152
+ software_statement: z$1.string().optional()
153
+ }).strip();
154
+ /**
155
+ * RFC 7591 OAuth 2.0 Dynamic Client Registration client information
156
+ */
157
+ const OAuthClientInformationSchema = z$1.object({
158
+ client_id: z$1.string(),
159
+ client_secret: z$1.string().optional(),
160
+ client_id_issued_at: z$1.number().optional(),
161
+ client_secret_expires_at: z$1.number().optional()
162
+ }).strip();
163
+ OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
164
+ z$1.object({
165
+ error: z$1.string(),
166
+ error_description: z$1.string().optional()
167
+ }).strip();
168
+ z$1.object({
169
+ token: z$1.string(),
170
+ token_type_hint: z$1.string().optional()
171
+ }).strip();
4
172
  const platformSchema = z.enum(["chatgpt", "claudeai"]);
5
173
  const PLATFORM_LABELS = {
6
174
  chatgpt: "ChatGPT",
@@ -71,6 +239,13 @@ const auditReportWithScreenshotsSchema = auditReportSchema.extend({ widgetScreen
71
239
  chatgpt: widgetScreenshotSchema.optional(),
72
240
  claudeai: widgetScreenshotSchema.optional()
73
241
  }) });
242
+ z.object({
243
+ id: z.string(),
244
+ environmentId: z.string(),
245
+ clientId: z.string(),
246
+ clientSecret: z.string(),
247
+ clientScopes: z.array(z.string())
248
+ });
74
249
  const deploymentStatusSchema$1 = z.enum([
75
250
  "ongoing",
76
251
  "deployed",
@@ -98,6 +273,74 @@ const deploymentSummarySchema = z.object({
98
273
  createdAt: z.coerce.date(),
99
274
  updatedAt: z.coerce.date()
100
275
  });
276
+ /**
277
+ * Public environment
278
+ *
279
+ * No OAuth metadata exposed.
280
+ */
281
+ const publicEnvironmentSchema = z.object({
282
+ isPublic: z.literal(true),
283
+ oAuthMetadata: z.undefined().optional()
284
+ });
285
+ /**
286
+ * Protected environment with an external resource metadata URL
287
+ *
288
+ * An external resource metadata URL is returned in the WWW-Authenticate header during the first 401 response.
289
+ * Everything that follows is handled outside of the MCP server scope.
290
+ */
291
+ const externalResourceMetadataEnvironmentSchema = z.object({
292
+ isPublic: z.literal(false),
293
+ oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
294
+ scope: z.string().optional()
295
+ });
296
+ /**
297
+ * Protected environment with an external authorization server URL
298
+ *
299
+ * The server itself exposes the /.well-known/oauth-protected-resource endpoint.
300
+ * An external authorization server URL is returned when requesting the endpoint.
301
+ * Everything that follows is handled outside of the MCP server scope.
302
+ */
303
+ const externalAuthorizationServerEnvironmentSchema = z.object({
304
+ isPublic: z.literal(false),
305
+ oAuthMetadata: z.object({
306
+ externalAuthorizationServerUrl: z.url(),
307
+ resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
308
+ }),
309
+ scope: z.string().optional()
310
+ });
311
+ /**
312
+ * Standalone protected environment
313
+ *
314
+ * The server itself exposes the /.well-known/oauth-protected-resource endpoint.
315
+ * The server itself exposes the /.well-known/oauth-authorization-server endpoint.
316
+ */
317
+ const standaloneEnvironmentSchema = z.object({
318
+ isPublic: z.literal(false),
319
+ oAuthMetadata: z.object({
320
+ authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
321
+ resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
322
+ }),
323
+ scope: z.string().optional()
324
+ });
325
+ /**
326
+ * Protected environment without OAuth discovery
327
+ *
328
+ * The server enforces authentication but exposes no OAuth discovery metadata.
329
+ * Neither /.well-known/oauth-protected-resource nor /.well-known/oauth-authorization-server
330
+ * are advertised. Clients must obtain credentials out-of-band.
331
+ */
332
+ const protectedWithoutDiscoveryEnvironmentSchema = z.object({
333
+ isPublic: z.literal(false),
334
+ oAuthMetadata: z.strictObject({}),
335
+ scope: z.string().optional()
336
+ });
337
+ z.union([
338
+ publicEnvironmentSchema,
339
+ externalResourceMetadataEnvironmentSchema,
340
+ externalAuthorizationServerEnvironmentSchema,
341
+ standaloneEnvironmentSchema,
342
+ protectedWithoutDiscoveryEnvironmentSchema
343
+ ]);
101
344
  const allowedPlatformSchema = platformSchema;
102
345
  const environmentDomainSchema = z.object({
103
346
  domain: z.string(),
@@ -296,6 +539,22 @@ z.object({
296
539
  serverFields: serverFieldsSchema$1,
297
540
  source: z.enum(["registry", "defaults"])
298
541
  });
542
+ /**
543
+ * Returns a variant of a `maxLength`-constrained string that clamps (truncates) instead of
544
+ * rejecting on overflow — used for AI-generated copy where the model routinely overshoots.
545
+ *
546
+ * NOTE: this rebuilds the schema from scratch, carrying over only `maxLength` (as a clamp),
547
+ * `minLength`, and the description. Any other validators on the source field (`.regex()`,
548
+ * `.email()`, custom refinements) are intentionally dropped — this helper is meant for plain
549
+ * free-text length caps only. A field with `null` `maxLength` is returned unchanged.
550
+ */
551
+ const clampStringField = (field) => {
552
+ const max = field.maxLength;
553
+ if (max === null) return field;
554
+ const clamped = z.string().overwrite((value) => value.slice(0, max)).max(max);
555
+ const withMin = field.minLength === null ? clamped : clamped.min(field.minLength);
556
+ return field.description ? withMin.describe(field.description) : withMin;
557
+ };
299
558
  const toolDefinitionSchema = z.object({
300
559
  name: z.string(),
301
560
  title: z.string().optional().describe("Human-friendly name for the tool, used in the UI. If not provided, `name` will be used."),
@@ -315,7 +574,7 @@ const positiveTestCaseSchema = z.object({
315
574
  }).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
316
575
  const screenshotEntrySchema = z.object({
317
576
  prompt: z.string(),
318
- url: z.url()
577
+ url: z.url().or(z.literal(""))
319
578
  }).describe("Each screenshot: the user prompt that produced it + the image URL.");
320
579
  /** Accepts either a valid email or URL. */
321
580
  const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
@@ -336,6 +595,71 @@ const chatgptCategorySchema = z.enum([
336
595
  ]);
337
596
  const chatgptAuthenticationSchema = z.enum(["No auth needed", "OAuth 2.0"]);
338
597
  const chatgptAllowedCountriesSchema = z.enum(["Allow all", "Restrict to specific countries"]);
598
+ const chatgptTranslationLocaleSchema = z.enum([
599
+ "am",
600
+ "ar",
601
+ "bg-BG",
602
+ "bn-BD",
603
+ "bs-BA",
604
+ "ca-ES",
605
+ "cs-CZ",
606
+ "da-DK",
607
+ "de-DE",
608
+ "el-GR",
609
+ "es-419",
610
+ "es-ES",
611
+ "et-EE",
612
+ "fi-FI",
613
+ "fr-CA",
614
+ "fr-FR",
615
+ "gu-IN",
616
+ "hi-IN",
617
+ "hr-HR",
618
+ "hu-HU",
619
+ "hy-AM",
620
+ "id-ID",
621
+ "is-IS",
622
+ "it-IT",
623
+ "ja-JP",
624
+ "ka-GE",
625
+ "kk",
626
+ "kn-IN",
627
+ "ko-KR",
628
+ "lt",
629
+ "lv-LV",
630
+ "mk-MK",
631
+ "ml",
632
+ "mn",
633
+ "mr-IN",
634
+ "ms-MY",
635
+ "my-MM",
636
+ "nb-NO",
637
+ "nl-NL",
638
+ "pa",
639
+ "pl-PL",
640
+ "pt-BR",
641
+ "pt-PT",
642
+ "ro-RO",
643
+ "ru-RU",
644
+ "sk-SK",
645
+ "sl-SI",
646
+ "so-SO",
647
+ "sq-AL",
648
+ "sr-RS",
649
+ "sv-SE",
650
+ "sw-TZ",
651
+ "ta-IN",
652
+ "te-IN",
653
+ "th-TH",
654
+ "tl",
655
+ "tr-TR",
656
+ "uk-UA",
657
+ "ur",
658
+ "vi-VN",
659
+ "zh-CN",
660
+ "zh-HK",
661
+ "zh-TW"
662
+ ]);
339
663
  const negativeTestCaseSchema = z.object({
340
664
  scenario: z.string(),
341
665
  userPrompt: z.string()
@@ -346,11 +670,19 @@ const chatgptToolJustificationSchema = z.object({
346
670
  openWorldJustification: z.string(),
347
671
  destructiveJustification: z.string()
348
672
  }).describe("Per-tool justification of each MCP annotation value (one sentence per hint).");
673
+ /**
674
+ * Base copy fields, defined once and reused by both the submission form and per-locale
675
+ * translations so the constraints (tagline ≤ 30 chars) never drift. The translation generation
676
+ * path wraps these in {@link clampStringField} since the LLM tends to overshoot the limit.
677
+ */
678
+ const chatgptTaglineSchema = z.string().max(30);
679
+ const chatgptDescriptionSchema = z.string();
349
680
  const chatgptTranslationSchema = z.object({
350
- locale: z.string(),
351
- tagline: z.string().optional(),
352
- description: z.string().optional()
681
+ locale: chatgptTranslationLocaleSchema,
682
+ tagline: chatgptTaglineSchema,
683
+ description: chatgptDescriptionSchema
353
684
  }).describe("Locale-scoped override for tagline + description. English (US) is the default.");
685
+ chatgptTranslationSchema.extend({ tagline: clampStringField(chatgptTaglineSchema) });
354
686
  /**
355
687
  * Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section.
356
688
  * When adding/removing/reordering fields, keep this in sync with the sheet.
@@ -359,8 +691,8 @@ const chatgptSubmissionFormDataSchema = z.object({
359
691
  logoLight: z.string().describe("Logo icon for light mode. Square PNG, no borders or rounded corners (clients apply circular cropping)."),
360
692
  logoDark: z.string().optional().describe("Optional dark-mode logo icon. Square PNG, same specs as the light icon. Leave empty if the light icon also works on dark backgrounds."),
361
693
  appName: z.string().describe("The name users will see in ChatGPT and in the Apps Directory."),
362
- tagline: z.string().max(30).describe("Plain-language phrase focused on function and user value. 30 chars max."),
363
- description: z.string().describe("Clear, engaging description highlighting what the app does and why people will love it. Appears publicly on the directory page."),
694
+ tagline: chatgptTaglineSchema.describe("Plain-language phrase focused on function and user value. 30 chars max."),
695
+ description: chatgptDescriptionSchema.describe("Clear, engaging description highlighting what the app does and why people will love it. Appears publicly on the directory page."),
364
696
  category: chatgptCategorySchema.describe("Category from the OpenAI taxonomy."),
365
697
  developerName: z.string().describe("Developer name shown publicly on the app's directory page."),
366
698
  companyUrl: z.url().describe("Your company's main website URL."),
@@ -394,7 +726,7 @@ chatgptSubmissionFormDataSchema.pick({
394
726
  testCases: true,
395
727
  negativeTestCases: true,
396
728
  toolJustifications: true
397
- });
729
+ }).extend({ tagline: clampStringField(chatgptSubmissionFormDataSchema.shape.tagline) });
398
730
  const claudeCategorySchema = z.enum([
399
731
  "Business & Productivity",
400
732
  "Communication",
@@ -406,7 +738,7 @@ const claudeCategorySchema = z.enum([
406
738
  "Media & Entertainment",
407
739
  "Commerce & Shopping"
408
740
  ]);
409
- z.enum([
741
+ const claudeAuthenticationSchema = z.enum([
410
742
  "No auth needed",
411
743
  "OAuth 2.0",
412
744
  "Custom URL"
@@ -414,28 +746,34 @@ z.enum([
414
746
  const claudeMcpUrlTypeSchema = z.enum(["Universal URL", "Custom MCP URLs"]);
415
747
  z.enum(["Static OAuth Client", "Dynamic OAuth Client (DCR / CIMD)"]);
416
748
  const claudeReadWriteCapabilitiesSchema = z.enum([
417
- "Read only",
418
- "Write only",
419
- "Read + write"
749
+ "Read Only",
750
+ "Write Only",
751
+ "Read + Write"
420
752
  ]);
421
753
  const claudeTransportSchema = z.enum(["Streamable HTTP", "SSE"]);
754
+ const claudeTestedSurfaceSchema = z.enum([
755
+ "Claude.ai (web)",
756
+ "Claude Desktop",
757
+ "Claude Code",
758
+ "Cowork"
759
+ ]);
422
760
  const claudeThirdPartySchema = z.enum([
423
- "Web access (open web fetch / scraping / arbitrary URLs)",
424
- "Third-party AI model integration",
425
- "Third-party data retrieval (via workflow / aggregator)",
426
- "Third-party data modification (via workflow / aggregator)",
761
+ "Web access: Fetches information from the open web (e.g., web scraping, search engines, or browsing arbitrary URLs, not just connecting to a specific API)",
762
+ "Third-party AI model integration: Sends data to or receives data from a generative AI model other than Claude",
763
+ "Third-party data retrieval: Connects to external services that themselves retrieve data from other sources (e.g., workflow automation platforms or other services that aggregate or relay data from multiple third-party sources)",
764
+ "Third-party data modification: Can connect to external services that themselves create, update, or delete data in other sources (e.g., workflow automation platforms or other services that write to multiple third-party sources)",
427
765
  "N/A"
428
766
  ]);
429
767
  const claudeDataHandlingSchema = z.enum([
430
768
  "Server only accesses data explicitly requested by user",
431
769
  "No data is stored beyond session requirements",
432
- "Data transmission is encrypted (HTTPS / TLS)",
770
+ "Data transmission is encrypted (HTTPS/TLS)",
433
771
  "GDPR compliant (if applicable)"
434
772
  ]);
435
773
  const claudeSponsoredContentSchema = z.enum([
436
774
  "No, there is no sponsored content or advertisements",
437
775
  "Yes, there are banner ads or other paid visual elements",
438
- "Yes, returned content or ranking is impacted by sponsorship or ad placement"
776
+ "Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement"
439
777
  ]);
440
778
  /**
441
779
  * Field order mirrors the Claude (Anthropic) submission spreadsheet, grouped by section.
@@ -500,7 +838,7 @@ If 'Yes', you will also be required to provide screenshots of your UI (see Promo
500
838
  Note: These are attestations — you are legally agreeing to these practices by submitting the form.`),
501
839
  personalDataHealthAccess: z.boolean().describe(`Select 'Yes' ONLY if your connector gives users access to their own personal health information — such as medical records, lab results, diagnoses, prescriptions, wearable health metrics (heart rate, sleep data, etc.), or mental health data.
502
840
  Select 'No' for the vast majority of business/productivity/dev tools. When in doubt, select 'No'. This field triggers additional compliance review if 'Yes'.`),
503
- categories: z.array(claudeCategorySchema).describe(`Select the category or categories that best describe your connector. This determines where it appears in the directory's browse experience. Choose the most specific fit:
841
+ category: claudeCategorySchema.describe(`Select the category that best describes your connector. This determines where it appears in the directory's browse experience. Choose the most specific fit:
504
842
  • Business & Productivity — project management, CRM, HR, office tools
505
843
  • Communication — email, chat, messaging, notifications
506
844
  • Data & Analytics — dashboards, reporting, databases, BI tools
@@ -510,12 +848,13 @@ Select 'No' for the vast majority of business/productivity/dev tools. When in do
510
848
  • Health & Life Sciences — clinical, pharma, medical professional tools
511
849
  • Media & Entertainment — content, publishing, streaming
512
850
  • Commerce & Shopping — e-commerce, inventory, orders
513
- Multiple categories are allowed if genuinely applicable.`),
851
+ Anthropic's submission form only accepts a single category.`),
514
852
  sponsoredContentsOrAdvertisement: claudeSponsoredContentSchema.describe(`Be honest here — advertising is not permitted in the Connectors Directory per Anthropic's policy. Select the option that accurately describes your server:
515
853
  • 'No, there is no sponsored content or advertisements' — the results your server returns are not influenced by paid placement or sponsorship. This is what almost all connectors should select.
516
854
  • 'Yes, there are banner ads or other paid visual elements' — your UI includes visual ads. NOTE: this will likely lead to rejection, as Anthropic prohibits advertising in Claude.
517
855
  • 'Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement' — paid results affect what you return. NOTE: this also likely leads to rejection.
518
856
  If your server returns organic results from a platform that has ads in its own UI (but your API results are not affected by ads), select 'No'.`),
857
+ authentication: claudeAuthenticationSchema.describe("How users authenticate with the server. No auth / OAuth 2.0 / Custom URL (not supported)."),
519
858
  transportSupport: z.array(claudeTransportSchema).describe(`Select all transport protocols your server supports:
520
859
  • 'Streamable HTTP' — the modern, recommended transport. Anthropic strongly recommends implementing this. This is the future-proof option and should be your default.
521
860
  • 'SSE (Server-Sent Events)' — the older transport. SSE may be deprecated by Anthropic later in 2025/2026. If you currently only support SSE, you should plan to migrate to Streamable HTTP.
@@ -555,6 +894,7 @@ Reviewers test every single tool you list here — don't list tools that don't w
555
894
  • 'I've specified user-friendly titles for all tools' — every tool has a 'title' annotation (a human-readable label, different from the tool name).
556
895
  • 'I've specified accurate tool annotations for all tools' — every tool has the correct annotation: readOnlyHint: true for read operations (search, get, list, fetch), OR destructiveHint: true for write operations (create, update, delete, send).
557
896
  This is the #1 reason submissions get rejected (30% of all rejections). Do not check these boxes without actually having implemented the annotations. See MCP spec for how to add them.`),
897
+ testedSurfaces: z.array(claudeTestedSurfaceSchema).describe(`Confirm testing is complete and your server works as intended in these surfaces. Select every surface you've verified. Claude.ai (web) and Claude Desktop are the usual targets for remote MCP servers; Claude Code and Cowork compatibility is not required. Anthropic requires at least two surfaces.`),
558
898
  logoLight: z.string().describe(`Your connector's logo for light backgrounds. Requirements:
559
899
  • Format: SVG only
560
900
  • Aspect ratio: square (1:1)
@@ -581,14 +921,20 @@ claudeSubmissionFormDataSchema.pick({
581
921
  isMcpApp: true,
582
922
  transportSupport: true,
583
923
  primaryContactEmail: true,
584
- primaryContactName: true
924
+ primaryContactName: true,
925
+ authentication: true,
926
+ personalDataHealthAccess: true,
927
+ testedSurfaces: true
928
+ }).extend({
929
+ connectionRequirements: claudeSubmissionFormDataSchema.shape.connectionRequirements.optional(),
930
+ testingCredentials: claudeSubmissionFormDataSchema.shape.testingCredentials.optional()
585
931
  });
586
932
  claudeSubmissionFormDataSchema.pick({
587
933
  tagline: true,
588
934
  description: true,
589
- categories: true,
935
+ category: true,
590
936
  testCases: true
591
- });
937
+ }).extend({ tagline: clampStringField(claudeSubmissionFormDataSchema.shape.tagline) });
592
938
  const submissionMetaFieldsSchema = z.object({
593
939
  id: z.string(),
594
940
  environmentId: z.string(),
@@ -1232,7 +1578,7 @@ const upsertPlaygroundContractV1 = oc.route({
1232
1578
  name: z.string().min(1).max(100).optional(),
1233
1579
  description: z.string().min(1).max(500).optional(),
1234
1580
  headers: z.array(playgroundHeaderSchema).optional(),
1235
- examplePrompts: z.array(playgroundExamplePromptSchema).max(3).optional()
1581
+ examplePrompts: z.array(playgroundExamplePromptSchema).max(5).optional()
1236
1582
  })).output(playgroundOutputSchema);
1237
1583
  const createBeaconContractV1 = oc.route({
1238
1584
  path: "/v1/beacon/audits",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.gccf54e6",
3
+ "version": "0.0.0-staging.gcd4957c",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",