Codex
Codex connects like every other client: Streamable HTTP, one URL, an
Authorization header. There is no Surface-specific plugin to install.
{
"mcpServers": {
"surface-forms": {
"url": "https://app.withsurface.com/mcp",
"headers": { "Authorization": "Bearer <your-api-key>" }
}
}
}
What it is good at
Codex is best on jobs that span your repo and your Surface workspace at once.
Forms SDK work. The form definition lives in Surface, the markup lives in
your repo, and the binding between them has to agree. The loop is create_form
with sdk: true → get_sdk_binding_map → write the markup →
validate_form_html → publish_form. See
Forms SDK.
Webhook receivers. Point it at the webhook payload shape and let it write the handler, the types and the tests in your service.
Event instrumentation. Form events into your analytics layer, matching how your app already emits events.
Migrations. Moving off another form tool means reading an export, mapping fields, and creating forms in bulk: a script plus MCP calls.
Recommended setup
https://app.withsurface.com/mcp?tools=forms,vault,cms
The two default bundles plus the CMS family cover most build work. ?tools=
loads a different set rather than adding to the default, so vault has to be
named. Add ?readonly=1 on a second entry for exploring.
Discovering schemas at runtime
| Tool | Returns |
|---|---|
list_component_types | Every component a form can contain |
describe_component_type | The full shape of one component |
get_tool_schema | The JSON Schema for the heavy authoring tools |
Tell it those exist, so it reads the real shape instead of guessing a payload.
Codex and OpenAI as an answer engine
ChatGPT is one of the four models scored in AI Visibility, and a human who clicks through from ChatGPT arrives as an AI referral in traffic analytics, tagged by engine.