episoda 0.2.116 → 0.2.118

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.115",
2818
+ version: "0.2.117",
2819
2819
  description: "CLI tool for Episoda local development workflow orchestration",
2820
2820
  main: "dist/index.js",
2821
2821
  types: "dist/index.d.ts",
@@ -8939,9 +8939,19 @@ If changes are needed, explain what needs to be done.`;
8939
8939
  session.claudeSessionId = resumeSessionId;
8940
8940
  }
8941
8941
  const mcpServersToRegister = this.getMcpServersForSession(session);
8942
- for (const mcpServer of mcpServersToRegister) {
8943
- args.push("--mcp", ...mcpServer.command.split(" "));
8944
- console.log(`[AgentManager] EP1233: Registering MCP server: ${mcpServer.name}`);
8942
+ if (mcpServersToRegister.length > 0) {
8943
+ const mcpConfig = {};
8944
+ for (const mcpServer of mcpServersToRegister) {
8945
+ const parts = mcpServer.command.split(" ");
8946
+ mcpConfig[mcpServer.name] = {
8947
+ command: parts[0],
8948
+ args: parts.slice(1)
8949
+ };
8950
+ console.log(`[AgentManager] EP1233: Registering MCP server: ${mcpServer.name}`);
8951
+ }
8952
+ const mcpConfigJson = JSON.stringify({ mcpServers: mcpConfig });
8953
+ args.push("--mcp-config", mcpConfigJson);
8954
+ console.log(`[AgentManager] EP1233: MCP config: ${mcpConfigJson}`);
8945
8955
  }
8946
8956
  args.push("--", message);
8947
8957
  }