Skip to content

Show a setup page and a usage dashboard in the browser - #247

Merged
JerBouma merged 1 commit into
mainfrom
feature/mcp-setup-page
Oct 20, 2026
Merged

JerBouma merged 1 commit into
mainfrom
feature/mcp-setup-page

Conversation

@JerBouma

@JerBouma JerBouma commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Opening https://financedatabase.jeroenbouma.com/mcp in a browser returned a 406 JSON error. Now a GET on the MCP endpoint whose Accept header contains text/html but not text/event-stream gets a short setup page instead. MCP clients POST JSON-RPC or ask for an event stream, so they never see it. The root page (/) shows the same page.

The page, in the dark style of the server's icon:

  • what the server is
  • three steps: add it as a remote (HTTP) server with the URL that was opened (in Claude: Customize → Connectors → Add custom connector); no sign-in or API key is needed; an example question
  • the local alternative (uvx --from "financedatabase[mcp]" financedatabase-mcp-setup)
  • a button to the setup guide on jeroenbouma.com

Interpolated values are HTML-escaped. Behind the tunnel the URL shows as https, because uvicorn already trusts the proxy headers.

Tests cover all three cases (a browser GET gets the page; a GET that accepts an event stream and a JSON-RPC initialize POST pass through) plus the escaping. I also checked it end to end with financedatabase-mcp --transport streamable-http.

Usage dashboard at /stats. A browser (Accept with text/html, without application/json) now gets the same totals as a dashboard, in the style of the Finance Toolkit's: key figures, a few plain-language observations, calls and users per day since the first call, and the most used tools with their share and response time. It has no scripts and loads nothing from elsewhere. Other clients, curl included, still get the JSON. Tested at desktop and phone width with the live totals and with a full 30 days of data.

A browser GET on /mcp (Accept with text/html, without text/event-stream) now gets a short
setup page instead of a 406 error; MCP clients pass through unchanged. The root page shows
the same setup steps and links to the documentation.
@JerBouma
JerBouma merged commit f7e01d5 into main Oct 20, 2026
4 checks passed
@JerBouma
JerBouma deleted the feature/mcp-setup-page branch October 20, 2026 19:12
@JerBouma JerBouma changed the title Show a setup page when the MCP endpoint is opened in a browser Show a setup page and a usage dashboard in the browser Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant