@koda-sl/baker-cli 0.140.2-dev.253d2418a → 0.141.0-dev.253d2418a
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 +3 -2
- package/dist/cli.js +41 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2525,11 +2525,12 @@ Permissions enforced server-side:
|
|
|
2525
2525
|
|
|
2526
2526
|
---
|
|
2527
2527
|
|
|
2528
|
-
### `baker mcp list | add | remove`
|
|
2528
|
+
### `baker mcp connected | list | add | remove`
|
|
2529
2529
|
|
|
2530
|
-
|
|
2530
|
+
See every third-party tool a chat can reach (managed integrations + custom servers) and manage **custom MCP servers** — point the agent at any remote HTTPS MCP endpoint. Registered tools appear as `mcp__<name>__*` on the next chat message.
|
|
2531
2531
|
|
|
2532
2532
|
```bash
|
|
2533
|
+
baker mcp connected
|
|
2533
2534
|
baker mcp list
|
|
2534
2535
|
baker mcp add --name weather --url https://mcp.example.com/mcp
|
|
2535
2536
|
baker mcp add --name acme --url https://acme.dev/mcp --header "Authorization: Bearer sk-…"
|
package/dist/cli.js
CHANGED
|
@@ -26045,6 +26045,44 @@ function fail4(err) {
|
|
|
26045
26045
|
writeJson({ ok: false, error: { code: "NETWORK_ERROR", message: "Unexpected error" } });
|
|
26046
26046
|
process.exit(1);
|
|
26047
26047
|
}
|
|
26048
|
+
registerSchema({
|
|
26049
|
+
command: "mcp.connected",
|
|
26050
|
+
description: "List every third-party tool this chat can reach: managed integrations (Attio, Slack, Gmail, Google Sheets, \u2026) plus custom MCP servers. Start here when the user mentions an external tool.",
|
|
26051
|
+
args: {}
|
|
26052
|
+
});
|
|
26053
|
+
var connectedCommand = defineCommand133({
|
|
26054
|
+
meta: {
|
|
26055
|
+
name: "connected",
|
|
26056
|
+
description: `List all connected third-party tools \u2014 managed integrations plus custom MCP servers.
|
|
26057
|
+
|
|
26058
|
+
Managed tools ride the composio servers (mcp__composio_<scope>__*); custom servers expose mcp__<name>__*.
|
|
26059
|
+
A tool the user names that is NOT listed here is simply not connected yet.`
|
|
26060
|
+
},
|
|
26061
|
+
run: async () => {
|
|
26062
|
+
try {
|
|
26063
|
+
const user = actingUserId();
|
|
26064
|
+
const data = await apiGet("/api/mcp/connected", user ? { actingUserId: user } : void 0);
|
|
26065
|
+
const managed = data.managed.map((c) => ({
|
|
26066
|
+
toolkit: c.toolkitSlug,
|
|
26067
|
+
scope: c.scope,
|
|
26068
|
+
...c.status !== "ACTIVE" ? { status: c.status } : {},
|
|
26069
|
+
...c.accountLabel ? { account: c.accountLabel } : {},
|
|
26070
|
+
...c.readOnly ? { readOnly: true } : {}
|
|
26071
|
+
}));
|
|
26072
|
+
const custom = data.custom.map((s) => ({ name: s.name, scope: s.scope, enabled: s.enabled }));
|
|
26073
|
+
const hints = [];
|
|
26074
|
+
if (data.managedDisabled) {
|
|
26075
|
+
hints.push("Managed integrations are disabled for this company \u2014 only custom MCP servers load.");
|
|
26076
|
+
}
|
|
26077
|
+
hints.push(
|
|
26078
|
+
"Not listed = not connected. Managed app (Slack, HubSpot, Attio, \u2026) \u2192 the user connects it in the dashboard: Brain \u2192 Integrations \u2192 Tools. Custom HTTPS MCP endpoint \u2192 `baker mcp add`."
|
|
26079
|
+
);
|
|
26080
|
+
writeJson({ ok: true, data: { managed, custom }, hints });
|
|
26081
|
+
} catch (err) {
|
|
26082
|
+
fail4(err);
|
|
26083
|
+
}
|
|
26084
|
+
}
|
|
26085
|
+
});
|
|
26048
26086
|
registerSchema({
|
|
26049
26087
|
command: "mcp.list",
|
|
26050
26088
|
description: "List the custom MCP servers this company's chats see (org + company + your own user scope).",
|
|
@@ -26141,13 +26179,13 @@ Example:
|
|
|
26141
26179
|
var mcpCommand = defineCommand133({
|
|
26142
26180
|
meta: {
|
|
26143
26181
|
name: "mcp",
|
|
26144
|
-
description: `
|
|
26182
|
+
description: `Third-party tools for this company \u2014 see what's connected, register custom HTTPS MCP endpoints.
|
|
26145
26183
|
|
|
26146
26184
|
Tools from a registered server appear as mcp__<name>__* on the next message.
|
|
26147
26185
|
Managed here are **company-scoped** servers; user- and org-scoped servers are managed in the dashboard.
|
|
26148
26186
|
|
|
26149
26187
|
Start here:
|
|
26150
|
-
baker mcp
|
|
26188
|
+
baker mcp connected # everything this chat can reach: managed integrations + custom servers
|
|
26151
26189
|
|
|
26152
26190
|
Examples:
|
|
26153
26191
|
baker mcp add --name weather --url https://mcp.example.com/mcp
|
|
@@ -26156,6 +26194,7 @@ Examples:
|
|
|
26156
26194
|
Full guide: __tooling__/docs/tools/baker/mcp.md`
|
|
26157
26195
|
},
|
|
26158
26196
|
subCommands: {
|
|
26197
|
+
connected: connectedCommand,
|
|
26159
26198
|
list: listCommand8,
|
|
26160
26199
|
add: addCommand,
|
|
26161
26200
|
remove: removeCommand4
|