Demo app: a Flutter client for Mouser's MCP server

mouser_mcp_demo is a Flutter desktop app that talks to Mouser's MCP server: connect, list the tools, call any tool from a form generated from its input schema, and follow a curated Demo page. Its MCP client (lib/mcp/mcp_client.dart) is plain Dart with no extra packages, so it's a good template for your own integration.

Each clip below is about 30 seconds long, with Mouser on the left and the demo app on the right.

What it covers

1. Start Mouser's server

mouser mcp enable        # then restart Mouser; serves http://127.0.0.1:7801/mcp
        mouser mcp token --show  # Bearer token for HTTP
        

For a throwaway instance, set MOUSER_HOME=$(mktemp -d) MOUSER_SECRET_STORE=file, then run mouser mcp enable and mouser in that environment.

2. Run the app

git clone https://github.com/WeirdBrains/mouser_mcp_demo
        cd mouser_mcp_demo
        flutter run -d linux
        

The repo also has Linux, macOS and Windows packaging scripts; see its README.

3. Connect

Pick a transport:

The protocol version offered is selectable. Mouser serves 2025-11-25, 2025-06-18 and 2025-03-26, and answers with its newest for anything else. The Connect page then shows the status and server info.

Connecting over HTTP, listing the tools and calling tabs_list.
HTTPS on port 7802, pinning the certificate SHA-256 from mouser mcp status.
stdio: the app spawns mouser mcp serve --stdio, which bridges to the running Mouser.

4. Protocol

Shows the session (server info, capabilities, session id, certificate SHA-256), ping with its round trip, a JSON-RPC batch, the capability probes, a raw JSON-RPC console, and "End HTTP session" (DELETE /mcp).

The Protocol page: ping, a JSON-RPC batch, and the probes Mouser answers with -32601.

5. Tools

Lists every tool from tools/list, builds a form from each tool's input schema, and shows the result of tools/call. Write tools (shell_*, files_mkdir/copy/move/trash) show Mouser's approval popup first.

shell_run waits for the approval popup in Mouser; Allow once runs it.

6. Demo

A guided run: tabs_list then screen_read; a files_list/files_read file browser; shell_run then screen_read; plus scrollback_read, shell_type, and "send files to Mouser", a local file chooser feeding files_copy, files_move, files_mkdir and files_trash. Mouser takes paths; it has no upload API.

Tapping a file, or a path chip in any tool result, opens a viewer for text, images, .docx, PDF, video and audio (Linux needs mpv for media).

Typing in Mouser, then List tabs and Read screen in the app.
files_list, then the image, PDF, .docx and text viewers.
Playing a video from the file list (with sound).
Playing music from the file list (with sound).
shell_type sends keystrokes; scrollback_read reads them back.
Send files to Mouser: pick a local file, copy it into the tab folder, make a folder; Mouser asks first.

7. Check your own client

The repo's smoke test is a compact reference for a full round trip:

MOUSER_MCP_TOKEN=$(mouser mcp token --show) dart run bin/smoke.dart http
        dart run bin/smoke.dart stdio