episoda 0.2.120 → 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,17 +8959,45 @@ 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
|
+
}
|
|
8968
|
+
const sessionToken = process.env.EPISODA_ACCESS_TOKEN || process.env.EPISODA_SESSION_TOKEN || "";
|
|
8969
|
+
const devEnvId = process.env.EPISODA_CONTAINER_ID || process.env.EPISODA_MACHINE_ID || "";
|
|
8970
|
+
const episodaMcpEnv = {
|
|
8971
|
+
...baseEnv,
|
|
8972
|
+
EPISODA_API_URL: process.env.EPISODA_API_URL || "https://episoda.dev",
|
|
8973
|
+
EPISODA_SESSION_TOKEN: sessionToken,
|
|
8974
|
+
MODULE_UID: session.moduleUid,
|
|
8975
|
+
DEV_ENVIRONMENT_ID: devEnvId
|
|
8976
|
+
};
|
|
8977
|
+
const githubMcpEnv = {
|
|
8978
|
+
...baseEnv,
|
|
8979
|
+
GITHUB_PERSONAL_ACCESS_TOKEN: session.credentials.githubToken || ""
|
|
8980
|
+
};
|
|
8962
8981
|
for (const mcpServer of mcpServersToRegister) {
|
|
8963
8982
|
const parts = mcpServer.command.split(" ");
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8983
|
+
if (mcpServer.name === "github") {
|
|
8984
|
+
mcpConfig[mcpServer.name] = {
|
|
8985
|
+
command: parts[0],
|
|
8986
|
+
args: parts.slice(1),
|
|
8987
|
+
env: githubMcpEnv
|
|
8988
|
+
};
|
|
8989
|
+
} else {
|
|
8990
|
+
mcpConfig[mcpServer.name] = {
|
|
8991
|
+
command: parts[0],
|
|
8992
|
+
args: parts.slice(1),
|
|
8993
|
+
env: episodaMcpEnv
|
|
8994
|
+
};
|
|
8995
|
+
}
|
|
8996
|
+
console.log(`[AgentManager] EP1253: Registering MCP server: ${mcpServer.name} with full env (${Object.keys(mcpServer.name === "github" ? githubMcpEnv : episodaMcpEnv).length} vars)`);
|
|
8969
8997
|
}
|
|
8970
8998
|
const mcpConfigJson = JSON.stringify({ mcpServers: mcpConfig });
|
|
8971
8999
|
args.push("--mcp-config", mcpConfigJson);
|
|
8972
|
-
console.log(`[AgentManager]
|
|
9000
|
+
console.log(`[AgentManager] EP1253: MCP config with env: ${mcpConfigJson.substring(0, 200)}...`);
|
|
8973
9001
|
}
|
|
8974
9002
|
args.push("--", message);
|
|
8975
9003
|
}
|