@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,6 +1,98 @@
|
|
|
1
|
-
import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-22WYCMVS.js';
|
|
1
|
+
import { withToolAnnotations, mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-22WYCMVS.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
+
// src/modules/semanticfed/tool-annotations.ts
|
|
5
|
+
var READ = { readOnlyHint: true, destructiveHint: false, openWorldHint: false };
|
|
6
|
+
var READ_EXTERNAL = {
|
|
7
|
+
readOnlyHint: true,
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true
|
|
10
|
+
};
|
|
11
|
+
var WRITE = {
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
destructiveHint: false,
|
|
14
|
+
openWorldHint: false
|
|
15
|
+
};
|
|
16
|
+
var WRITE_EXTERNAL = {
|
|
17
|
+
readOnlyHint: false,
|
|
18
|
+
destructiveHint: false,
|
|
19
|
+
openWorldHint: true
|
|
20
|
+
};
|
|
21
|
+
var DESTRUCTIVE = {
|
|
22
|
+
readOnlyHint: false,
|
|
23
|
+
destructiveHint: true,
|
|
24
|
+
openWorldHint: false
|
|
25
|
+
};
|
|
26
|
+
var SEMANTICFED_TOOL_ANNOTATIONS = {
|
|
27
|
+
// Connectors
|
|
28
|
+
connectors_get: READ,
|
|
29
|
+
connectors_list: READ,
|
|
30
|
+
connectors_create: WRITE,
|
|
31
|
+
connectors_update: WRITE,
|
|
32
|
+
connectors_archive: DESTRUCTIVE,
|
|
33
|
+
// Data sources
|
|
34
|
+
data_sources_get: READ,
|
|
35
|
+
data_sources_list: READ,
|
|
36
|
+
data_sources_create: WRITE,
|
|
37
|
+
data_sources_update: WRITE,
|
|
38
|
+
data_sources_transition: DESTRUCTIVE,
|
|
39
|
+
data_sources_archive: DESTRUCTIVE,
|
|
40
|
+
// Connections (health probes recorded against a data source)
|
|
41
|
+
connections_list: READ,
|
|
42
|
+
connections_record: WRITE,
|
|
43
|
+
// Semantic models
|
|
44
|
+
models_get: READ,
|
|
45
|
+
models_list: READ,
|
|
46
|
+
models_create: WRITE,
|
|
47
|
+
models_update: WRITE,
|
|
48
|
+
models_publish: DESTRUCTIVE,
|
|
49
|
+
models_archive: DESTRUCTIVE,
|
|
50
|
+
// Entities / dimensions / metrics / relationships
|
|
51
|
+
entities_get: READ,
|
|
52
|
+
entities_list: READ,
|
|
53
|
+
entities_create: WRITE,
|
|
54
|
+
entities_update: WRITE,
|
|
55
|
+
entities_delete: DESTRUCTIVE,
|
|
56
|
+
dimensions_create: WRITE,
|
|
57
|
+
metrics_create: WRITE,
|
|
58
|
+
relationships_list: READ,
|
|
59
|
+
relationships_create: WRITE,
|
|
60
|
+
// Saved queries + federated runs
|
|
61
|
+
queries_get: READ,
|
|
62
|
+
queries_list: READ,
|
|
63
|
+
queries_create: WRITE,
|
|
64
|
+
queries_update: WRITE,
|
|
65
|
+
queries_publish: DESTRUCTIVE,
|
|
66
|
+
queries_archive: DESTRUCTIVE,
|
|
67
|
+
// Enqueues a federated execution across customer systems (egress surface,
|
|
68
|
+
// BOFF-3906 rubric 3.3): creates a SemQueryRun (WRITE), crosses the data
|
|
69
|
+
// boundary (EXTERNAL), and rows come back asynchronously via
|
|
70
|
+
// query_runs_get/result.
|
|
71
|
+
queries_run: WRITE_EXTERNAL,
|
|
72
|
+
query_runs_list: READ,
|
|
73
|
+
query_runs_get: READ,
|
|
74
|
+
query_runs_result: READ_EXTERNAL,
|
|
75
|
+
// Access policies — governance-mutating; semanticfed-mcp additionally gates
|
|
76
|
+
// the whole group behind an explicit opt-in flag (BOFF-3906 rubric 2.2).
|
|
77
|
+
access_policies_list: READ,
|
|
78
|
+
access_policies_create: DESTRUCTIVE,
|
|
79
|
+
access_policies_set_active: DESTRUCTIVE,
|
|
80
|
+
// Public probe + governed read-only SQL endpoint
|
|
81
|
+
health_check: READ,
|
|
82
|
+
sql_execute: { ...READ, idempotentHint: true },
|
|
83
|
+
sql_catalog: READ
|
|
84
|
+
};
|
|
85
|
+
new Set(
|
|
86
|
+
Object.entries(SEMANTICFED_TOOL_ANNOTATIONS).filter(([, annotations]) => annotations.destructiveHint === true).map(([name]) => name)
|
|
87
|
+
);
|
|
88
|
+
function semanticfedToolAnnotations(productName) {
|
|
89
|
+
const prefix = `${productName}_`;
|
|
90
|
+
return (toolName) => {
|
|
91
|
+
if (!toolName.startsWith(prefix)) return void 0;
|
|
92
|
+
return SEMANTICFED_TOOL_ANNOTATIONS[toolName.slice(prefix.length)];
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
4
96
|
// src/modules/semanticfed/operations.ts
|
|
5
97
|
var CONNECTOR_FIELDS = `
|
|
6
98
|
id name description kind isActive capabilities workspaceId createdAt updatedAt
|
|
@@ -1566,7 +1658,6 @@ function registerHealthTools(server, ctx, track) {
|
|
|
1566
1658
|
}
|
|
1567
1659
|
);
|
|
1568
1660
|
}
|
|
1569
|
-
var READ_ONLY = { readOnlyHint: true, destructiveHint: false, idempotentHint: true };
|
|
1570
1661
|
function registerSqlTools(server, ctx, track) {
|
|
1571
1662
|
server.registerTool(
|
|
1572
1663
|
track(mcpToolName(ctx.productName, "sql_execute")),
|
|
@@ -1578,8 +1669,7 @@ function registerSqlTools(server, ctx, track) {
|
|
|
1578
1669
|
modelId: z.string().optional().describe("Semantic model ID; optional when the workspace has exactly one model"),
|
|
1579
1670
|
maxRows: z.number().int().min(1).max(1e4).optional().describe("Maximum rows returned (default 1000, max 10000)"),
|
|
1580
1671
|
timeoutMs: z.number().int().min(1e3).max(6e4).optional().describe("Execution time limit in milliseconds (default 30000)")
|
|
1581
|
-
}
|
|
1582
|
-
annotations: { title: "Execute SQL", ...READ_ONLY, openWorldHint: true }
|
|
1672
|
+
}
|
|
1583
1673
|
},
|
|
1584
1674
|
async ({ sql, modelId, maxRows, timeoutMs }) => {
|
|
1585
1675
|
try {
|
|
@@ -1604,8 +1694,7 @@ function registerSqlTools(server, ctx, track) {
|
|
|
1604
1694
|
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.",
|
|
1605
1695
|
inputSchema: {
|
|
1606
1696
|
modelId: z.string().optional().describe("Semantic model ID; optional when the workspace has exactly one model")
|
|
1607
|
-
}
|
|
1608
|
-
annotations: { title: "SQL Catalog", ...READ_ONLY, openWorldHint: false }
|
|
1697
|
+
}
|
|
1609
1698
|
},
|
|
1610
1699
|
async ({ modelId }) => {
|
|
1611
1700
|
try {
|
|
@@ -1901,19 +1990,21 @@ var semanticfedModule = {
|
|
|
1901
1990
|
prompts.push(n);
|
|
1902
1991
|
return n;
|
|
1903
1992
|
};
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1993
|
+
withToolAnnotations(server, semanticfedToolAnnotations(ctx.productName), () => {
|
|
1994
|
+
registerConnectorTools(server, ctx, trackTool);
|
|
1995
|
+
registerDataSourceTools(server, ctx, trackTool);
|
|
1996
|
+
registerConnectionTools(server, ctx, trackTool);
|
|
1997
|
+
registerModelTools(server, ctx, trackTool);
|
|
1998
|
+
registerEntityTools(server, ctx, trackTool);
|
|
1999
|
+
registerDimensionTools(server, ctx, trackTool);
|
|
2000
|
+
registerMetricTools(server, ctx, trackTool);
|
|
2001
|
+
registerRelationshipTools(server, ctx, trackTool);
|
|
2002
|
+
registerQueryTools(server, ctx, trackTool);
|
|
2003
|
+
registerRunTools(server, ctx, trackTool);
|
|
2004
|
+
registerPolicyTools(server, ctx, trackTool);
|
|
2005
|
+
registerHealthTools(server, ctx, trackTool);
|
|
2006
|
+
registerSqlTools(server, ctx, trackTool);
|
|
2007
|
+
});
|
|
1917
2008
|
registerSemanticfedResources(server, ctx, trackResource);
|
|
1918
2009
|
registerSemanticfedPrompts(server, ctx, trackPrompt);
|
|
1919
2010
|
return { tools, resources, prompts };
|