Skip to content

First Run

This page shows the shortest path to a successful run.

Important:

  • these are smoke tests (they prove setup and transport work)
  • they are not your real workflow optimization yet
  • for real usage, see guides/from-demo-to-real-workflow.md

Step 1: Run Local Showcase

scm showcase --runner mcp-stdio

What you should see:

  • baseline score output
  • tuned score output
  • tool traces for each dataset item

Step 2: Run Cloudflare MCP Showcase

scm showcase --runner mcp-http

This uses default endpoint https://mcp.cloudflare.com/mcp. Use --endpoint only if you want another MCP server. Cloudflare MCP usually requires auth, so you may need:

scm showcase --runner mcp-http --auth-bearer "$CODEMODE_TOKEN"

Step 3: Save Artifact

scm showcase --runner mcp-stdio --save-artifact

You will get artifact_path in output.

Step 4: Run Optimization

scm optimize --runner mcp-stdio --max-metric-calls 10

This returns best score and best candidate text.

What You Need for Real Workflows

To use SuperCodeMode in your own workflow, you will need:

  • your MCP server (Cloudflare, local, UTCP, or internal)
  • a small dataset of real tasks
  • a metric that reflects success for your use case
  • a client config where you can apply the optimized prompt/Code Mode settings

Next: guides/from-demo-to-real-workflow.md

Step 5: Enable Observability

scm --obs-backend jsonl --obs-jsonl-path artifacts/obs.jsonl showcase --runner mcp-stdio

Now you can inspect run events in artifacts/obs.jsonl.