@devries-cameron20 / composio-1 / commits / 80bc35e82
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.

remove vercel client

Sushmithamallesh committed Oct 12, 2025 at 19:21 UTC 80bc35e82121ea55fab389797f0c7f6965e839d2
1 file changed -26
fern/snippets/mcp/typescript/vercel-client.ts deleted
-26
@@ -1,26 +0,0 @@
1 -import { experimental_createMCPClient as createMCPClient } from 'ai';
2 -import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
3 -
4 -// Use the MCP server URL you generated
5 -const mcpServerUrl = "https://backend.composio.dev/v3/mcp/YOUR_SERVER_ID?include_composio_helper_actions=true&user_id=YOUR_USER_ID";
6 -
7 -// Create MCP client
8 -const mcpClient = await createMCPClient({
9 - name: 'composio-mcp-client',
10 - transport: new SSEClientTransport(new URL(mcpServerUrl)),
11 -});
12 -
13 -// Get available tools from the MCP server
14 -const tools = await mcpClient.tools();
15 -
16 -// Use with Vercel AI SDK
17 -import { generateText } from 'ai';
18 -import { openai } from '@ai-sdk/openai';
19 -
20 -const result = await generateText({
21 - model: openai('gpt-4-turbo'),
22 - tools: tools,
23 - prompt: 'Send an email to john@example.com with meeting notes',
24 -});
25 -
26 -console.log(result.text);
\ No newline at end of file