63.11 HANDOFF Cursor Mcp E2e Test

Documentation for Sessions

Handoff: MCP External Access End-to-End Test

Session: 63.11 Date: 2026-01-23 Handoff To: Cursor Agent (with browser capabilities) Priority: P0


Context

The MCP external access API has been deployed and verified working on Railway. The endpoints are responding correctly:

Endpoint Status Auth
GET /ai-api/mcp/health Operational Public
GET /ai-api/mcp/openapi.yaml Working Public
POST /ai-api/mcp/preflight 401 Required
POST /ai-api/mcp/tools/call 401 Required
GET /ai-api/mcp/tools 401 Required
GET /ai-api/mcp/agents 401 Required

What's missing: We need to test the complete flow with actual authentication.


Your Mission

Test the complete MCP external access flow end-to-end:

Step 1: Create MCP Project (via GoGrab Space UI)

  1. Navigate to https://gograb.space
  2. Log in (or create account if needed)
  3. Go to AI Hub → MCP Projects (or similar navigation)
  4. Create a new MCP project
  5. Capture the API Key - it's only shown once!
  6. Note the Project ID

Step 2: Test Authenticated Endpoints

Use the captured credentials to test:

# Set your credentials
API_KEY="mcp_your_api_key_here"
PROJECT_ID="your_project_id_here"

# Test 1: Get available tools
curl -X GET "https://ai-api.gograb.space/ai-api/mcp/tools" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID"

# Test 2: Preflight (get context for a task)
curl -X POST "https://ai-api.gograb.space/ai-api/mcp/preflight" \
  -H "Content-Type: application/json" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID" \
  -d '{"task": "Testing MCP external access"}'

# Test 3: Log a decision
curl -X POST "https://ai-api.gograb.space/ai-api/mcp/tools/call" \
  -H "Content-Type: application/json" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID" \
  -d '{
    "tool": "log_decision",
    "arguments": {
      "type": "implementation",
      "question": "Testing MCP external access",
      "chosen": "Verified API endpoints working",
      "reasoning": "End-to-end test from Cursor agent",
      "confidence": 0.9
    }
  }'

# Test 4: Find similar decisions
curl -X POST "https://ai-api.gograb.space/ai-api/mcp/tools/call" \
  -H "Content-Type: application/json" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID" \
  -d '{
    "tool": "find_similar",
    "arguments": {
      "query": "MCP external access"
    }
  }'

# Test 5: Get agents list
curl -X GET "https://ai-api.gograb.space/ai-api/mcp/agents" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID"

# Test 6: Get usage stats
curl -X GET "https://ai-api.gograb.space/ai-api/mcp/usage" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID"

Step 3: Verify Project Database Isolation

After logging a decision, verify it was stored in the project's isolated database:

Step 4: Test OpenAI Functions Export

curl -X GET "https://ai-api.gograb.space/ai-api/mcp/openai/functions" \
  -H "X-MCP-API-Key: $API_KEY" \
  -H "X-MCP-Project-Id: $PROJECT_ID"

This should return OpenAI-compatible function definitions.


Expected Results

Test Expected Result
Create Project Project created, API key generated
GET /tools List of available MCP tools
POST /preflight Context with patterns, conventions
POST /tools/call (log_decision) Decision logged successfully
POST /tools/call (find_similar) Returns logged decision
GET /agents List of agent experts
GET /usage Usage statistics for project
GET /openai/functions OpenAI function definitions

If Something Fails

401 Unauthorized

404 Not Found

500 Server Error


Report Template

After testing, create a report at: docs/english/sessions/editor2/session-63/63.12-TEST-RESULTS-mcp-e2e.md

Include:

  1. Project creation: Success/Fail
  2. Each endpoint test result
  3. Any errors encountered
  4. Screenshots if relevant
  5. Recommendations for fixes

Related Files


Success Criteria


Handoff created by Claude Code. Ready for Cursor agent pickup.