@burdenoff/mcp-libs 2026.1107.5 → 2026.1110.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/dist/modules/botmanor/index.cjs +2018 -0
- package/dist/modules/botmanor/index.cjs.map +1 -0
- package/dist/modules/botmanor/index.d.ts +3 -0
- package/dist/modules/botmanor/index.js +1940 -0
- package/dist/modules/botmanor/index.js.map +1 -0
- package/dist/modules/botmanor/operations.d.ts +62 -0
- package/dist/modules/botmanor/prompts.d.ts +3 -0
- package/dist/modules/botmanor/resources.d.ts +3 -0
- package/dist/modules/botmanor/tool-annotations.d.ts +2 -0
- package/dist/modules/botmanor/tools/agents.d.ts +3 -0
- package/dist/modules/botmanor/tools/app-agents.d.ts +3 -0
- package/dist/modules/botmanor/tools/apps.d.ts +3 -0
- package/dist/modules/botmanor/tools/channels.d.ts +3 -0
- package/dist/modules/botmanor/tools/chat.d.ts +3 -0
- package/dist/modules/botmanor/tools/executions.d.ts +3 -0
- package/dist/modules/botmanor/tools/knowledge.d.ts +3 -0
- package/dist/modules/botmanor/tools/shared.d.ts +142 -0
- package/dist/modules/botmanor/tools/store.d.ts +3 -0
- package/dist/modules/cosmicintersection/tools/shared.d.ts +1 -1
- package/dist/modules/ggnomad/tools/shared.d.ts +1 -1
- package/dist/modules/headshotmarketing/tools/shared.d.ts +5 -5
- package/dist/modules/intelwatchtower/tools/shared.d.ts +1 -1
- package/dist/modules/mybodyshield/tools/shared.d.ts +2 -2
- package/dist/modules/planmagnet/tools/shared.d.ts +2 -2
- package/dist/modules/proserviceworld/index.cjs +59 -0
- package/dist/modules/proserviceworld/index.cjs.map +1 -1
- package/dist/modules/proserviceworld/index.js +59 -0
- package/dist/modules/proserviceworld/index.js.map +1 -1
- package/dist/modules/proserviceworld/operations.d.ts +1 -0
- package/dist/modules/proserviceworld/tools/precedents.d.ts +3 -0
- package/dist/modules/semanticfed/index.cjs +127 -20
- package/dist/modules/semanticfed/index.cjs.map +1 -1
- package/dist/modules/semanticfed/index.d.ts +1 -1
- package/dist/modules/semanticfed/index.js +110 -19
- package/dist/modules/semanticfed/index.js.map +1 -1
- package/dist/modules/semanticfed/tool-annotations.d.ts +4 -0
- package/dist/modules/subscriberbot/tools/shared.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var zod = require('zod');
|
|
4
3
|
require('graphql-request');
|
|
5
4
|
require('cross-fetch');
|
|
6
5
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
7
6
|
require('@modelcontextprotocol/sdk/types.js');
|
|
8
7
|
require('crypto');
|
|
8
|
+
var zod = require('zod');
|
|
9
9
|
|
|
10
|
-
// src/
|
|
10
|
+
// src/core/auth/store.ts
|
|
11
11
|
|
|
12
12
|
// src/core/errors.ts
|
|
13
13
|
var McpInternalError = class extends Error {
|
|
@@ -49,6 +49,22 @@ function mcpPromptName(productName, ...parts) {
|
|
|
49
49
|
return [productName, ...parts].filter(Boolean).join("-");
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
// src/core/tool-governance.ts
|
|
53
|
+
function withToolAnnotations(server, resolve, register) {
|
|
54
|
+
const target = server;
|
|
55
|
+
const governedRegisterTool = target.registerTool;
|
|
56
|
+
target.registerTool = (name, config, handler) => {
|
|
57
|
+
const declared = resolve(name);
|
|
58
|
+
const annotations = declared === void 0 ? config.annotations : { ...declared, ...config.annotations };
|
|
59
|
+
return governedRegisterTool.call(target, name, { ...config, annotations }, handler);
|
|
60
|
+
};
|
|
61
|
+
try {
|
|
62
|
+
return register();
|
|
63
|
+
} finally {
|
|
64
|
+
target.registerTool = governedRegisterTool;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
52
68
|
// src/core/result.ts
|
|
53
69
|
function jsonResult(data, structured) {
|
|
54
70
|
const result = {
|
|
@@ -63,6 +79,98 @@ Hint: ${hint}` : message;
|
|
|
63
79
|
return { content: [{ type: "text", text }], isError: true };
|
|
64
80
|
}
|
|
65
81
|
|
|
82
|
+
// src/modules/semanticfed/tool-annotations.ts
|
|
83
|
+
var READ = { readOnlyHint: true, destructiveHint: false, openWorldHint: false };
|
|
84
|
+
var READ_EXTERNAL = {
|
|
85
|
+
readOnlyHint: true,
|
|
86
|
+
destructiveHint: false,
|
|
87
|
+
openWorldHint: true
|
|
88
|
+
};
|
|
89
|
+
var WRITE = {
|
|
90
|
+
readOnlyHint: false,
|
|
91
|
+
destructiveHint: false,
|
|
92
|
+
openWorldHint: false
|
|
93
|
+
};
|
|
94
|
+
var WRITE_EXTERNAL = {
|
|
95
|
+
readOnlyHint: false,
|
|
96
|
+
destructiveHint: false,
|
|
97
|
+
openWorldHint: true
|
|
98
|
+
};
|
|
99
|
+
var DESTRUCTIVE = {
|
|
100
|
+
readOnlyHint: false,
|
|
101
|
+
destructiveHint: true,
|
|
102
|
+
openWorldHint: false
|
|
103
|
+
};
|
|
104
|
+
var SEMANTICFED_TOOL_ANNOTATIONS = {
|
|
105
|
+
// Connectors
|
|
106
|
+
connectors_get: READ,
|
|
107
|
+
connectors_list: READ,
|
|
108
|
+
connectors_create: WRITE,
|
|
109
|
+
connectors_update: WRITE,
|
|
110
|
+
connectors_archive: DESTRUCTIVE,
|
|
111
|
+
// Data sources
|
|
112
|
+
data_sources_get: READ,
|
|
113
|
+
data_sources_list: READ,
|
|
114
|
+
data_sources_create: WRITE,
|
|
115
|
+
data_sources_update: WRITE,
|
|
116
|
+
data_sources_transition: DESTRUCTIVE,
|
|
117
|
+
data_sources_archive: DESTRUCTIVE,
|
|
118
|
+
// Connections (health probes recorded against a data source)
|
|
119
|
+
connections_list: READ,
|
|
120
|
+
connections_record: WRITE,
|
|
121
|
+
// Semantic models
|
|
122
|
+
models_get: READ,
|
|
123
|
+
models_list: READ,
|
|
124
|
+
models_create: WRITE,
|
|
125
|
+
models_update: WRITE,
|
|
126
|
+
models_publish: DESTRUCTIVE,
|
|
127
|
+
models_archive: DESTRUCTIVE,
|
|
128
|
+
// Entities / dimensions / metrics / relationships
|
|
129
|
+
entities_get: READ,
|
|
130
|
+
entities_list: READ,
|
|
131
|
+
entities_create: WRITE,
|
|
132
|
+
entities_update: WRITE,
|
|
133
|
+
entities_delete: DESTRUCTIVE,
|
|
134
|
+
dimensions_create: WRITE,
|
|
135
|
+
metrics_create: WRITE,
|
|
136
|
+
relationships_list: READ,
|
|
137
|
+
relationships_create: WRITE,
|
|
138
|
+
// Saved queries + federated runs
|
|
139
|
+
queries_get: READ,
|
|
140
|
+
queries_list: READ,
|
|
141
|
+
queries_create: WRITE,
|
|
142
|
+
queries_update: WRITE,
|
|
143
|
+
queries_publish: DESTRUCTIVE,
|
|
144
|
+
queries_archive: DESTRUCTIVE,
|
|
145
|
+
// Enqueues a federated execution across customer systems (egress surface,
|
|
146
|
+
// BOFF-3906 rubric 3.3): creates a SemQueryRun (WRITE), crosses the data
|
|
147
|
+
// boundary (EXTERNAL), and rows come back asynchronously via
|
|
148
|
+
// query_runs_get/result.
|
|
149
|
+
queries_run: WRITE_EXTERNAL,
|
|
150
|
+
query_runs_list: READ,
|
|
151
|
+
query_runs_get: READ,
|
|
152
|
+
query_runs_result: READ_EXTERNAL,
|
|
153
|
+
// Access policies — governance-mutating; semanticfed-mcp additionally gates
|
|
154
|
+
// the whole group behind an explicit opt-in flag (BOFF-3906 rubric 2.2).
|
|
155
|
+
access_policies_list: READ,
|
|
156
|
+
access_policies_create: DESTRUCTIVE,
|
|
157
|
+
access_policies_set_active: DESTRUCTIVE,
|
|
158
|
+
// Public probe + governed read-only SQL endpoint
|
|
159
|
+
health_check: READ,
|
|
160
|
+
sql_execute: { ...READ, idempotentHint: true },
|
|
161
|
+
sql_catalog: READ
|
|
162
|
+
};
|
|
163
|
+
new Set(
|
|
164
|
+
Object.entries(SEMANTICFED_TOOL_ANNOTATIONS).filter(([, annotations]) => annotations.destructiveHint === true).map(([name]) => name)
|
|
165
|
+
);
|
|
166
|
+
function semanticfedToolAnnotations(productName) {
|
|
167
|
+
const prefix = `${productName}_`;
|
|
168
|
+
return (toolName) => {
|
|
169
|
+
if (!toolName.startsWith(prefix)) return void 0;
|
|
170
|
+
return SEMANTICFED_TOOL_ANNOTATIONS[toolName.slice(prefix.length)];
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
66
174
|
// src/modules/semanticfed/operations.ts
|
|
67
175
|
var CONNECTOR_FIELDS = `
|
|
68
176
|
id name description kind isActive capabilities workspaceId createdAt updatedAt
|
|
@@ -1628,7 +1736,6 @@ function registerHealthTools(server, ctx, track) {
|
|
|
1628
1736
|
}
|
|
1629
1737
|
);
|
|
1630
1738
|
}
|
|
1631
|
-
var READ_ONLY = { readOnlyHint: true, destructiveHint: false, idempotentHint: true };
|
|
1632
1739
|
function registerSqlTools(server, ctx, track) {
|
|
1633
1740
|
server.registerTool(
|
|
1634
1741
|
track(mcpToolName(ctx.productName, "sql_execute")),
|
|
@@ -1640,8 +1747,7 @@ function registerSqlTools(server, ctx, track) {
|
|
|
1640
1747
|
modelId: zod.z.string().optional().describe("Semantic model ID; optional when the workspace has exactly one model"),
|
|
1641
1748
|
maxRows: zod.z.number().int().min(1).max(1e4).optional().describe("Maximum rows returned (default 1000, max 10000)"),
|
|
1642
1749
|
timeoutMs: zod.z.number().int().min(1e3).max(6e4).optional().describe("Execution time limit in milliseconds (default 30000)")
|
|
1643
|
-
}
|
|
1644
|
-
annotations: { title: "Execute SQL", ...READ_ONLY, openWorldHint: true }
|
|
1750
|
+
}
|
|
1645
1751
|
},
|
|
1646
1752
|
async ({ sql, modelId, maxRows, timeoutMs }) => {
|
|
1647
1753
|
try {
|
|
@@ -1666,8 +1772,7 @@ function registerSqlTools(server, ctx, track) {
|
|
|
1666
1772
|
description: "List the tables and columns a semantic model exposes to SQL: one table per entity (name, kind, primaryKey) with its columns (name, DIMENSION or METRIC, dataType, isPrimary, the default aggregation of a metric). Use the names verbatim in sql_execute.",
|
|
1667
1773
|
inputSchema: {
|
|
1668
1774
|
modelId: zod.z.string().optional().describe("Semantic model ID; optional when the workspace has exactly one model")
|
|
1669
|
-
}
|
|
1670
|
-
annotations: { title: "SQL Catalog", ...READ_ONLY, openWorldHint: false }
|
|
1775
|
+
}
|
|
1671
1776
|
},
|
|
1672
1777
|
async ({ modelId }) => {
|
|
1673
1778
|
try {
|
|
@@ -1963,19 +2068,21 @@ var semanticfedModule = {
|
|
|
1963
2068
|
prompts.push(n);
|
|
1964
2069
|
return n;
|
|
1965
2070
|
};
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
2071
|
+
withToolAnnotations(server, semanticfedToolAnnotations(ctx.productName), () => {
|
|
2072
|
+
registerConnectorTools(server, ctx, trackTool);
|
|
2073
|
+
registerDataSourceTools(server, ctx, trackTool);
|
|
2074
|
+
registerConnectionTools(server, ctx, trackTool);
|
|
2075
|
+
registerModelTools(server, ctx, trackTool);
|
|
2076
|
+
registerEntityTools(server, ctx, trackTool);
|
|
2077
|
+
registerDimensionTools(server, ctx, trackTool);
|
|
2078
|
+
registerMetricTools(server, ctx, trackTool);
|
|
2079
|
+
registerRelationshipTools(server, ctx, trackTool);
|
|
2080
|
+
registerQueryTools(server, ctx, trackTool);
|
|
2081
|
+
registerRunTools(server, ctx, trackTool);
|
|
2082
|
+
registerPolicyTools(server, ctx, trackTool);
|
|
2083
|
+
registerHealthTools(server, ctx, trackTool);
|
|
2084
|
+
registerSqlTools(server, ctx, trackTool);
|
|
2085
|
+
});
|
|
1979
2086
|
registerSemanticfedResources(server, ctx, trackResource);
|
|
1980
2087
|
registerSemanticfedPrompts(server, ctx, trackPrompt);
|
|
1981
2088
|
return { tools, resources, prompts };
|