Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 17:00 UTC
claude fixes
Sushmithamallesh committed
Dec 15, 2025 at 16:52 UTC
a9d60a2bdc644950ca3cb5d6ff63b0d33b1f38e9
2 files changed
+3
-3
fern/snippets/tool-router/typescript/mcp-claude.ts
+2
-3
@@ -66,9 +66,8 @@ async function main() {
66
const userInput = await rl.question("You: ");
67
68
if (userInput.toLowerCase() !== "quit" && userInput.toLowerCase() !== "exit" && userInput) {
69
- const queryOptions = isFirstQuery ? options : { ...options, continue: true };
70
-
71
- for await (const msg of query({ prompt: userInput, options: queryOptions })) {
69
+ // Continue the conversation with the same context
70
+ for await (const msg of query({ prompt: userInput, options: { ...options, continue: true } })) {
71
if (msg.type === "assistant") {
72
for (const block of msg.message.content) {
73
if (block.type === "tool_use") {
fern/snippets/tool-router/typescript/quickstart-claude.ts
+1
@@ -38,6 +38,7 @@ while (true) {
38
if (input.toLowerCase() === "quit" || input.toLowerCase() === "exit") break;
39
40
process.stdout.write("Claude: ");
41
+ // First query starts a new conversation, subsequent queries continue it
42
const queryOptions = isFirstQuery ? options : { ...options, continue: true };
43
isFirstQuery = false;
44