html-answer
v1.0.0
Published
MCP server for interactive HTML answer review pages with browser feedback.
Maintainers
Readme
HTML Answer MCP
HTML Answer is an MCP server for interactive HTML answer review pages. An agent can render task-specific HTML, ask visible review questions, wait for browser feedback, and receive edited HTML, annotations, answers, and handoff instructions.
The model-facing MCP tools are intentionally small:
render_html_reviewwait_for_feedback
submit_feedback and export_feedback are internal app-only tools used by the browser review UI.
Install
Requires Node.js >=22.13.0.
The package is pure JavaScript/TypeScript and is intended to run on Windows, Linux, and macOS with a supported Node.js runtime. It publishes both the built dist/ output and the TypeScript source under src/.
Add this server to an MCP client that supports stdio servers:
{
"mcpServers": {
"html-answer": {
"command": "npx",
"args": ["-y", "html-answer", "--stdio"]
}
}
}After changing MCP server configuration, restart the client so it can load the new tools.
Run without editing MCP config:
npx -y html-answer --stdioInstall globally:
npm install -g html-answer
html-answer --stdioBrowser Review URL
By default, the browser review server listens at:
http://127.0.0.1:8767/Every rendered page returns a browserUrl like:
http://127.0.0.1:8767/pages/<pageId>If the MCP server runs on a remote machine, expose the review server through SSH forwarding:
ssh -N -L 8767:127.0.0.1:8767 <user@remote-host>Then open:
http://127.0.0.1:8767/pages/<pageId>Configuration
Runtime data is stored in:
~/.html-answerUseful environment variables:
HTML_ANSWER_MCP_DATA_DIR: override the data directory.HTML_ANSWER_REVIEW_ENABLED=0: disable the browser review server.HTML_ANSWER_REVIEW_HOST: review server bind host, default127.0.0.1.HTML_ANSWER_REVIEW_PORT: review server port, default8767.HTML_ANSWER_REVIEW_BASE_URL: URL returned to users inbrowserUrl.HTML_ANSWER_MCP_HTTP_HOST: streamable HTTP MCP host, default127.0.0.1.HTML_ANSWER_MCP_HTTP_PORT: streamable HTTP MCP port, default8765.HTML_ANSWER_MCP_HTTP_TOKEN: optional bearer token for HTTP MCP mode.
The older INTERACTIVE_ANSWER_* environment variables are still accepted as compatibility aliases.
Local Development
npm install
npm run typecheck
npm testRun from source over stdio:
npm run serveBuild and run the packaged entry:
npm run build
npm startRun the streamable HTTP endpoint:
npm run build
HTML_ANSWER_MCP_HTTP_TOKEN=change-me npm run start:httpTool Flow
- Call
render_html_reviewwithtitle,html, and optionalquestions. - Send the returned
browserUrlto the user. - Call
wait_for_feedback({ "pageId": "..." }). - Read
structuredContent.annotatedHtml,answers,annotations, anduserInstructionPrompt.
wait_for_feedback waits up to 30 minutes by default.
Publishing
Before publishing:
npm test
npm pack --dry-runPublish to npm:
npm publishPublishing to npm requires either 2FA enabled on the npm account or a granular access token with bypass 2FA enabled.
The package includes the built MCP server and bundled browser app, so npx -y html-answer --stdio can run without a manual build step.
