@devries-cameron20 / composio Mirror · read-only / commits / 7869363a4
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 17:00 UTC

fix stuff

Sushmithamallesh committed Dec 15, 2025 at 16:44 UTC 7869363a48a175fcc56ba8fe67fc848a9e97ad75
5 files changed +14 -15
fern/snippets/tool-router/python/mcp-claude.py
+4 -4
@@ -1,5 +1,3 @@
1 -# Fetch GitHub issues and organize them in a Google Sheet using Claude
2 -
1 import asyncio
2 import os
3 from dotenv import load_dotenv
@@ -16,7 +14,8 @@ session = composio.create(user_id=user_id)
14
15 # Configure Claude with Composio MCP server
16 options = ClaudeAgentOptions(
19 - system_prompt="You are a helpful assistant with access to external tools. Always use the available tools to complete user requests.",
17 + system_prompt=("You are a helpful assistant with access to external tools. "
18 + "Always use the available tools to complete user requests."),
19 mcp_servers={
20 "composio": {
21 "type": "http",
@@ -33,7 +32,8 @@ async def main():
32
33 async with ClaudeSDKClient(options) as client:
34 # Initial task
36 - query = "Fetch all open issues from the composio/composio GitHub repository and create a Google Sheet with issue number, title, labels, and author"
35 + query = ("Fetch all open issues from the composio/composio GitHub repository "
36 + "and create a Google Sheet with issue number, title, labels, and author")
37
38 print(f"Task: {query}\n")
39 print("Claude: ", end="")
fern/snippets/tool-router/python/mcp-openai.py
+2 -3
@@ -1,5 +1,3 @@
1 -# An agent that fetches and categorizes GitHub issues using OpenAI and Composio Tool Router
2 -
1 import os
2 from dotenv import load_dotenv
3 from composio import Composio
@@ -52,6 +50,7 @@ print("Running the OpenAI agent to fetch GitHub issues...\n")
50 # Execute a task that requires GitHub access
51 result = Runner.run_sync(
52 starting_agent=agent,
55 - input="Fetch all the open GitHub issues on the composio/composio repository and group them by bugs/features/docs."
53 + input=("Fetch all the open GitHub issues on the composio/composio repository "
54 + "and group them by bugs/features/docs.")
55 )
56 print(f"Result: {result.final_output}")
\ No newline at end of file
fern/snippets/tool-router/typescript/mcp-claude.ts
+4 -4
@@ -1,5 +1,3 @@
1 -// Fetch GitHub issues and organize them in a Google Sheet using Claude
2 -
1 import "dotenv/config"; // Load environment variables from .env file
2 import { query, type Options } from "@anthropic-ai/claude-agent-sdk";
3 import { Composio } from "@composio/core";
@@ -17,7 +15,8 @@ const session = await composio.create(userId);
15
16 // Configure Claude with Composio MCP server
17 const options: Options = {
20 - systemPrompt: "You are a helpful assistant with access to external tools. Always use the available tools to complete user requests.",
18 + systemPrompt: "You are a helpful assistant with access to external tools. " +
19 + "Always use the available tools to complete user requests.",
20 mcpServers: {
21 composio: {
22 type: "http",
@@ -35,7 +34,8 @@ async function main() {
34 const rl = createInterface({ input: process.stdin, output: process.stdout });
35
36 // Initial task
38 - const task = "Fetch all open issues from the composio/composio GitHub repository and create a Google Sheet with issue number, title, labels, and author";
37 + const task = "Fetch all open issues from the composio/composio GitHub repository " +
38 + "and create a Google Sheet with issue number, title, labels, and author";
39
40 console.log(`Task: ${task}\n`);
41
fern/snippets/tool-router/typescript/mcp-openai.ts
+2 -3
@@ -1,5 +1,3 @@
1 -// An agent that fetches and categorizes GitHub issues using OpenAI and Composio Tool Router
2 -
1 import "dotenv/config"; // Load environment variables from .env file
2 import { Composio } from "@composio/core";
3 import { Agent, hostedMcpTool, run } from "@openai/agents";
@@ -37,7 +35,8 @@ const agent = new Agent({
35 // Execute a task that requires GitHub access
36 const result = await run(
37 agent,
40 - "Fetch all the open GitHub issues on the composio/composio repository and group them by bugs/features/docs."
38 + "Fetch all the open GitHub issues on the composio/composio repository " +
39 + "and group them by bugs/features/docs."
40 );
41
42 console.log(`Result: ${result.finalOutput}`);
\ No newline at end of file
fern/snippets/tool-router/typescript/quickstart-claude.ts
+2 -1
@@ -13,7 +13,8 @@ const composio = new Composio({ apiKey: composioApiKey });
13 const session = await composio.create(userId);
14
15 const options: Options = {
16 - systemPrompt: "You are a helpful assistant with access to external tools. Always use the available tools to complete user requests instead of just explaining how to do them.",
16 + systemPrompt: "You are a helpful assistant with access to external tools. " +
17 + "Always use the available tools to complete user requests instead of just explaining how to do them.",
18 mcpServers: {
19 composio: {
20 type: "http",