Midnight Compact MCPBeta
Server URL: https://midnight-mcp.web3fast.dev
Health Check: /health
MCP Endpoint: /mcp
Adding MCP to Cursor
Step 1: Create MCP Configuration
Create or edit your Cursor MCP configuration file:
~/.cursor/mcp/config.json
Step 2: Add Server Configuration
Add this configuration to your MCP config file:
Loading configuration...
Step 3: Alternative Simple Configuration
If you prefer a simpler setup, use this minimal config:
Loading configuration...
Available Tools
| Tool |
Description |
| search_compact_docs |
Search through Compact language documentation |
| compact_code_help |
Get programming help and code examples |
| midnight_quick_help |
Quick help for Midnight blockchain features |
Testing the Connection
Manual Test
Test the server manually with curl:
Loading test command...
Expected Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
{
"name": "search_compact_docs",
"description": "Search through compact documentation...",
"inputSchema": {...}
}
]
}
}
Usage in Cursor
Once configured, you can use the MCP tools in Cursor by:
- Opening the command palette (Cmd/Ctrl + Shift + P)
- Looking for MCP-related commands
- Using the tools in your conversations with Cursor's AI
Note: Make sure Cursor has network access to reach the MCP server endpoint.
The server is hosted and should be accessible from anywhere.
Troubleshooting
Common Issues
- Connection refused: Check if the server is running at the health endpoint
- JSON parsing errors: Verify the configuration syntax is correct
- No tools visible: Restart Cursor after adding the configuration
Health Check
Verify server status:
Loading health check command...
Should return:
{"status": "healthy", "server": "midnight-compact-mcp"}
Midnight Compact MCP - Ready for Cursor Integration