MCP Connection Guide
This page provides technical details for integrating Haptic’s MCP server with your AI assistant.Connection URL
Production Endpoint:https://mcp.haptic.sh/mcp
This single endpoint handles:
- OAuth 2.0 authorization flow
- Bearer token authentication
- Tool discovery
- Tool execution
- Error responses
Authentication Methods
Haptic supports two authentication methods:1. OAuth 2.0 (Recommended)
Supported by: Claude Desktop, ChatGPT, and other OAuth-compatible AI assistants Flow:- Server URL:
https://mcp.haptic.sh/mcp - Scopes:
read:accounts read:transactions - No API key required - handled automatically via OAuth
2. Bearer Token
Supported by: All MCP clients Flow:Tool Discovery
Once connected, your AI can discover available tools via the standard MCPtools/list request.
Request
Response
Tool Execution
Execute tools via the standard MCPtools/call request.
Example: get_account_summary
Request:Example: get_transactions
Request:Error Responses
Errors follow MCP standard error format:Common Error Codes
| Code | Meaning | Common Causes |
|---|---|---|
unauthorized | Authentication failed | Invalid or expired token |
forbidden | Access denied | No active subscription |
invalid_params | Bad parameters | Wrong date format, invalid tool name |
tool_not_found | Unknown tool | Typo in tool name |
internal_error | Server error | Plaid API failure, database issue |
Connection Examples
Claude Desktop
Custom MCP Client (with token)
Security Considerations
Transport Security
- All connections use HTTPS/TLS 1.2+
- Certificate pinning recommended for production clients
- No unencrypted (HTTP) connections allowed
Token Security
Token Storage
Token Storage
DO:
- Store tokens in secure credential stores (OS keychain, encrypted config)
- Use environment variables for server-side applications
- Rotate tokens periodically
- Commit tokens to version control
- Hardcode tokens in source code
- Share tokens across environments
Token Transmission
Token Transmission
Tokens are sent in the Never send tokens in:
Authorization header:- URL parameters
- Unencrypted connections
- Log files or error messages
Token Revocation
Token Revocation
Immediately revoke tokens if:
- Token is compromised or exposed
- Device or application is lost
- No longer using the AI assistant
Request Validation
All requests are validated for:- ✅ Valid JSON-RPC 2.0 format
- ✅ Authenticated user
- ✅ Active subscription
- ✅ Valid tool names and parameters
- ✅ Rate limits (future)
Testing Your Connection
1. Verify Authentication
Test your token/OAuth connection:2. List Tools
3. Call a Tool
Troubleshooting
Connection Refused
Connection Refused
Symptoms: Cannot connect to
https://mcp.haptic.sh/mcpSolutions:- Verify URL is exactly
https://mcp.haptic.sh/mcp(no trailing slash) - Check internet connection
- Verify HTTPS is enabled (not HTTP)
Authentication Failed
Authentication Failed
Symptoms: 401 Unauthorized errorsSolutions:
- Verify token starts with
hap_ - Check token hasn’t been deleted from dashboard
- Ensure active Haptic subscription
- Try generating a new token
Tool Not Found
Tool Not Found
Symptoms: “tool_not_found” errorSolutions:
- Verify tool name spelling (case-sensitive)
- Use
tools/listto see available tools - Check for typos in tool name
Invalid Parameters
Invalid Parameters
Symptoms: “invalid_params” errorSolutions:
- Verify date format is YYYY-MM-DD
- Check parameter names match documentation
- Ensure required parameters are provided
MCP Specification
Haptic implements MCP v1.0 with:- ✅ JSON-RPC 2.0 protocol
- ✅ Tool discovery (
tools/list) - ✅ Tool execution (
tools/call) - ✅ OAuth 2.0 authorization
- ✅ Bearer token authentication
- ✅ Structured error responses
- ✅ Content streaming (future)
