@ateam-ai/mcp 0.4.28 → 0.4.29
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/package.json +1 -1
- package/src/tools.js +8 -0
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -103,6 +103,14 @@ function _summarizeDef(def) {
|
|
|
103
103
|
...(def.platform_connectors && { platform_connectors: pick(def.platform_connectors, "id") }),
|
|
104
104
|
...(def.ui_plugins && { ui_plugins: pick(def.ui_plugins, "id") }),
|
|
105
105
|
...(def.tools && { tools: pick(def.tools, "name") }),
|
|
106
|
+
// OPEN-20: connector-imported tools don't all appear as literal entries in
|
|
107
|
+
// `tools` — they come from `toolbox_imports` and/or wildcard entries like
|
|
108
|
+
// "connector-id:*" that EXPAND to every tool of that connector at runtime.
|
|
109
|
+
// Surface both so an agent doesn't read a real runtime tool as "missing".
|
|
110
|
+
...(def.toolbox_imports && { toolbox_imports: pick(def.toolbox_imports, "connector_id") || def.toolbox_imports }),
|
|
111
|
+
...((Array.isArray(def.tools) && def.tools.some((t) => typeof (t?.name) === "string" && t.name.endsWith(":*"))) && {
|
|
112
|
+
_tools_note: "Entries ending ':*' (or toolbox_imports) grant ALL of that connector's tools at RUNTIME — the specific tool names (e.g. 'connector.foo.get') are callable even though they aren't listed literally here. Verify with a live test_skill / connectors_health, not this summary.",
|
|
113
|
+
}),
|
|
106
114
|
_fields: Object.keys(def),
|
|
107
115
|
_note: "compact summary — pass include_definition:true to ateam_patch for the full definition.",
|
|
108
116
|
};
|