Opsera MCP Server Configuration Guide
Connect Opsera DevOps Agent to Claude Code, Claude Desktop, VS Code, and Cursor IDE on macOS, Windows, and Linux
1 Prerequisites
Before configuring your MCP client, you'll need an Opsera API token.
Get Your Token
Request access at /request-token
Once approved, sign in to your dashboard
Copy your API token (starts with opsera_)
Server Details
Copy
MCP Server URL: http://opseramcp-dev.agent.opsera.dev/mcp
Transport Type: streamable-http
Authorization: Bearer YOUR_TOKEN_HERE
2 Claude Code (CLI)
Configure Opsera MCP Server for Claude Code command-line interface.
Configuration File Locations
Platform User Scope Project Scope
macOS ~/.claude/settings.json.mcp.json in project root
Windows %USERPROFILE%\.claude\settings.json.mcp.json in project root
Linux ~/.claude/settings.json.mcp.json in project root
Add via Command Line
macOS/Linux
Windows
Copy
# Add Opsera MCP Server (user scope - available across all projects)
claude mcp add opsera -s user -e OPSERA_TOKEN=YOUR_TOKEN_HERE -- curl -X POST http://opseramcp-dev.agent.opsera.dev/mcp
# Or add to current project only
claude mcp add opsera -s project -- curl -X POST http://opseramcp-dev.agent.opsera.dev/mcp
Copy
REM Add Opsera MCP Server (user scope)
claude mcp add opsera -s user -e OPSERA_TOKEN=YOUR_TOKEN_HERE -- curl -X POST http://opseramcp-dev.agent.opsera.dev/mcp
Manual Configuration (settings.json)
Copy
{
"mcpServers": {
"opsera": {
"type": "streamable-http",
"url": "http://opseramcp-dev.agent.opsera.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Useful Commands
# List all configured servers
claude mcp list
# Remove a server
claude mcp remove opsera
# Test server connection
claude mcp get opsera
3 Claude Desktop
Configure Opsera MCP Server for Claude Desktop application.
Configuration File Locations
Platform Configuration Path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
Linux ~/.config/Claude/claude_desktop_config.json
How to Access Settings
macOS
Windows
Open Claude Desktop
Go to Claude → Settings → Developers → Edit Config
Add the configuration below and save
Open Claude Desktop
Go to File → Settings → Developers → Edit Config
Or press Win + R, type %APPDATA%\Claude, press Enter
Open claude_desktop_config.json with a text editor
Configuration
Copy
{
"mcpServers": {
"opsera": {
"type": "streamable-http",
"url": "http://opseramcp-dev.agent.opsera.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Important: Save the file and restart Claude Desktop for changes to take effect.
4 VS Code
Configure Opsera MCP Server for Visual Studio Code with GitHub Copilot.
Prerequisites
VS Code 1.102 or later
GitHub Copilot Chat extension installed and enabled
MCP enabled in VS Code settings
Configuration File Locations
Platform Workspace Config User Settings
macOS .vscode/mcp.json~/Library/Application Support/Code/User/settings.json
Windows .vscode/mcp.json%APPDATA%\Code\User\settings.json
Linux .vscode/mcp.json~/.config/Code/User/settings.json
Method 1: Workspace Configuration (.vscode/mcp.json)
Copy
{
"servers": {
"opsera": {
"type": "http",
"url": "http://opseramcp-dev.agent.opsera.dev/mcp",
"headers": {
"Authorization": "Bearer ${input:opseraToken}"
}
}
},
"inputs": [
{
"id": "opseraToken",
"type": "promptString",
"description": "Enter your Opsera API token",
"password": true
}
]
}
Method 2: User Settings (settings.json)
Copy
{
"mcp": {
"servers": {
"opsera": {
"type": "http",
"url": "http://opseramcp-dev.agent.opsera.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
}
Method 3: Command Palette
Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux)
Run MCP: Add Server
Select HTTP transport type
Enter URL: http://opseramcp-dev.agent.opsera.dev/mcp
Recommended Settings
{
"chat.mcp.autostart": true,
"chat.mcp.gallery.enabled": true,
"chat.mcp.discovery.enabled": true
}
5 Cursor IDE
Configure Opsera MCP Server for Cursor IDE.
Configuration File Locations
Scope macOS/Linux Windows
Global ~/.cursor/mcp.json%USERPROFILE%\.cursor\mcp.json
Project .cursor/mcp.json.cursor/mcp.json
Enable MCP in Cursor
Open Settings → Cursor Settings
Find MCP servers option
Enable it
Configuration
Copy
{
"mcpServers": {
"opsera": {
"url": "http://opseramcp-dev.agent.opsera.dev/mcp",
"transport": "http",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Note: Cursor supports a maximum of 40 tools active simultaneously. Only tools are supported (resources not yet available).
6 Troubleshooting
Common Issues
Issue Solution
Server not starting
Check that your token is valid. Try regenerating from dashboard .
Authentication failed
Ensure the Authorization header includes "Bearer " prefix before your token.
Server not appearing
Restart your MCP client after saving configuration changes.
JSON syntax errors
Validate your JSON at jsonlint.com
Path issues on Windows
Use double backslashes (\\) or forward slashes (/) in JSON paths.
Validate Your Configuration
macOS/Linux
Windows
cat ~/.cursor/mcp.json | python3 -m json.tool
type %USERPROFILE%\.cursor\mcp.json | python -m json.tool
Test Connection
Copy
curl -X POST http://opseramcp-dev.agent.opsera.dev/mcp \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Need Help?
Contact support@opsera.io for assistance.
Available Tools
Once connected, you'll have access to these AI-powered DevOps tools: