Skip to content

fix(mcp): hide system.* collections from find/count, log and redact the schema resource (#1774, #1775) #15

fix(mcp): hide system.* collections from find/count, log and redact the schema resource (#1774, #1775)

fix(mcp): hide system.* collections from find/count, log and redact the schema resource (#1774, #1775) #15

name: Headless smoke (L2)
# Builds the Linux bundle and runs the real app under Xvfb in portable mode with
# scripts/dev/headless_app.sh: it has to start, show a window and stay up. The
# screenshot is kept as an artifact. Then the MCP path end to end
# (scripts/dev/headless_mcp_check.sh): the app with its MCP server on, a shared
# fixture connection, and a client reading it through the real querya-mcp. Not part of ci.yml: a Linux build takes
# minutes, so this runs when the script or this file changes, weekly, and on
# demand.
on:
pull_request:
paths:
- scripts/dev/headless_app.sh
- scripts/dev/headless_mcp_check.sh
- scripts/dev/mcp_stdio_check.py
- lib/core/mcp/**
- packages/querya_mcp_bridge/**
- .github/workflows/headless-smoke.yml
schedule:
- cron: "0 4 * * 2"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: headless-smoke-${{ github.ref }}
cancel-in-progress: true
jobs:
smoke:
name: App under Xvfb
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev \
libsecret-1-dev xvfb xdotool imagemagick sqlite3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.47.1'
channel: 'stable'
cache: true
- name: Get dependencies
run: flutter pub get
- name: Build Linux (release)
run: flutter build linux --release
- name: Run the app headless
run: |
mkdir -p build/headless
scripts/dev/headless_app.sh \
--bundle build/linux/x64/release/bundle \
--screenshot build/headless/screenshot.png \
--log build/headless/app.log \
--wait 90 --keep 5
- name: Build querya-mcp
run: |
cd packages/querya_mcp_bridge
dart pub get
dart compile exe bin/querya_mcp.dart -o "$RUNNER_TEMP/querya-mcp"
- name: MCP end to end under Xvfb
run: |
mkdir -p build/headless
scripts/dev/headless_mcp_check.sh \
--mcp "$RUNNER_TEMP/querya-mcp" \
--bundle build/linux/x64/release/bundle \
--log build/headless/mcp-app.log
- name: Keep the screenshot and the log
if: always()
uses: actions/upload-artifact@v4
with:
name: headless-smoke
path: build/headless/
if-no-files-found: ignore
retention-days: 14