External MCP server for VA form generation automation - completely separate from the VA codebase, works with any vets-website workspace.
This MCP server provides tools and resources for auditing and fixing scaffolded VA forms to ensure they follow 21P-601 best practices and VA.gov content standards.
Key Benefits:
- β External - Lives outside VA repo, no code review needed
- β Reusable - Works with ANY vets-website workspace
- β Team-friendly - Share across your entire team
- β Version controlled - Track improvements separately
cd ~/va-form-generation-mcp
npm installChoose the platform(s) you use:
Add to your ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"va-form-generation": {
"command": "node",
"args": [
"/Users/YOUR_USERNAME/va-form-generation-mcp/index.js"
]
}
}
}Replace YOUR_USERNAME with your actual username!
Then restart Claude Desktop - the MCP server will automatically connect.
Create or update .mcp.json in your vets-website workspace root:
{
"mcpServers": {
"va-form-generation": {
"command": "node",
"args": ["/Users/YOUR_USERNAME/va-form-generation-mcp/index.js"]
}
}
}Also update .claude/settings.local.json to enable the MCP server:
{
"permissions": {
"allow": [
"Read(//Users/YOUR_USERNAME/va-form-generation-mcp/**)"
]
},
"enableAllProjectMcpServers": true
}Then reload your VS Code window - Claude Code will detect and load the MCP server.
Same as Claude Code above - create .mcp.json in your workspace root and update .claude/settings.local.json.
Then reload Cursor to activate the MCP server.
ChatGPT does not currently support MCP servers. However, you can:
- Copy the templates from
~/va-form-generation-mcp/templates/ - Paste them directly into ChatGPT conversations
- Or use GPT Actions (requires custom GPT with API access)
In Claude Desktop, Claude Code, or Cursor:
Show me all available tools from the va-form-generation MCP server
You should see 5 tools listed.
Use the va-form-generation MCP server to audit form 21p-0516 in /Users/aponce/Workspaces/vets-website
Generate comprehensive audit report for a scaffolded form.
Usage:
Audit form 21p-0516 using the MCP server
Workspace: /Users/aponce/Workspaces/vets-website
Returns:
- Form information
- Agent execution plan
- Expected fixes
- Quick start commands
Get customized prompt for a specific agent (1-4).
Usage:
Get Agent 2 prompt for form 21p-0516
Returns:
- Specialized prompt for that agent
- Customized with form-specific paths
- Ready to execute
Run validation checks (schema, syntax, apostrophes, imports).
Usage:
Validate form at /path/to/form checking schema and apostrophes
Returns:
- Bash commands to run validation
- Expected issues to find
Get quick reference for common fixes.
Usage:
Show me the yesNoUI fix reference
Options:
yesNoUI- How to fix yesNoUI patternsradioSchema- How to fix radioSchema callsapostrophes- How to fix apostrophe syntaxtransformers- How to fix submit/prefill transformersfullNamePath- How to add fullNamePath (critical!)all- Show all fixes
Generate the complete orchestration prompt to launch all 4 agents.
Usage:
Generate orchestration prompt for form 21p-0516
Returns:
- Complete prompt to launch all 4 agents
- Phase-by-phase execution plan
- Expected results
Complete master checklist for form generation.
Specialized prompts for each of the 4 agents.
Before/after examples for all 16 fixes.
Use the va-form-generation MCP server to:
1. Audit form 21p-0516 in /Users/aponce/Workspaces/vets-website
2. Generate the orchestration prompt
3. Execute all 4 agents
1. Audit form 21p-0516 using MCP server
2. Get Agent 1 prompt from MCP server
3. Get Agent 2 prompt from MCP server
4. Get Agent 3 prompt from MCP server
5. Get Agent 4 prompt from MCP server
Use MCP server to validate form 21p-0516 for all check types
βββββββββββββββββββββββββββββββββββββββ
β Claude Desktop / Claude Code β
ββββββββββββββββ¬βββββββββββββββββββββββ
β MCP Protocol
ββββββββββββββββΌβββββββββββββββββββββββ
β VA Form Generation MCP Server β
β (External - ~/va-form-generation) β
β β
β Tools: β
β β audit_form β
β β get_agent_prompt β
β β validate_form β
β β get_fix_reference β
β β generate_orchestration_prompt β
β β
β Resources: β
β β Master checklist β
β β Agent prompts (1-4) β
β β Fix references β
ββββββββββββββββ¬βββββββββββββββββββββββ
β File System Access
ββββββββββββββββΌβββββββββββββββββββββββ
β vets-website Workspace β
β /Users/aponce/Workspaces/... β
βββββββββββββββββββββββββββββββββββββββ
β
yesNoUI simplified to yesNoUI('question')
β
Import paths corrected
β
radioSchema called with enum values
β
Duplicate imports removed
β IntroductionPage rewritten β ConfirmationPage uses ConfirmationView β submit-transformer follows 21P-601 β prefill-transformer accesses profile β form.js has fullNamePath
β Plain language (you/we, contractions) β Person-centered titles β PDF-accurate labels
β Apostrophe errors β Schema validation
Total: 16+ automated fixes
npm run devEdit index.js and add to the tools array in ListToolsRequestSchema handler.
Edit index.js and add to the resources array in ListResourcesRequestSchema handler.
Edit files in templates/ directory.
I'm working on form 21p-0516. Use the MCP server to audit it and tell me what needs to be fixed.
Workspace: /Users/aponce/Workspaces/vets-website
Use the MCP server to show me how to fix the radioSchema pattern
Use the MCP server to:
1. Audit form 21p-527ez
2. Generate the orchestration prompt
3. Launch all 4 agents in the correct order
Workspace: /Users/aponce/Workspaces/vets-website
Use the MCP server to validate form 21p-0516 for schema errors and apostrophe syntax
Form path: /Users/aponce/Workspaces/vets-website/src/applications/simple-forms/21p-0516
- Master Checklist:
templates/master-checklist.md - Agent Prompts:
templates/agent-{1-4}-prompt.md - MCP Protocol: https://modelcontextprotocol.io/
cd ~/va-form-generation-mcp
git init
git add .
git commit -m "Initial MCP server"
git remote add origin YOUR_REPO_URL
git push -u origin mainTeam members clone and configure:
git clone YOUR_REPO_URL ~/va-form-generation-mcp
cd ~/va-form-generation-mcp
npm install
# Add to claude_desktop_config.jsonnpm publish --registry YOUR_PRIVATE_REGISTRYTeam members install:
npm install -g va-form-generation-mcp --registry YOUR_PRIVATE_REGISTRYA: No! The MCP server lives completely outside the VA repo. It only provides tools and prompts - Claude does the actual modifications.
A: Yes! Each team member installs it separately and points it to their own vets-website workspace.
A: Update the templates in this repo. Everyone pulls the updates. No VA PR needed!
A: Absolutely! Edit the templates or add new tools specific to your needs.
A: Yes! As long as Claude Code supports MCP servers, it will work.
MIT
Questions? Open an issue or ask Claude: "Explain the va-form-generation MCP server"