@ateam-ai/mcp 0.4.90 → 0.4.91
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 +2 -2
- package/src/tools.js +17 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ateam-ai/mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.91",
|
|
4
4
|
"mcpName": "io.github.ariekogan/ateam-mcp",
|
|
5
5
|
"description": "A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"start:http": "node src/index.js --http",
|
|
14
14
|
"dev": "node --watch src/index.js",
|
|
15
15
|
"dev:http": "node --watch src/index.js --http",
|
|
16
|
-
"test": "node test/session-isolation.test.mjs && node test/widget-protocol.test.mjs && node test/actor-binding.test.mjs && node test/spec-topics.test.mjs && node test/example-types.test.mjs && node --test test/deploy-status-truth.test.mjs && node --test test/connector-source-provenance.test.mjs"
|
|
16
|
+
"test": "node test/session-isolation.test.mjs && node test/widget-protocol.test.mjs && node test/actor-binding.test.mjs && node test/spec-topics.test.mjs && node test/example-types.test.mjs && node --test test/deploy-status-truth.test.mjs && node --test test/connector-source-provenance.test.mjs && node --test test/bootstrap-base-url.test.mjs"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"mcp",
|
package/src/tools.js
CHANGED
|
@@ -3176,11 +3176,25 @@ function chainTreeOf(resp) {
|
|
|
3176
3176
|
// is the difference between proving behaviour and matching a string that a
|
|
3177
3177
|
// rename would quietly satisfy.
|
|
3178
3178
|
export const handlers = {
|
|
3179
|
-
|
|
3179
|
+
// (_args, sid) — the SESSION ID IS LOAD-BEARING HERE.
|
|
3180
|
+
//
|
|
3181
|
+
// getBaseUrl(sessionId) resolves per-session first (api.js:326-339): a caller
|
|
3182
|
+
// that passed `url` to ateam_auth is talking to THAT api, and the session
|
|
3183
|
+
// holds it. Bootstrap called it with NO argument, so it skipped the
|
|
3184
|
+
// per-session and bearer branches every time and reported the process
|
|
3185
|
+
// DEFAULT — https://api.ateam-ai.com.
|
|
3186
|
+
//
|
|
3187
|
+
// The result was a tool that says PROD while the session is authenticated to
|
|
3188
|
+
// DEV, in the one field whose whole job is to tell you which environment you
|
|
3189
|
+
// are on. Observed live: a session working entirely against
|
|
3190
|
+
// dev-api.ateam-ai.com was told base_url: https://api.ateam-ai.com, and had
|
|
3191
|
+
// to learn from deploy errors which environment it was actually on. The
|
|
3192
|
+
// dangerous direction is the mirror image — believing you are on dev.
|
|
3193
|
+
ateam_bootstrap: async (_args, sid) => ({
|
|
3180
3194
|
runtime: {
|
|
3181
3195
|
ateam_mcp_version: MCP_VERSION,
|
|
3182
|
-
base_url: getBaseUrl(),
|
|
3183
|
-
_note: "The version of the ateam-mcp process actually serving this call, and the API
|
|
3196
|
+
base_url: getBaseUrl(sid),
|
|
3197
|
+
_note: "The version of the ateam-mcp process actually serving this call, and the API THIS SESSION talks to (per-session, as set by ateam_auth's `url`). If a fix looks missing, check this FIRST — a local MCP process keeps running the code it loaded at session start, so a pushed/published fix is not live until the process restarts.",
|
|
3184
3198
|
},
|
|
3185
3199
|
platform_positioning: {
|
|
3186
3200
|
name: "A-Team",
|