@devries-cameron20 / composio Mirror · read-only / commits / 6c4a4ab7c
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 21, 21:00 UTC

docs: add missing .use() hints to OpenAI Agents MCP and Anthropic MCP tabs

Also fixes stale MCP prompt banner referencing old destructure pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Abir Taheer committed May 8, 2026 at 15:25 UTC 6c4a4ab7c459e3f949ed19c3ae61704218010cce
1 file changed +18 -2
docs/content/docs/quickstart.mdx
+18 -2
@@ -322,6 +322,10 @@ composio = Composio()
322 user_id = "user_123"
323 session = composio.create(user_id=user_id)
324
325 +# For multi-turn, store the session ID and reuse instead of calling create() again:
326 +# session_id = session.session_id
327 +# session = composio.use(session_id)
328 +
329 agent = Agent(
330 name="Personal Assistant",
331 instructions="You are a helpful personal assistant. Use Composio tools to take action.",
@@ -374,6 +378,10 @@ const composio = new Composio();
378 const userId = "user_123";
379 const session = await composio.create(userId);
380
381 +// For multi-turn, store the session ID and reuse instead of calling create() again:
382 +// const sessionId = session.sessionId;
383 +// const session = await composio.use(sessionId);
384 +
385 const agent = new Agent({
386 name: "Personal Assistant",
387 instructions: "You are a helpful personal assistant. Use Composio tools to take action.",
@@ -763,6 +771,10 @@ composio = Composio()
771 user_id = "user_123"
772 session = composio.create(user_id=user_id)
773
774 +# For multi-turn, store the session ID and reuse instead of calling create() again:
775 +# session_id = session.session_id
776 +# session = composio.use(session_id)
777 +
778 options = ClaudeAgentOptions(
779 system_prompt=(
780 "You are a helpful assistant with access to external tools. "
@@ -822,6 +834,10 @@ const composio = new Composio();
834 const userId = "user_123";
835 const session = await composio.create(userId);
836
837 +// For multi-turn, store the session ID and reuse instead of calling create() again:
838 +// const sessionId = session.sessionId;
839 +// const session = await composio.use(sessionId);
840 +
841 const options: Options = {
842 systemPrompt: `You are a helpful assistant with access to external tools. ` +
843 `Always use the available tools to complete user requests.`,
@@ -1046,7 +1062,7 @@ Give your Vercel AI agent access to 1000+ tools (Gmail, GitHub, Slack, Notion, e
1062 **Rules**
1063
1064 ALWAYS:
1049 -- Use `mcp.url` and `mcp.headers` from the session — destructure with `const { mcp } = await composio.create(userId)`
1065 +- Use `mcp.url` and `mcp.headers` from the session object returned by `composio.create(userId)`
1066 - Set transport type to `"http"` in createMCPClient
1067 - Set `maxSteps` to allow multi-step tool use (e.g., `maxSteps: 10`)
1068 - Close the MCP client when done: `await client.close()`
@@ -1077,7 +1093,7 @@ const result = await generateText({ model, tools, prompt });
1093 **Verify before responding**
1094
1095 1. Is `Composio()` initialized WITHOUT a provider?
1080 -2. Is `mcp.url` and `mcp.headers` destructured from `composio.create(userId)`?
1096 +2. Are `mcp.url` and `mcp.headers` taken from the session returned by `composio.create(userId)`?
1097 3. Is transport type `"http"` in `createMCPClient`?
1098 4. Is `maxSteps` set in `streamText` / `generateText`?
1099 5. Is `client.close()` called when done?