Required Fields Validator
Validates submitted fields against required field names and returns structured validation results. It is a read-only, deterministic tool that does not call external APIs or modify data.
README
Required Fields Validator
Cloudflare Workers + TypeScript MCP server for the single app required-fields-validator.
Project purpose
Required Fields Validator checks whether submitted fields include required fields and returns a structured validation result. The app is read-only, deterministic, and scoped to field completeness validation.
Project structure
src/index.ts- Cloudflare Worker routes, review shell pages, challenge route, MCP methods, and tool logic.tests/routes.test.ts- Route, challenge, and MCP regression tests.wrangler.jsonc- Cloudflare Worker configuration.package.json- Local scripts and development dependencies.README.md- Setup, deployment, and operations notes.
Routes
GET /GET /privacyGET /termsGET /supportGET /healthGET /.well-known/openai-apps-challengePOST /mcp
MCP Methods
initializetools/listtools/call
Tool
validate_required_fields
The tool checks submitted field keys against required field names and returns structuredContent matching the declared outputSchema. It is deterministic and does not call external APIs, write to databases, submit forms, or update external systems.
Local development
npm install
npm run typecheck
npm test
npm run dev
When running locally, set OPENAI_APPS_CHALLENGE if you need to test the challenge route with a non-empty value.
PowerShell example:
$env:OPENAI_APPS_CHALLENGE = "your-token"
npm run dev
Deployment
Deploy with Wrangler:
npm run deploy
The deployed Worker must expose POST /mcp directly. Do not use an app slug prefix for the MCP endpoint.
Environment variables
OPENAI_APPS_CHALLENGE- Plain text token returned byGET /.well-known/openai-apps-challenge.
The challenge route returns the environment variable value as plain text. It does not return JSON and does not hard-code a token.
Online URLs
- Home:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/ - Privacy:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/privacy - Terms:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/terms - Support:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/support - Health:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/health - Challenge:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/.well-known/openai-apps-challenge - MCP:
https://required-fields-validator.<your-workers-subdomain>.workers.dev/mcp
Replace <your-workers-subdomain> with the deployed Cloudflare Workers subdomain shown by Wrangler.
Common failures
- Challenge route is empty: set
OPENAI_APPS_CHALLENGEin the Worker environment and redeploy. - MCP route returns not found: call
POST /mcp, not an app-prefixed route. - TypeScript fails after dependency changes: run
npm install, thennpm run typecheck. - Local route tests fail: run
npm testand inspect the failing route or MCP method. - Deploy fails due to authentication: sign in with Wrangler for the target Cloudflare account, then rerun the deploy command.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.