KirokuForms MCP Server
A Model Context Protocol (MCP) server providing Human-in-the-Loop (HITL) capabilities, dynamic form generation, and intelligent data collection for AI systems. Seamlessly integrate human oversight into your AI workflows with standardized MCP tools.
What is Model Context Protocol?
MCP is an open protocol that enables AI models to securely interact with local and remote resources through standardized server implementations. KirokuForms implements MCP to provide:
- Structured human-in-the-loop capabilities for AI workflows
- Dynamic form generation based on context and data analysis
- Real-time event streaming for task completion notifications
- Standardized APIs that work with all MCP-compatible clients
Quick Start
1. Prerequisites
-
A KirokuForms account and API key with
hitl:create,hitl:read, andforms:writescopes. - A compatible MCP client (e.g., Cursor) or an API tool like curl.
2. Server Information
KirokuForms MCP Server v1.0.0 https://www.kirokuforms.com/api/mcp Authorization: Bearer YOUR_API_KEY 3. Test Your Connection
Run the following command to verify your API key and connection. It should return a JSON object with the server's capabilities.
curl -H "Authorization: Bearer YOUR_API_KEY" https://www.kirokuforms.com/api/mcp Client Configuration
Configure your preferred MCP client to use the KirokuForms server.
In Claude Desktop settings, go to the "Developer" tab and add the following to your configuration:
{
"mcpServers": {
"kirokuforms": {
"command": "npx",
"args": ["-y", "@kirokuforms/mcp-server"],
"env": {
"KIROKU_API_KEY": "your_api_key_here"
}
}
}
}
In your project, create a file at .cursor/mcp.json with
the following content:
{
"mcpServers": {
"kirokuforms": {
"command": "npx",
"args": ["-y", "@kirokuforms/mcp-server"],
"env": {
"KIROKU_API_KEY": "your_api_key_here"
}
}
}
}
In your project, create a file at .vscode/mcp.json with
the following content:
{
"servers": {
"kirokuforms": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@kirokuforms/mcp-server"],
"env": {
"KIROKU_API_KEY": "your_api_key_here"
}
}
}
} Replace Your API Key
Make sure to replace your_api_key_here with your actual API
key from the
KirokuForms Developer Dashboard.
Available Tools
The server exposes tools that an AI model can call to perform actions.
request-human-review
Creates a Human-in-the-Loop (HITL) task that pauses an AI workflow, generates a web form, and waits for human input.
Endpoint: POST /api/mcp/tools/request-human-review
Key Features:
- Dynamic Form Generation: If you only provide
inputData, the server analyzes it and generates appropriate form fields (e.g., text, number, radio buttons for booleans). - Template-Based Forms: Use a pre-configured KirokuForms
template by providing a
templateId. - Custom Field Definitions: Define the exact form
fields, validation rules, and layout using a
formDefinitionobject.
Core Parameters:
inputData: (Optional) A JSON object with initial data to pre-fill the
form or for dynamic generation.
formDefinition: (Optional) A JSON object defining the form's fields and
structure.
templateId: (Optional) The ID of an existing KirokuForms template to use.
callbackUrl: (Optional) A webhook URL to be called upon task completion.
expiresInSeconds: (Optional) A timeout in seconds for the task.
Returns:
-
taskId: The unique identifier for the created task. -
reviewUrl: The direct URL for the human reviewer to complete the task. -
status: The initial status of the task (e.g., pending