@sysvv/ai-skill 1.7.2 → 1.7.4
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/index.js +5 -2
- package/mcps/azure-devops.mcp.json +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -166,9 +166,12 @@ async function installSkills(agent) {
|
|
|
166
166
|
const mcpTarget = await writeMcp(agent, mcp);
|
|
167
167
|
console.log(` ${GREEN}✔${ANSI.reset} MCP ${ANSI.bold}${mcpName}${ANSI.reset} ${ANSI.dim}→ ${mcpTarget}${ANSI.reset}`);
|
|
168
168
|
// Coleta env vars do MCP
|
|
169
|
+
// Se o valor referencia ${VAR}, usa VAR como nome no .env
|
|
169
170
|
if (mcp.env) {
|
|
170
|
-
for (const key of Object.
|
|
171
|
-
|
|
171
|
+
for (const [key, value] of Object.entries(mcp.env)) {
|
|
172
|
+
const refMatch = value.match(/^\$\{(.+)\}$/);
|
|
173
|
+
const envKey = refMatch ? refMatch[1] : key;
|
|
174
|
+
envVarsNeeded.set(envKey, mcpName);
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
177
|
}
|