Build advanced AI agents with Deepseek. Connect 600+ integrations, automate workflows, and deploy with ease using Metorial.
This guide covers common issues when using Metorial with the AI SDK and how to resolve them.
Solution: Check that your Metorial API key is correct:
// Make sure you're loading from environment variables
const metorial = new Metorial({
apiKey: process.env.METORIAL_API_KEY
});
// Verify the key is loaded
if (!process.env.METORIAL_API_KEY) {
throw new Error('METORIAL_API_KEY not found');
}
Solution: Your API key may have expired or been revoked. Generate a new one in your Metorial dashboard.
Solution: Verify your deployment ID is correct:
serverDeployments: ['abc-123-def'] // Correct
// Not: serverDeployments: 'abc-123-def' // Wrong
Solution: Your server deployment may be empty:
Solution: Check integration authentication:
Solution: The integration may not be in your deployment:
// Log available tools to debug
await metorial.withProviderSession(
metorialAiSdk,
{ serverDeployments: ['your-deployment-id'] },
async session => {
console.log('Available tools:', session.tools.map(t => t.function.name));
}
);
Solution:
maxSteps
parameterSolution: The task is too complex for the current maxSteps
limit:
maxSteps: 20 // Increase for more complex tasks
Or break the task into smaller subtasks.
Solution:
Solution:
let retries = 3;
while (retries > 0) {
try {
const result = await generateText({...});
break;
} catch (error) {
retries--;
if (retries === 0) throw error;
await new Promise(r => setTimeout(r, 1000));
}
}
If you're still experiencing issues:
Power your Deepseek AI agents with Metorial's extensive integration library featuring over 600 tools and services. Our MCP-powered platform makes it incredibly simple to connect Deepseek models to the APIs and services your applications need. With Metorial's TypeScript and Python SDKs, you can add integrations to your Deepseek-based agents in just a couple of lines of code, eliminating weeks of custom integration development. Whether you're building code assistants, data analysis tools, or intelligent automation with Deepseek's advanced models, Metorial provides instant connectivity to productivity tools, databases, communication platforms, and more. Our open-source, developer-first approach means you maintain full control while we handle the complexity of authentication, rate limiting, error handling, and API versioning. Focus your engineering resources on creating unique AI experiences rather than maintaining integration code. Join the growing community of developers who trust Metorial to handle their integration needs while they concentrate on innovation and delivering value to their users.
Let's take your AI-powered applications to the next level, together.
Metorial provides developers with instant access to 600+ MCP servers for building AI agents that can interact with real-world tools and services. Built on MCP, Metorial simplifies agent tool integration by offering pre-configured connections to popular platforms like Google Drive, Slack, GitHub, Notion, and hundreds of other APIs. Our platform supports all major AI agent frameworks—including LangChain, AutoGen, CrewAI, and LangGraph—enabling developers to add tool calling capabilities to their agents in just a few lines of code. By eliminating the need for custom integration code, Metorial helps AI developers move from prototype to production faster while maintaining security and reliability. Whether you're building autonomous research agents, customer service bots, or workflow automation tools, Metorial's MCP server library provides the integrations you need to connect your agents to the real world.