@devries-cameron20 / composio-1 / commits / a52199466
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): update Claude Agent SDK TypeScript quickstart snippets

- Removed try/catch and redundant comments from MCP snippet - Fixed tool call display formatting (indented, own line) - Simplified input handling in MCP snippet - Added missing readline.close() to native snippet - Fixed banner indentation in native snippet - Bumped @composio/claude-agent-sdk ^0.5.5 → ^0.6.3 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 19, 2026 at 10:33 UTC a521994663b42d65f409544ada1818c00931c352
2 files changed +17 -23
docs/content/docs/quickstart.mdx
+16 -22
@@ -417,9 +417,10 @@ What task would you like me to help you with?
417 I can use tools like Gmail, GitHub, Linear, Notion, and more.
418 (Type 'exit' to exit)
419 Example tasks:
420 - - 'Summarize my emails from today'
421 - - 'List all open issues on the composio github repository and create a Google Sheet with the issues'
420 + - 'Summarize my emails from today'
421 + - 'List all open issues on the composio github repository and create a Google Sheet with the issues'
422 `);
423 +
424 let isFirstQuery = true;
425 const options = {
426 mcpServers: { composio: customServer },
@@ -430,10 +431,10 @@ while (true) {
431 const input = (await readline.question("You: ")).trim();
432 if (input.toLowerCase() === "exit") break;
433
433 - process.stdout.write("Claude: ");
434 const queryOptions = isFirstQuery ? options : { ...options, continue: true };
435 isFirstQuery = false;
436
437 + process.stdout.write("Claude: ");
438 for await (const stream of query({ prompt: input, options: queryOptions })) {
439 if (stream.type === "assistant") {
440 for (const block of stream.message.content) {
@@ -446,6 +447,8 @@ while (true) {
447 console.log();
448 }
449
450 +readline.close();
451 +
452 readline.close();
453 ```
454 </Tab>
@@ -592,35 +595,26 @@ Example tasks:
595
596 let isFirstQuery = true;
597
595 -// Multi-turn conversation with agentic tool calling
598 while (true) {
597 - const answer = await readline.question('You: ');
598 - const input = answer.trim();
599 + const input = (await readline.question("You: ")).trim();
600 if (input.toLowerCase() === "exit") break;
601
601 - process.stdout.write("Claude: ");
602 -
603 - // Use `continue: true` to maintain conversation context
602 const queryOptions = isFirstQuery ? options : { ...options, continue: true };
603 isFirstQuery = false;
604
607 - try {
608 - for await (const stream of query({ prompt: input, options: queryOptions })) {
609 - if (stream.type === "assistant") {
610 - const { content } = stream.message;
611 - for (const block of content) {
612 - if (block.type === "tool_use") {
613 - process.stdout.write(`\n[Using tool: ${block.name}]`);
614 - } else if (block.type === "text") {
615 - process.stdout.write(block.text);
616 - }
605 + process.stdout.write("Claude: ");
606 + for await (const stream of query({ prompt: input, options: queryOptions })) {
607 + if (stream.type === "assistant") {
608 + for (const block of stream.message.content) {
609 + if (block.type === "tool_use") {
610 + process.stdout.write(`\n [Using tool: ${block.name}]\n`);
611 + } else if (block.type === "text") {
612 + process.stdout.write(block.text);
613 }
614 }
615 }
620 - } catch (error) {
621 - console.error("\n[Error]:", error instanceof Error ? error.message : error);
616 }
623 - process.stdout.write("\n");
617 + console.log();
618 }
619
620 readline.close();
docs/package.json
+1 -1
@@ -39,7 +39,7 @@
39 "@anthropic-ai/claude-agent-sdk": "^0.2.5",
40 "@anthropic-ai/sdk": "^0.71.2",
41 "@composio/anthropic": "^0.5.5",
42 - "@composio/claude-agent-sdk": "^0.5.5",
42 + "@composio/claude-agent-sdk": "^0.6.3",
43 "@composio/core": "^0.6.3",
44 "@composio/google": "^0.5.5",
45 "@composio/langchain": "^0.5.5",