Skip to content

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 stuff

Sushmithamallesh7869363a48a1
diff --git a/fern/snippets/tool-router/python/mcp-claude.py b/fern/snippets/tool-router/python/mcp-claude.py
index c3bf21c7b..f1aa43016 100644
--- a/fern/snippets/tool-router/python/mcp-claude.py
+++ b/fern/snippets/tool-router/python/mcp-claude.py
@@ -1,5 +1,3 @@
-# Fetch GitHub issues and organize them in a Google Sheet using Claude
-
import asyncio
import os
from dotenv import load_dotenv
@@ -16,7 +14,8 @@ session = composio.create(user_id=user_id)
# Configure Claude with Composio MCP server
options = ClaudeAgentOptions(
- system_prompt="You are a helpful assistant with access to external tools. Always use the available tools to complete user requests.",
+ system_prompt=("You are a helpful assistant with access to external tools. "
+ "Always use the available tools to complete user requests."),
mcp_servers={
"composio": {
"type": "http",
@@ -33,7 +32,8 @@ async def main():
async with ClaudeSDKClient(options) as client:
# Initial task
- query = "Fetch all open issues from the composio/composio GitHub repository and create a Google Sheet with issue number, title, labels, and author"
+ query = ("Fetch all open issues from the composio/composio GitHub repository "
+ "and create a Google Sheet with issue number, title, labels, and author")
print(f"Task: {query}\n")
print("Claude: ", end="")
diff --git a/fern/snippets/tool-router/python/mcp-openai.py b/fern/snippets/tool-router/python/mcp-openai.py
index 332efaa83..2b31039b4 100644
--- a/fern/snippets/tool-router/python/mcp-openai.py
+++ b/fern/snippets/tool-router/python/mcp-openai.py
@@ -1,5 +1,3 @@
-# An agent that fetches and categorizes GitHub issues using OpenAI and Composio Tool Router
-
import os
from dotenv import load_dotenv
from composio import Composio
@@ -52,6 +50,7 @@ print("Running the OpenAI agent to fetch GitHub issues...\n")
# Execute a task that requires GitHub access
result = Runner.run_sync(
starting_agent=agent,
- input="Fetch all the open GitHub issues on the composio/composio repository and group them by bugs/features/docs."
+ input=("Fetch all the open GitHub issues on the composio/composio repository "
+ "and group them by bugs/features/docs.")
)
print(f"Result: {result.final_output}")
\ No newline at end of file
diff --git a/fern/snippets/tool-router/typescript/mcp-claude.ts b/fern/snippets/tool-router/typescript/mcp-claude.ts
index cc22917fb..ab3944024 100644
--- a/fern/snippets/tool-router/typescript/mcp-claude.ts
+++ b/fern/snippets/tool-router/typescript/mcp-claude.ts
@@ -1,5 +1,3 @@
-// Fetch GitHub issues and organize them in a Google Sheet using Claude
-
import "dotenv/config"; // Load environment variables from .env file
import { query, type Options } from "@anthropic-ai/claude-agent-sdk";
import { Composio } from "@composio/core";
@@ -17,7 +15,8 @@ const session = await composio.create(userId);
// Configure Claude with Composio MCP server
const options: Options = {
- systemPrompt: "You are a helpful assistant with access to external tools. Always use the available tools to complete user requests.",
+ systemPrompt: "You are a helpful assistant with access to external tools. " +
+ "Always use the available tools to complete user requests.",
mcpServers: {
composio: {
type: "http",
@@ -35,7 +34,8 @@ async function main() {
const rl = createInterface({ input: process.stdin, output: process.stdout });
// Initial task
- const task = "Fetch all open issues from the composio/composio GitHub repository and create a Google Sheet with issue number, title, labels, and author";
+ const task = "Fetch all open issues from the composio/composio GitHub repository " +
+ "and create a Google Sheet with issue number, title, labels, and author";
console.log(`Task: ${task}\n`);
diff --git a/fern/snippets/tool-router/typescript/mcp-openai.ts b/fern/snippets/tool-router/typescript/mcp-openai.ts
index ab86e7bb7..0b44e18b4 100644
--- a/fern/snippets/tool-router/typescript/mcp-openai.ts
+++ b/fern/snippets/tool-router/typescript/mcp-openai.ts
@@ -1,5 +1,3 @@
-// An agent that fetches and categorizes GitHub issues using OpenAI and Composio Tool Router
-
import "dotenv/config"; // Load environment variables from .env file
import { Composio } from "@composio/core";
import { Agent, hostedMcpTool, run } from "@openai/agents";
@@ -37,7 +35,8 @@ const agent = new Agent({
// Execute a task that requires GitHub access
const result = await run(
agent,
- "Fetch all the open GitHub issues on the composio/composio repository and group them by bugs/features/docs."
+ "Fetch all the open GitHub issues on the composio/composio repository " +
+ "and group them by bugs/features/docs."
);
console.log(`Result: ${result.finalOutput}`);
\ No newline at end of file
diff --git a/fern/snippets/tool-router/typescript/quickstart-claude.ts b/fern/snippets/tool-router/typescript/quickstart-claude.ts
index 61fdce976..0d40d0bdb 100644
--- a/fern/snippets/tool-router/typescript/quickstart-claude.ts
+++ b/fern/snippets/tool-router/typescript/quickstart-claude.ts
@@ -13,7 +13,8 @@ const composio = new Composio({ apiKey: composioApiKey });
const session = await composio.create(userId);
const options: Options = {
- 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.",
+ 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.",
mcpServers: {
composio: {
type: "http",