Overview
Bilt MCP Server follows the standard Model Context Protocol specification and works with any MCP-compatible client. This guide covers generic configuration that applies to all clients.If your client isn’t listed in our integration guides, follow these generic instructions.
Connection Details
Every MCP client needs these core details:https://mcp.bilt.me/mcpsse (Server-Sent Events) - RecommendedAlternative: http (HTTP POST)Bearer token in
Authorization headerFormat: Bearer bilt_live_YOUR_TOKEN_HEREStandard Configuration Format
Most MCP clients use this JSON structure:Transport Options
SSE Transport (Recommended)
Server-Sent Events provide real-time updates:- Real-time progress updates
- Long-running workflow support
- Efficient for monitoring builds
- Client supports SSE
- Need progress updates
- Monitoring long builds
HTTP Transport (Alternative)
Standard HTTP POST requests:- Universal compatibility
- Simple request/response
- Works behind strict firewalls
- Client doesn’t support SSE
- Firewall restrictions
- Simple tool invocations
Authentication Methods
Bearer Token (Standard)
Most common authentication:Environment Variable
Reference tokens from environment:Token File
Some clients support reading from files:Tool Discovery
Bilt MCP Server exposes 8 tools:| Tool | Purpose |
|---|---|
bilt_list_projects | List all projects |
bilt_get_project | Get project details |
bilt_create_project | Create new project |
bilt_get_session | Get workflow session |
bilt_send_message | Execute workflow |
bilt_resume_workflow | Resume paused workflow |
bilt_cancel_workflow | Cancel running workflow |
bilt_get_messages | Get message history |
Manual Tool Invocation
If your client requires manual tool calls:List Projects
Create Project
Send Message
Error Handling
Standard Error Responses
All errors follow this format:Common Error Codes
| Code | Meaning | Solution |
|---|---|---|
| 400 | Bad Request | Check parameter format |
| 401 | Unauthorized | Verify API token |
| 403 | Forbidden | Check permissions |
| 404 | Not Found | Verify resource exists |
| 429 | Rate Limited | Wait and retry |
| 500 | Server Error | Contact support |
Rate Limits
Request Limit100 requests per minute per token
Response Headers
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
Handling Rate Limits
When you receive a429 response:
- Check
Retry-Afterheader - Wait specified seconds
- Retry request
Testing Connection
cURL Test
Test basic connectivity:Health Check
{"status":"ok"}
Client-Specific Considerations
Desktop Applications
- Config usually in user home directory
- Restart required after changes
- Check app logs for errors
Web Applications
- Use HTTP transport (better browser support)
- Handle CORS if needed (Bilt allows all origins)
- Store tokens securely (not in frontend code)
CLI Tools
- Support environment variables
- Allow config file path override
- Provide clear error messages
IDE Extensions
- Project-specific configuration
- Git-ignore sensitive tokens
- Auto-reload on config change
Debugging
Enable Verbose Logging
Most clients support debug mode:Check Connection
- Verify URL is accessible
- Test authentication
- Check firewall rules
- Review client logs
Common Issues
Connection refused
Connection refused
Cause: Network or firewall issueSolution:
- Check internet connection
- Test from different network
- Verify port 443 is open
Invalid token
Invalid token
Cause: Token format or expirationSolution:
- Verify format:
bilt_live_... - Check for extra spaces
- Regenerate token
Tools not discovered
Tools not discovered
Cause: Client not calling tool discoverySolution:
- Check client supports MCP tools
- Manually list tools via API
- Update client to latest version
Security Best Practices
Never expose tokensDon’t commit to git or share publicly
Use environment variablesStore tokens outside config files
Rotate regularlyGenerate new tokens every 90 days
Restrict permissionsUse separate tokens per environment
Example Configurations
Python Client
JavaScript Client
Go Client
Need Help?
If your client isn’t working:- Check client documentation - Verify MCP support
- Test with cURL - Ensure Bilt is accessible
- Review logs - Look for specific errors
- Contact support - We can help configure your client
