Cursor vs. Windsurf MCP Configuration & Workflow Matrix
Cursor and Windsurf both support native Streamable HTTP against https://mcp.upp3.com/mcp, but differ in JSON endpoint key names (url vs. serverUrl), config paths, and persistent agent rule files.
| IDE Dimension | Cursor (.cursor/mcp.json) |
Windsurf Cascade (mcp_config.json) |
|---|---|---|
| Config File Path | Project: <repo-root>/.cursor/mcp.jsonGlobal: ~/.cursor/mcp.json |
Global: ~/.codeium/windsurf/mcp_config.json (managed via Cascade → Manage MCPs) |
| JSON Endpoint Key | Strictly "url": "https://mcp.upp3.com/mcp" (or https://upp3.com/mcp) |
Strictly "serverUrl": "https://mcp.upp3.com/mcp" (using url fails validation) |
| Auth Header Syntax | "headers": { "Authorization": "Bearer YOUR_EDGEDATA_API_KEY" } |
"headers": { "Authorization": "Bearer YOUR_EDGEDATA_API_KEY" } |
| Rule / Workflow Guardrail | Project rule file: .cursor/rules/edgedata.mdc with frontmatter globs enforcing mode="summary" and live schema checks |
Workspace rules: .windsurfrules or .windsurf/workflows/edgedata-sync.md pinning verified endpoints & 504/429 retry rules |
| SDK Generation Workflow | Agent calls MCP tools live in Composer/Agent chat, inspects exact JSON keys, then scaffolds typed Python (edgedata / httpx) or TS (edgedata-sdk) modules |
Cascade calls MCP tools inline, writes typed interfaces & retry wrappers into workspace files, and runs local unit tests against verified response shapes |
| Activation Check | Cursor Settings → Tools & Integrations → MCP → confirm green status dot (56 tools loaded) | Cascade → Manage MCPs → Refresh → verify edgedata shows 56 live tools |
Copy IDE MCP Configs & Generated Python / TypeScript Scripts
Tabs 1–2 are strictly JSON.parse()-valid IDE configs; Tabs 3–4 are real production scripts calling verified REST endpoints (POST /v1/amazon/products/detail, POST /v1/shopify/products/inventory, and GET /v1/finance/tradingview/quotes) with mode="summary" and 504/429 zero-credit retry protection.
{
"mcpServers": {
"edgedata": {
"url": "https://mcp.upp3.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_EDGEDATA_API_KEY"
}
}
}
}
{
"mcpServers": {
"edgedata": {
"serverUrl": "https://mcp.upp3.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_EDGEDATA_API_KEY"
}
}
}
}
"""Production EdgeData Python collector generated after IDE MCP schema verification.
Uses verified live REST routes:
- POST /v1/amazon/products/detail
- POST /v1/shopify/products/inventory
- GET /v1/finance/tradingview/quotes
Install: pip install httpx edgedata
"""
from __future__ import annotations
import asyncio
import os
from typing import Any
import httpx
API_BASE = "https://api.upp3.com"
API_KEY = os.getenv("EDGEDATA_API_KEY", "YOUR_EDGEDATA_API_KEY")
RETRY_STATUSES = (429, 504)
async def request_with_zero_credit_retry(
client: httpx.AsyncClient,
method: str,
path: str,
*,
json_body: dict[str, Any] | None = None,
params: dict[str, str] | None = None,
max_attempts: int = 3,
) -> dict[str, Any]:
"""Retry upstream HTTP 504/429 safely (strictly 0 credits charged on EdgeData)."""
for attempt in range(max_attempts):
resp = await client.request(
method,
f"{API_BASE}{path}",
headers={"X-API-Key": API_KEY, "Accept": "application/json"},
json=json_body,
params=params,
timeout=30.0,
)
if resp.status_code in RETRY_STATUSES and attempt < max_attempts - 1:
retry_after = float(resp.headers.get("Retry-After", "0") or "0")
delay = min(retry_after, 8.0) if retry_after > 0 else 1.5 * (2**attempt)
await asyncio.sleep(delay)
continue
resp.raise_for_status()
return resp.json()
raise RuntimeError(f"Retry budget exhausted for {path} (0 credits billed on 504/429)")
async def run_verified_pipeline() -> dict[str, Any]:
async with httpx.AsyncClient() as client:
amazon_task = request_with_zero_credit_retry(
client,
"POST",
"/v1/amazon/products/detail",
json_body={"asin": "B0BSHF7WHW", "country": "US", "mode": "summary"},
)
shopify_task = request_with_zero_credit_retry(
client,
"POST",
"/v1/shopify/products/inventory",
json_body={
"store": "allbirds.com",
"handle": "mens-wool-runners",
"country": "US",
"language": "EN",
"mode": "summary",
},
)
quotes_task = request_with_zero_credit_retry(
client,
"GET",
"/v1/finance/tradingview/quotes",
params={
"symbols": "NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT",
"mode": "summary",
},
)
amazon, shopify, quotes = await asyncio.gather(
amazon_task, shopify_task, quotes_task
)
return {
"amazon": amazon.get("data", {}),
"shopify_inventory": shopify.get("data", {}),
"tradingview_quotes": quotes.get("data", {}),
}
if __name__ == "__main__":
snapshot = asyncio.run(run_verified_pipeline())
print("Collected keys:", list(snapshot.keys()))
// Production TypeScript collector scaffolded in Cursor / Windsurf using edgedata-sdk
// Install: npm install edgedata-sdk
import { EdgeDataClient } from "edgedata-sdk";
export type ResponseMode = "summary" | "raw";
export interface EdgeDataEnvelope<T> {
ok: boolean;
source: string;
mode: ResponseMode;
data: T;
meta: {
credits_charged: number;
credits_remaining?: number;
latency_ms?: number;
};
}
export interface PipelineSnapshot {
amazon: Record<string, unknown>;
shopifyInventory: Record<string, unknown>;
tradingViewQuotes: Record<string, unknown>;
}
const API_KEY = process.env.EDGEDATA_API_KEY ?? "YOUR_EDGEDATA_API_KEY";
const client = new EdgeDataClient({
apiKey: API_KEY,
baseUrl: "https://api.upp3.com",
defaultMode: "summary",
});
async function withZeroCreditBackoff<T>(
operation: () => Promise<T>,
maxAttempts = 3
): Promise<T> {
for (let attempt = 0; attempt < maxAttempts; attempt++) {
try {
return await operation();
} catch (err: unknown) {
const status =
typeof err === "object" && err !== null && "status" in err
? Number((err as { status?: number }).status)
: 0;
// EdgeData charges strictly 0 credits on upstream HTTP 504 or 429
if ((status === 504 || status === 429) && attempt < maxAttempts - 1) {
const waitMs = 1500 * Math.pow(2, attempt);
await new Promise((resolve) => setTimeout(resolve, waitMs));
continue;
}
throw err;
}
}
throw new Error("Retry budget exhausted (0 credits charged on 504/429)");
}
export async function runVerifiedPipeline(): Promise<PipelineSnapshot> {
const [amazon, shopifyInventory, tradingViewQuotes] = await Promise.all([
withZeroCreditBackoff(() =>
client.request<EdgeDataEnvelope<Record<string, unknown>>>(
"POST",
"/v1/amazon/products/detail",
{ body: { asin: "B0BSHF7WHW", country: "US", mode: "summary" } }
)
),
withZeroCreditBackoff(() =>
client.request<EdgeDataEnvelope<Record<string, unknown>>>(
"POST",
"/v1/shopify/products/inventory",
{
body: {
store: "allbirds.com",
handle: "mens-wool-runners",
country: "US",
language: "EN",
mode: "summary",
},
}
)
),
withZeroCreditBackoff(() =>
client.request<EdgeDataEnvelope<Record<string, unknown>>>(
"GET",
"/v1/finance/tradingview/quotes",
{
query: {
symbols: "NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT",
mode: "summary",
},
}
)
),
]);
return {
amazon: amazon.data,
shopifyInventory: shopifyInventory.data,
tradingViewQuotes: tradingViewQuotes.data,
};
}
url vs. Windsurf serverUrl
The #1 setup mistake when switching between Cursor and Windsurf is reusing "url" inside ~/.codeium/windsurf/mcp_config.json. Cursor reads "url", while Windsurf strictly requires "serverUrl". Both connect to https://mcp.upp3.com/mcp (same-origin alias https://upp3.com/mcp also valid) and share the exact same key as https://api.upp3.com/v1/*.
Inspect Live Schema in IDE → Ship Production SDK Script in 3 Steps
Combine live Hosted MCP calls with a workspace rule file so Cursor Agent and Windsurf Cascade always verify real EdgeData payloads before writing Python or TypeScript parsers.
Call Hosted MCP Before Writing a Single Type
Ask Cursor Agent or Windsurf Cascade to run amazon_get_product_detail, shopify_get_product_inventory, or tradingview_get_quotes with mode="summary" so real keys and types enter IDE context at -81.3% fewer tokens.
Generate Typed Models From Verified JSON
Generate Python dataclasses/Pydantic models or TypeScript interfaces directly from the live MCP output — eliminating silent KeyError and undefined crashes when parsing nested marketplace offers or SKU variants.
Compile to edgedata / edgedata-sdk With 0-Credit Retries
Target the 1:1 REST endpoints on https://api.upp3.com/v1/* using the same X-API-Key, enforce mode="summary", and add exponential backoff on HTTP 504/429 (strictly 0 credits charged).
---
description: Enforce live EdgeData MCP schema verification, mode="summary", and zero-credit 504/429 retry rules
globs: ["**/*.py", "**/*.ts", "**/*.tsx"]
alwaysApply: false
---
# EdgeData API & Hosted MCP Engineering Rules
1. NEVER guess JSON field names or HTTP methods for EdgeData endpoints.
- First invoke the corresponding live `edgedata` Hosted MCP tool (e.g. `amazon_get_product_detail`, `shopify_get_product_inventory`, `tradingview_get_quotes`) with `mode="summary"` to inspect the real payload shape.
2. ALWAYS pass `mode="summary"` by default on both MCP tool calls and REST requests (`-81.3%` avg pretty JSON / `-78.8%` compact JSON token reduction). Only switch to `mode="raw"` when the task explicitly requires raw nested HTML/metadata.
3. USE verified production REST endpoints under `https://api.upp3.com` with header `X-API-Key: ${EDGEDATA_API_KEY}`:
- `POST /v1/amazon/products/detail` (JSON body: `asin`, `country`, `mode`)
- `POST /v1/shopify/products/inventory` (JSON body: `store`, `handle` or `url`, `country`, `language`, `mode`)
- `GET /v1/finance/tradingview/quotes` (Query params: `symbols`, `mode`)
4. ALWAYS wrap production HTTP calls with exponential backoff on HTTP `504` and `429` (up to 3 attempts). EdgeData charges strictly 0 credits on 504/429.
5. PRESERVE GDPR 0-PII boundaries: never store or log personal contact data, and keep Trustpilot `include_personal_data=false`.
Start Free in Your IDE, Scale Seamlessly in Production
Zero per-seat IDE fees, zero hidden proxy bills, and strictly 0 credits charged on upstream HTTP 504/429 responses across all four plans.
Free
- ✓100 credits / mo · 10 RPM
- ✓All 56 Hosted MCP tools & 67 REST routes
- ✓Instant schema verification inside Cursor & Windsurf
One-Time Pack
- ✓25,000 credits · never expire
- ✓Zero monthly subscription lock-in
- ✓Ideal for prototyping, backfills & indie SaaS
Pro
- ✓15,000 credits / mo · 60 RPM
- ✓Deep reviews (500/call) + NDJSON streaming
- ✓Built for continuous Python & TS workers
Scale
- ✓60,000 credits / mo · 200 RPM
- ✓Up to 2,000 reviews/call + priority routing
- ✓Multi-worker production pipelines & teams
Tools, SDK References & Companion Client Guides
Jump straight to interactive calculators, client-specific deep dives, and full Python/TypeScript SDK guides using the exact same EdgeData API key.
10-Client MCP Config Generator
Download validated configs for Cursor, Windsurf, Claude Desktop, Claude Code, Cline, Dify & n8n.
Open Generator → 56 Live ToolsHosted MCP Tools Catalog
Inspect every tool name, JSON input schema, and credit weight across all 16 global platforms.
Browse /mcp-tools → Free ToolLLM Token Savings Calculator
Measure exact IDE and agent token savings achieved by mode="summary" (-81.3% avg).
Batch Concurrency Planner
Plan asyncio / Promise concurrency slots, RPM headroom, and monthly credit budgets locally.
Open Planner → V2.19 ProofSample Responses
Compare sanitized Raw vs. Summary JSON payloads side by side before writing parsers.
Inspect Samples → Python SDKPython REST & Async Guide
Sync/async httpx clients, Pydantic codegen, NDJSON streaming & 504/429 retry patterns.
TypeScript & Node.js Guide
Zero-dependency EdgeDataClient, OpenAPI types, and Edge/Node streaming helpers.
Cursor Dedicated Setup
Focused walkthrough for project .cursor/mcp.json and global ~/.cursor/mcp.json.
Windsurf Dedicated Setup
Focused walkthrough for Cascade ~/.codeium/windsurf/mcp_config.json & serverUrl.
Claude Desktop & Claude Code
Setup claude_desktop_config.json (mcp-remote), claude mcp add CLI & shared .mcp.json.
Frequently Asked Questions
Exact answers on url vs. serverUrl, live schema verification, single-key MCP + SDK billing, Cursor Rules, and transparent pricing.