Skip to content

feat(dx): headless L2 MCP end to end (#1487, part 4) - #1622

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1487-headless-mcp
Oct 16, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1487-headless-mcp

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1487: the last open piece of L2, "MCP end-to-end through querya-mcp".

  • headless_app.sh: --seed-sql FILE (the app starts once to create and migrate querya.db, stops, the SQL is applied with sqlite3, the app starts again) and --run COMMAND (runs while the app is up; its exit code is the script's). The app gets its own QUERYA_MCP_ENDPOINT, so no other instance can answer.
  • headless_mcp_check.sh: fixture SQLite database, two connections (one shared, one not), MCP server on, via the same app_settings keys the settings page writes. No app code is added for it.
  • mcp_stdio_check.py: a minimal MCP client over the real querya-mcp: initialize, tools/list, list_connections (only the shared one), list_tables, describe_table, run_query (data checked), a DELETE is refused and changes nothing, an unshared connection is refused.
  • headless-smoke.yml: builds querya-mcp and runs the check after the plain smoke.

Not run locally (no Xvfb on my machine); the PR run is the first one, so expect to iterate on it.

headless_app.sh gets --seed-sql (apply SQL to the profile database between two
starts) and --run (a command while the app is up). headless_mcp_check.sh seeds
a fixture SQLite connection, turns the MCP server on, shares it, and
mcp_stdio_check.py speaks MCP to the app through the real querya-mcp.
@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request tests Theme parser epic P3 Low priority / Polish & Enhancements labels Oct 16, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 84f520a into dev Oct 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request P3 Low priority / Polish & Enhancements tests Theme parser epic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant