Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions content/tools-registry/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,59 @@ console.log(text);`,
websiteUrl: 'https://parallel.ai',
npmUrl: 'https://www.npmjs.com/package/@parallel-web/ai-sdk-tools',
},
{
slug: 'ctx-zip',
name: 'ctx-zip',
description:
'Transform MCP tools and AI SDK tools into code, write it to a Vercel sandbox file system and have the agent import the tools, write code, and execute it.',
packageName: 'ctx-zip',
tags: ['code-execution', 'sandbox', 'mcp', 'code-mode'],
apiKeyEnvName: 'VERCEL_OIDC_TOKEN',
installCommand: {
pnpm: 'pnpm install ctx-zip',
npm: 'npm install ctx-zip',
yarn: 'yarn add ctx-zip',
bun: 'bun add ctx-zip',
},
codeExample: `import { gateway, generateText, stepCountIs } from 'ai';
import { createVercelSandboxCodeMode, SANDBOX_SYSTEM_PROMPT } from 'ctx-zip';

const { tools } = await createVercelSandboxCodeMode({
servers: [
{
name: 'vercel',
url: 'https://mcp.vercel.com',
useSSE: false,
headers: {
Authorization: \`Bearer \${process.env.VERCEL_API_KEY}\`,
},
},
],
standardTools: {
weather: weatherTool,
},
});

const { text } = await generateText({
model: gateway('openai/gpt-4.1-mini'),
tools,
stopWhen: stepCountIs(20),
system: SANDBOX_SYSTEM_PROMPT,
messages: [
{
role: 'user',
content: 'What tools are available from the Vercel MCP server?',
},
],
});

console.log(text);
`,
docsUrl: 'https://github.com/karthikscale3/ctx-zip/blob/main/README.md',
apiKeyUrl: 'https://vercel.com/docs/vercel-sandbox#authentication',
websiteUrl: 'https://github.com/karthikscale3/ctx-zip/blob/main/README.md',
npmUrl: 'https://www.npmjs.com/package/ctx-zip',
},
{
slug: 'perplexity-search',
name: 'Perplexity Search',
Expand Down
Loading