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