@mcp-s/connectors 0.0.20260928085734
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/README.md +73 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +22 -0
- package/dist/public/_headers +3 -0
- package/dist/public/connectors/atlassian-mcp.json +1 -0
- package/dist/public/connectors/datadog-mcp.json +1 -0
- package/dist/public/connectors/github.json +1 -0
- package/dist/public/connectors/gmail.json +1 -0
- package/dist/public/index.json +77 -0
- package/dist/schema/auth.d.ts +406 -0
- package/dist/schema/auth.js +114 -0
- package/dist/schema/catalog.d.ts +1260 -0
- package/dist/schema/catalog.js +182 -0
- package/dist/schema/common.d.ts +31 -0
- package/dist/schema/common.js +23 -0
- package/dist/schema/enums.d.ts +42 -0
- package/dist/schema/enums.js +44 -0
- package/dist/schema/parts.d.ts +123 -0
- package/dist/schema/parts.js +85 -0
- package/dist/schema/tool.d.ts +107 -0
- package/dist/schema/tool.js +60 -0
- package/package.json +39 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { jsonSchema7, jsonata, method, obj, requiredScope } from "./common.js";
|
|
3
|
+
export const toolSchemas = obj({
|
|
4
|
+
params: jsonSchema7.optional(),
|
|
5
|
+
query: jsonSchema7.optional(),
|
|
6
|
+
body: jsonSchema7.optional(),
|
|
7
|
+
response: jsonSchema7.optional(),
|
|
8
|
+
});
|
|
9
|
+
export const toolMapping = obj({
|
|
10
|
+
params: jsonata.optional(),
|
|
11
|
+
query: jsonata.optional(),
|
|
12
|
+
body: jsonata.optional(),
|
|
13
|
+
response: jsonata.optional(),
|
|
14
|
+
headers: jsonata.optional(),
|
|
15
|
+
arguments: jsonata.optional(),
|
|
16
|
+
externalId: jsonata.optional(),
|
|
17
|
+
});
|
|
18
|
+
export const toolRiskLevel = z.enum(["low", "mid", "high"]);
|
|
19
|
+
export const tool = obj({
|
|
20
|
+
name: z.string(),
|
|
21
|
+
description: z.string(),
|
|
22
|
+
slug: z.string(),
|
|
23
|
+
inputSchema: jsonSchema7,
|
|
24
|
+
enabled: z.boolean(),
|
|
25
|
+
action: obj({
|
|
26
|
+
path: z.string(),
|
|
27
|
+
method,
|
|
28
|
+
mapping: toolMapping,
|
|
29
|
+
responseType: z.enum(["json", "text", "arraybuffer"]).optional(),
|
|
30
|
+
schemas: toolSchemas.optional(),
|
|
31
|
+
}),
|
|
32
|
+
annotations: obj({
|
|
33
|
+
readOnlyHint: z.boolean().optional(),
|
|
34
|
+
destructiveHint: z.boolean().optional(),
|
|
35
|
+
idempotentHint: z.boolean().optional(),
|
|
36
|
+
openWorldHint: z.boolean().optional(),
|
|
37
|
+
}).optional(),
|
|
38
|
+
risk: toolRiskLevel.optional(),
|
|
39
|
+
forceApproval: z.enum(["user", "admin"]).optional(),
|
|
40
|
+
requiredScopes: z.array(requiredScope).optional(),
|
|
41
|
+
labels: z.array(z.string()).optional(),
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Per-endpoint request/response schemas, keyed by path and method. Used by the
|
|
45
|
+
* tool builder to offer the provider's real shapes.
|
|
46
|
+
*/
|
|
47
|
+
export const endpointSchema = obj({
|
|
48
|
+
connectorSlug: z.string(),
|
|
49
|
+
path: z.string(),
|
|
50
|
+
method: z.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]),
|
|
51
|
+
name: z.string(),
|
|
52
|
+
description: z.string(),
|
|
53
|
+
schemas: obj({
|
|
54
|
+
query: jsonSchema7.optional(),
|
|
55
|
+
path: jsonSchema7.optional(),
|
|
56
|
+
body: jsonSchema7.optional(),
|
|
57
|
+
responses: z.record(z.string(), jsonSchema7).optional(),
|
|
58
|
+
}),
|
|
59
|
+
requiredScopes: z.array(requiredScope).optional(),
|
|
60
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcp-s/connectors",
|
|
3
|
+
"version": "0.0.20260928085734",
|
|
4
|
+
"description": "Willow connector catalog: one schema for every connector, plus the published catalog JSON",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./public/*": "./dist/public/*"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && tsx scripts/build.ts",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"fixtures:parity": "tsx scripts/generate-parity-fixtures.ts"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@types/json-schema": "^7.0.15",
|
|
26
|
+
"zod": "^4.3.6"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "^22.0.0",
|
|
30
|
+
"tsx": "^4.19.0",
|
|
31
|
+
"typescript": "^5.6.0",
|
|
32
|
+
"vitest": "^3.2.0"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"registry": "https://registry.npmjs.org",
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"license": "UNLICENSED"
|
|
39
|
+
}
|