REST Adapter
Use this page to configure a Custom REST API connection for the current v0.8.0 Early Access lane.
Scope and release-lane context
Section titled “Scope and release-lane context”This guide is for the current v0.8.0 Early Access lane of mcp synapse.
Boundary conditions for this lane:
- BYOK/local-only
- not a hosted proxy service
- non-streaming for this lane
- no hidden retry, backoff, or silent fallback
This page covers the REST adapter snapshot surface: endpoint URL, authentication mode, HTTP method, response-field mapping, preflight, and a minimal validation check.
Prerequisites
Section titled “Prerequisites”- A local
mcp synapseruntime environment - An MCP-capable IDE or client
- A reachable REST API endpoint you control or are authorized to use
- Any required credentials for that endpoint
- A known response field that contains the text or value you want surfaced
Core concepts
Section titled “Core concepts”- The provider identifier for this guide is
rest_api. - The REST adapter is for explicit HTTP request/response mapping, not provider SDK usage.
- Supported auth choices in this lane are limited to the runtime-supported local form options.
- Cost is not priced like model providers in this lane; usage rows record
UNKNOWNcost state. - Connection preflight should pass before IDE-side usage.
Setup steps
Section titled “Setup steps”- Start your local
mcp synapseruntime. - Open the Connections surface in
mcp synapse. - Create a new
Custom REST APIconnection. - Enter the endpoint URL.
- Choose the auth type that matches the endpoint.
- Choose the method (
GETorPOST) that matches the endpoint contract. - Set the response-field mapping to the field you want returned.
- Save the connection.
Keep the mapping simple at first. Use a response field you already know exists in a normal success response.
Connection settings
Section titled “Connection settings”Use only settings that are clearly supported by your current build and UI.
Minimum operational settings:
- Provider:
rest_api - Endpoint URL: explicit and valid
- Auth type:
none,api_key_header,bearer, orbasicwhen supported by your current build - Method:
GETorPOST - Response field: a valid field path in the returned JSON body
Avoid adding extra request complexity until the minimal path works.
Preflight and IDE integration
Section titled “Preflight and IDE integration”- Run connection preflight in
mcp synapse. - Confirm preflight reports success.
- In your MCP-capable IDE, select the REST-backed route or connection.
- Send a simple request prompt that triggers the mapped endpoint path.
- Confirm the mapped value is returned as expected.
Use a stable endpoint first, then expand to live workflow data.
Troubleshooting
Section titled “Troubleshooting”Auth failure
Section titled “Auth failure”- Verify the credential value is present, readable by the runtime path, and not empty.
- Re-check header type or credential formatting if you use key-based auth.
Response mapping failure
Section titled “Response mapping failure”- Confirm the response field exists in the returned JSON body.
- Start with a shallow field before attempting a deeper nested mapping.
Endpoint issues
Section titled “Endpoint issues”- Verify the endpoint URL is correct and reachable from the local machine.
- Confirm the selected method matches the server contract.
Preflight fails
Section titled “Preflight fails”- Resolve the explicit preflight error first.
- Re-run preflight before IDE testing.
Security and key handling
Section titled “Security and key handling”- Keep REST API credentials local and out of source control.
- Do not commit secrets to repository files.
- Prefer least-privilege operational key handling where possible.
- Treat logs and screenshots as potentially sensitive.
Operational boundary reminder:
mcp synapsein this lane is BYOK/local-only.- It is not a hosted proxy service.
- REST adapter calls remain local runtime actions, not a shared service.
Minimal checklist
Section titled “Minimal checklist”- Local
mcp synapseruntime is running - Endpoint URL is valid
- Auth mode matches the target API
- Method matches the target API
- Response field mapping is valid
- Preflight passes
- IDE test returns the mapped value
- No secrets are committed
Related guidance
Section titled “Related guidance”Use case examples
Section titled “Use case examples”- Fintech market data snapshots
- DevOps status and CI result lookups
- Healthcare scheduling or operational record lookups
- E-commerce inventory or order-state queries