episoda 0.2.121 → 0.2.122
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.
|
@@ -2815,7 +2815,7 @@ var require_package = __commonJS({
|
|
|
2815
2815
|
"package.json"(exports2, module2) {
|
|
2816
2816
|
module2.exports = {
|
|
2817
2817
|
name: "episoda",
|
|
2818
|
-
version: "0.2.
|
|
2818
|
+
version: "0.2.121",
|
|
2819
2819
|
description: "CLI tool for Episoda local development workflow orchestration",
|
|
2820
2820
|
main: "dist/index.js",
|
|
2821
2821
|
types: "dist/index.d.ts",
|
|
@@ -8959,23 +8959,32 @@ If changes are needed, explain what needs to be done.`;
|
|
|
8959
8959
|
const mcpServersToRegister = this.getMcpServersForSession(session);
|
|
8960
8960
|
if (mcpServersToRegister.length > 0) {
|
|
8961
8961
|
const mcpConfig = {};
|
|
8962
|
+
const baseEnv = {};
|
|
8963
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
8964
|
+
if (value !== void 0) {
|
|
8965
|
+
baseEnv[key] = value;
|
|
8966
|
+
}
|
|
8967
|
+
}
|
|
8962
8968
|
const sessionToken = process.env.EPISODA_ACCESS_TOKEN || process.env.EPISODA_SESSION_TOKEN || "";
|
|
8963
8969
|
const devEnvId = process.env.EPISODA_CONTAINER_ID || process.env.EPISODA_MACHINE_ID || "";
|
|
8964
8970
|
const episodaMcpEnv = {
|
|
8971
|
+
...baseEnv,
|
|
8965
8972
|
EPISODA_API_URL: process.env.EPISODA_API_URL || "https://episoda.dev",
|
|
8966
8973
|
EPISODA_SESSION_TOKEN: sessionToken,
|
|
8967
8974
|
MODULE_UID: session.moduleUid,
|
|
8968
8975
|
DEV_ENVIRONMENT_ID: devEnvId
|
|
8969
8976
|
};
|
|
8977
|
+
const githubMcpEnv = {
|
|
8978
|
+
...baseEnv,
|
|
8979
|
+
GITHUB_PERSONAL_ACCESS_TOKEN: session.credentials.githubToken || ""
|
|
8980
|
+
};
|
|
8970
8981
|
for (const mcpServer of mcpServersToRegister) {
|
|
8971
8982
|
const parts = mcpServer.command.split(" ");
|
|
8972
8983
|
if (mcpServer.name === "github") {
|
|
8973
8984
|
mcpConfig[mcpServer.name] = {
|
|
8974
8985
|
command: parts[0],
|
|
8975
8986
|
args: parts.slice(1),
|
|
8976
|
-
env:
|
|
8977
|
-
GITHUB_PERSONAL_ACCESS_TOKEN: session.credentials.githubToken || ""
|
|
8978
|
-
}
|
|
8987
|
+
env: githubMcpEnv
|
|
8979
8988
|
};
|
|
8980
8989
|
} else {
|
|
8981
8990
|
mcpConfig[mcpServer.name] = {
|
|
@@ -8984,7 +8993,7 @@ If changes are needed, explain what needs to be done.`;
|
|
|
8984
8993
|
env: episodaMcpEnv
|
|
8985
8994
|
};
|
|
8986
8995
|
}
|
|
8987
|
-
console.log(`[AgentManager] EP1253: Registering MCP server: ${mcpServer.name} with
|
|
8996
|
+
console.log(`[AgentManager] EP1253: Registering MCP server: ${mcpServer.name} with full env (${Object.keys(mcpServer.name === "github" ? githubMcpEnv : episodaMcpEnv).length} vars)`);
|
|
8988
8997
|
}
|
|
8989
8998
|
const mcpConfigJson = JSON.stringify({ mcpServers: mcpConfig });
|
|
8990
8999
|
args.push("--mcp-config", mcpConfigJson);
|