Skip to content

fix(cli): keep the injector alive while the MCP server is running - #614

Merged
Romakita merged 2 commits into
masterfrom
fix/mcp-keep-injector-alive
Oct 3, 2026
Merged

Romakita merged 2 commits into
masterfrom
fix/mcp-keep-injector-alive

Conversation

@Romakita

@Romakita Romakita commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

The mcp command handler resolved as soon as the server was connected, so CliService destroyed the injector and every later tool call ran on an empty container: list-templates returned no template and get-template / generate-file failed with E_TEMPLATE_UNKNOWN.

Keep the handler pending until stdin closes (stdio) or for the lifetime of the process (streamable HTTP).

Romakita and others added 2 commits October 3, 2026 19:09
The mcp command handler resolved as soon as the server was connected, so CliService destroyed the injector and every later tool call ran on an empty container: list-templates returned no template and get-template / generate-file failed with E_TEMPLATE_UNKNOWN.

Keep the handler pending until stdin closes (stdio) or for the lifetime of the process (streamable HTTP).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rmation

set-workspace and tsed://project/info returned the convention but not the architecture, although both drive where generated files are written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Romakita
Romakita merged commit 0892ff0 into master Oct 3, 2026
15 checks passed
@Romakita

Romakita commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 7.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant