impel-cli 0.20.0 → 0.20.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/package.json +1 -1
- package/src/selfInvocation.js +5 -1
package/package.json
CHANGED
package/src/selfInvocation.js
CHANGED
|
@@ -91,7 +91,11 @@ export function impelTasksMcpInvocation(tenantId, options = {}) {
|
|
|
91
91
|
export function isImpelTasksMcpInvocation(value) {
|
|
92
92
|
if (!value || typeof value !== "object" || !Array.isArray(value.args)) return false;
|
|
93
93
|
const suffix = value.args.slice(-5);
|
|
94
|
-
|
|
94
|
+
// Claude Desktop persists stdio servers without the optional `type` field.
|
|
95
|
+
// Accept that vendor-normalized form so the next Impel update can still
|
|
96
|
+
// recognize, re-pin, and repair its own tenant-bound entry. Any explicit
|
|
97
|
+
// non-stdio type remains foreign and fails closed.
|
|
98
|
+
return (value.type === undefined || value.type === "stdio")
|
|
95
99
|
&& value.env?.[IMPEL_MANAGED_MCP_ENV] === "1"
|
|
96
100
|
&& suffix[0] === "mcp"
|
|
97
101
|
&& suffix[1] === "--target"
|