FormLoom + GitHub Copilot
MCP via configCopilot Chat (VS Code) supports MCP in agent mode. Add FormLoom to scaffold forms inline.
1. Add the MCP server
Add this to .vscode/mcp.json:
.vscode/mcp.json
{
"mcpServers": {
"formloom": {
"command": "npx",
"args": ["-y", "@formloom/mcp"]
}
}
}2. Ask for a form
Type a prompt like:
“@workspace add a FormLoom contact form to the marketing page.”
What you get back
GitHub Copilot calls get_snippet + provision_endpoint and writes framework-correct code with a live access key — it works on first run:
app/contact/page.tsx
// app/contact/page.tsx — Next.js 15 App Router, Server Action
export default function ContactPage() {
async function submit(formData: FormData) {
"use server";
const res = await fetch("https://formloom.vercel.app/api/submit/fl_provisioned_key", {
method: "POST",
headers: { "Content-Type": "application/json", Accept: "application/json" },
body: JSON.stringify(Object.fromEntries(formData)),
});
// FormLoom scores spam, stores the row, and emails you — no backend to wire.
return res.json();
}
return (
<form action={submit}>
<label>
Name
<input type="text" name="name" required />
</label>
<label>
Email
<input type="email" name="email" required />
</label>
<label>
Message
<textarea name="message" required placeholder="How can we help?"></textarea>
</label>
<!-- honeypot: bots fill this, humans don't see it -->
<input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off" />
<button type="submit">Send</button>
</form>
);
}Steps
- 1Add `.vscode/mcp.json` with the FormLoom server.
- 2Enable agent mode in Copilot Chat.
- 3Ask Copilot to add a form — it calls FormLoom's tools and inserts the code.
FAQ
Yes — in VS Code agent mode via `.vscode/mcp.json`. Add the FormLoom server there.