@zackbart/connecta 0.21.2 → 0.22.1
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/CHANGELOG.md +69 -0
- package/README.md +10 -3
- package/dist/access-tokens.d.ts +2 -2
- package/dist/access-tokens.js +14 -2
- package/dist/connectors/api.d.ts +2 -0
- package/dist/connectors/api.js +1 -0
- package/dist/connectors/remote-mcp.d.ts +2 -0
- package/dist/connectors/remote-mcp.js +6 -0
- package/dist/credentials.d.ts +6 -6
- package/dist/credentials.js +25 -21
- package/dist/identity.d.ts +4 -0
- package/dist/identity.js +17 -0
- package/dist/index.d.ts +16 -2
- package/dist/index.js +6 -1
- package/dist/meta-tools.js +7 -2
- package/dist/operator-ui/generated.js +1 -1
- package/dist/operator-ui/model.d.ts +4 -2
- package/dist/operator-ui/view.js +1 -1
- package/dist/providers/cloudflare.d.ts +2 -0
- package/dist/providers/cloudflare.js +1 -0
- package/dist/providers/linear.d.ts +2 -0
- package/dist/providers/linear.js +1 -0
- package/dist/providers/mixpanel.d.ts +2 -0
- package/dist/providers/mixpanel.js +1 -0
- package/dist/providers/notion.d.ts +2 -0
- package/dist/providers/notion.js +1 -0
- package/dist/providers/revenuecat.d.ts +2 -0
- package/dist/providers/revenuecat.js +1 -0
- package/dist/providers/stripe.d.ts +2 -0
- package/dist/providers/stripe.js +1 -0
- package/dist/providers/vercel.d.ts +25 -0
- package/dist/providers/vercel.js +1132 -0
- package/dist/registry.d.ts +25 -0
- package/dist/registry.js +200 -4
- package/dist/routes/access-tokens.js +2 -2
- package/dist/routes/activity.js +4 -1
- package/dist/routes/credentials.js +31 -12
- package/dist/routes/mcp.js +17 -2
- package/dist/routes/oauth.js +55 -11
- package/dist/routes/shared.d.ts +20 -4
- package/dist/routes/shared.js +92 -24
- package/dist/routes/ui.js +32 -13
- package/dist/types.d.ts +28 -2
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +18 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/documentation/architecture.md +14 -8
- package/documentation/auth.md +89 -9
- package/documentation/code-mode.md +2 -2
- package/documentation/connector-guides.md +2 -2
- package/documentation/connectors.md +21 -6
- package/documentation/meta-tools.md +4 -3
- package/documentation/operations.md +5 -2
- package/documentation/operator-ui.md +13 -4
- package/documentation/provider-conventions.md +5 -5
- package/documentation/request-admission.md +2 -1
- package/documentation/storage-and-credentials.md +42 -4
- package/documentation/upgrading.md +35 -4
- package/documentation/vercel.md +194 -0
- package/ethos.md +8 -8
- package/examples/worker/AGENTS.md +44 -0
- package/examples/worker/README.md +63 -14
- package/examples/worker/src/index.ts +26 -22
- package/package.json +5 -1
- package/templates/node/README.md +7 -0
- package/templates/node/package.json +1 -1
- package/templates/node/src/index.ts +13 -4
|
@@ -5,6 +5,8 @@ export declare const REVENUECAT_MCP_ENDPOINT = "https://mcp.revenuecat.ai/mcp";
|
|
|
5
5
|
export interface RevenueCatOptions {
|
|
6
6
|
/** Display name; scope defaults are in `documentation/revenuecat.md`. */
|
|
7
7
|
title?: string;
|
|
8
|
+
/** Downstream auth ownership. Defaults to one shared deployment grant. */
|
|
9
|
+
authScope?: "shared" | "personal";
|
|
8
10
|
/**
|
|
9
11
|
* Which project this connector is for and what decisions it answers. With
|
|
10
12
|
* headers auth this is the only place the project a key reaches is named,
|
|
@@ -207,6 +207,7 @@ export function revenuecat(id, options) {
|
|
|
207
207
|
const scoped = auth.type !== "oauth";
|
|
208
208
|
const connector = remoteMcp(id, {
|
|
209
209
|
url: REVENUECAT_MCP_ENDPOINT,
|
|
210
|
+
...(options.authScope ? { authScope: options.authScope } : {}),
|
|
210
211
|
// The scope shape rides the title because browse-time discovery renders
|
|
211
212
|
// the title and the guide summary and nothing else, and reaching one
|
|
212
213
|
// project versus every project the account has is the fact an agent must
|
|
@@ -7,6 +7,8 @@ export declare const STRIPE_MCP_ENDPOINT = "https://mcp.stripe.com/";
|
|
|
7
7
|
interface StripeCommonOptions {
|
|
8
8
|
/** Human-readable display name; defaults to "Stripe" for OAuth. */
|
|
9
9
|
title?: string;
|
|
10
|
+
/** Downstream auth ownership. Defaults to one shared deployment grant. */
|
|
11
|
+
authScope?: "shared" | "personal";
|
|
10
12
|
/** Which business purpose and Stripe context this connector is for. */
|
|
11
13
|
purpose: string;
|
|
12
14
|
/** Connector-specific conventions appended to the maintained provider guide. */
|
package/dist/providers/stripe.js
CHANGED
|
@@ -192,6 +192,7 @@ export function stripe(id, options) {
|
|
|
192
192
|
const copy = mode === undefined ? undefined : MODE_COPY[mode];
|
|
193
193
|
const connector = remoteMcp(id, {
|
|
194
194
|
url: STRIPE_MCP_ENDPOINT,
|
|
195
|
+
...(options.authScope ? { authScope: options.authScope } : {}),
|
|
195
196
|
title: options.title ?? copy?.title ?? "Stripe",
|
|
196
197
|
description: mode === undefined
|
|
197
198
|
? `Stripe payments (live and sandbox accounts) — ${purpose}`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Connector, ConnectorCallAdmissionPolicy } from "../types.js";
|
|
2
|
+
/** Vercel's public REST origin. Override only for a proxy or test double. */
|
|
3
|
+
export declare const VERCEL_API_BASE_URL = "https://api.vercel.com";
|
|
4
|
+
export interface VercelOptions {
|
|
5
|
+
/** Human-readable display name; defaults to "Vercel". */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Downstream auth ownership. Defaults to one shared deployment grant. */
|
|
8
|
+
authScope?: "shared" | "personal";
|
|
9
|
+
/** Which Vercel account or team this connection operates, and for whom. */
|
|
10
|
+
purpose: string;
|
|
11
|
+
/** Default team id for scoped calls. Omit to use the token's personal account. */
|
|
12
|
+
teamId?: string;
|
|
13
|
+
/** Account-specific conventions appended to the maintained provider guide. */
|
|
14
|
+
instructions?: string;
|
|
15
|
+
/** API base override for a proxy or test double. */
|
|
16
|
+
baseUrl?: string;
|
|
17
|
+
/** Default page size for list tools. Defaults to 20; Vercel's local cap is 100. */
|
|
18
|
+
defaultPageSize?: number;
|
|
19
|
+
/** Optional per-runtime downstream call-admission policy. */
|
|
20
|
+
callAdmission?: ConnectorCallAdmissionPolicy;
|
|
21
|
+
/** Connector-specific inline result limit; omit to inherit the deployment. */
|
|
22
|
+
maxResultBytes?: number;
|
|
23
|
+
}
|
|
24
|
+
/** A maintained Vercel connection over the public REST API. */
|
|
25
|
+
export declare function vercel(id: string, options: VercelOptions): Connector;
|