AgentOps + LM Studio: Complete MCP Integration
AgentOps is a MCP server that Provide observability and tracing for debugging AI agents with AgentOps API..
When integrated with LM Studio, you can:
- Authorize with AgentOps API key
- Retrieve trace information by ID
- Get span information by ID
This guide provides step-by-step instructions to set up AgentOps in LM Studio, including configuration, examples, and troubleshooting.
What You'll Achieve
After completing this setup:
- AgentOps will be fully integrated and operational
- You can use AgentOps tools directly in LM Studio
- All AgentOps capabilities will be available for your workflows
- Access to 4 different tools
Prerequisites
Before starting, ensure you have:
- API key from AgentOps dashboard
- LM Studio installed and configured
- Compatible operating system (Desktop App)
Installation
Step 1: Install AgentOps
Configuration
Step 2: Configure LM Studio
- Open LM Studio settings
- Navigate to MCP server configuration
- Add AgentOps server with appropriate settings
- Save and restart if needed
Examples
Once configured, you can use AgentOps in LM Studio:
Agent Performance Debugging
undefined
Ask LM Studio: "Show me traces for agent runs that failed today"
Expected Result: undefined
Cost Analysis
undefined
Ask LM Studio: "Get cost breakdown for trace abc123"
Expected Result: undefined
Performance Optimization
undefined
Ask LM Studio: "Show slowest spans in recent traces"
Expected Result: undefined
Testing Your Setup
- Launch LM Studio
- Verify AgentOps is available in the tools list
- Test basic AgentOps functionality
Troubleshooting
Common Issues
Tools Not Working
Symptoms: Model hallucinates tool use, Nothing happens
Cause: Model does not support tool calling or server config is wrong.
Solution:
- Use a model known for good tool use (e.g., Llama 3.1 Tool-Use variants, Qwen 2.5).
- Verify
mcp.jsonsyntax. - Check console logs for MCP server errors.
AgentOps not appearing in LM Studio
Symptoms: Server not listed, Tools not available
Cause: Configuration or installation issue
Solution:
- Verify configuration syntax
- Check AgentOps installation
- Restart LM Studio
- Check logs for error messages
Next Steps
Now that AgentOps is integrated with LM Studio:
- Explore all AgentOps capabilities through LM Studio
- Check out other MCP servers that work with LM Studio
- Join the MCP community for tips and support
- Consider contributing to AgentOps development
Need Help?
- Search for AgentOps documentation
- Check the LM Studio MCP guide
- Join the MCP community discussions