Skip to main content
Glama
mcp-feature-test

mcp-feature-test

by linuxrrze

mcp-feature-test

Docker image

An MCP server for checking which user-interaction features an MCP client (Claude Desktop, Claude Code, VS Code, Cursor, Open WebUI, the MCP Inspector, or your own client) actually supports:

  • Elicitation, form mode: the client shows a native dialog built from a JSON schema.

  • Elicitation, URL mode: the client opens a web page in the browser (the pattern for OAuth or secret entry).

  • Multi-step elicitation: a three-dialog wizard that carries signed requestState between rounds.

    How both elicitation modes flow between user, client, browser and server, on both protocol generations, is drawn step by step in docs/elicitation.md.

  • MCP Apps: an interactive HTML UI (ui:// resource) that the host renders in a sandboxed iframe.

  • Progress, logging and cancellation for long-running tools.

  • Sampling: the server asks the client's own LLM for a reply (sampling/createMessage), including image input and the tool loop.

  • Roots: the server asks which folders the client exposes (roots/list) and counts notifications/roots/list_changed.

  • Structured output: tools with an outputSchema, and results whose structuredContent is valid, missing its text copy, contradicted by the text, or invalid.

  • List-changed notifications and resource subscriptions: the server adds and removes tools, prompts and resources at runtime and updates a subscribable resource, so you can see whether the client's lists refresh by themselves (unsolicited on 2025-era connections, over subscriptions/listen on 2026-07-28).

  • Tasks: a long tool call that returns a task handle at once and is polled for its result, in both generations: the 2025-11-25 core feature (params.task, tasks/result) and the 2026-07-28 io.modelcontextprotocol/tasks extension (resultType: "task", tasks/update), with progress messages, a pause for user input, failure and cancellation.

  • Files: returning files in tool results (embedded resources, resource_link, image, audio), uploading from an MCP App, app downloads, form fields the spec doesn't have, and the experimental x-mcp-file draft.

  • Capability inspection: the server logs what each client declares and can report it back (inspect_client, list_seen_clients).

The server speaks both protocol generations, 2026-07-28 (stateless, input_required) and 2025-era (initialize handshake, server→client elicitation/create), over stdio and Streamable HTTP. It is built on the MCP TypeScript SDK v2 (@modelcontextprotocol/server 2.4) and @modelcontextprotocol/ext-apps 2.0.

MCP App (Dialog Lab), light

MCP App (Dialog Lab), dark

Dialog Lab, light theme

Dialog Lab, dark theme

Colour picker (pick_color), Wheel, dark

Values, light

Palettes, dark

Colour picker: hue ring and S/V triangle, dark

Colour picker: RGB/HSL/HSV/alpha values, light

Colour picker: palettes, dark

These screenshots come from the automated browser test (npm run screenshots). They show the apps inside a minimal test host, not inside a particular MCP client. Each client draws its own frame around the iframe. The colour picker also fits narrow hosts (360 px).

Contents

Related MCP server: Everything MCP Server

Tools and the features they test

Tool

MCP feature exercised

Spec version that introduced it

inspect_client

Reports the protocol version, client info and declared capabilities (elicitation form/url, MCP Apps UI, sampling, roots, tasks, extensions)

n/a (reads initialize or the per-request _meta envelope)

list_seen_clients

Every distinct client this server process has seen, with capability flags and request counts

n/a

elicit_confirm

Form elicitation: a yes/no confirmation dialog; accept, decline and cancel are each reported

Form elicitation: 2025-06-18

elicit_all_field_types

Form elicitation with every allowed field type: string with min/max length, email/uri/date/date-time formats, integer, number, boolean, untitled and titled single-select, legacy enumNames, multi-select (untitled and titled), and defaults. variant: all, basic, formats or enums

Base types: 2025-06-18. Titled/multi-select enums and defaults on all types: 2025-11-25

elicit_parallel

Two independent elicitations in a single round

Multiple inputRequests: 2026-07-28. On 2025-era connections the SDK sends them one after the other

elicit_wizard

Three chained dialogs. Step 2 depends on step 1, and progress travels in HMAC-signed requestState

input_required + requestState (multi round-trip): 2026-07-28. Emulated on 2025-era connections

elicit_url

URL-mode elicitation: the client opens a local page, the user enters a fake token, and the server confirms it received the token (masked)

URL mode: 2025-11-25. As an input_required request: 2026-07-28

elicit_url_legacy_push

URL mode in the 2025-11-25 push style: elicitation/create, then notifications/elicitation/complete once the page is submitted. Returns an error on 2026-07-28 connections by design

2025-11-25 only

slow_task

Progress notifications, log messages, and cancellation (steps, delayMs)

Progress and cancellation: 2024-11-05. Logging notifications are deprecated in 2026-07-28

open_dialog_lab

MCP App: tool _meta.ui.resourceUri, then a ui:// resource rendered in an iframe (colour picker, slider, star rating, date, drag-to-rank list, sketch canvas). Buttons exercise tools/call, ui/message, ui/update-model-context, ui/request-display-mode and ui/download-file

MCP Apps extension io.modelcontextprotocol/ui (ext-apps spec 2026-01-26)

dialog_lab_submit

App-only tool (_meta.ui.visibility: ["app"]). The UI calls it and hosts should hide it from the model

MCP Apps

dialog_lab_upload

App-only tool behind the Dialog Lab's File upload card: takes a base64 file, returns its size and SHA-256, stores nothing. Size cap UPLOAD_MAX_BYTES (10 MiB)

MCP Apps (app → server tools/call)

dialog_lab_results

Returns what was submitted in the Dialog Lab, with the sketch as an image

n/a

return_files

One tool result with every way to hand over a file: embedded text resource (CSV), embedded blob resources (PNG, PDF), a resource_link to test://files/linked-notes.md, an image block and an audio block (WAV). The first text block lists them, so you can see what the client dropped

resource_link and audio: 2025-06-18. Embedded resources and images: 2024-11-05

Resource template test://files/{name}

The sample files behind return_files (sample.csv, gradient.png, sample.pdf, beep.wav, linked-notes.md), listed in resources/list and resources/templates/list, readable with resources/read, names completable

Resource templates: 2024-11-05

elicit_format_probe

Form elicitation with schema features outside the spec, one dialog per probe: a pattern, format color, format time, a nested object, a free-text array, a file-like data-url field. Reports per probe whether the user accepted (and what came back), declined or cancelled. variant: all or one probe

Not in any spec version (deliberately)

upload_file_experimental

Experimental, not in the spec: a file argument marked with x-mcp-file per the draft files extension (io.modelcontextprotocol/files), inline base64 only. Returns size and SHA-256 and checks a supplied digest

Draft extension, not a SEP

pick_color

MCP App used like a question: a colour picker (ui://feature-test/color-picker.html; prompt, initial #rrggbb or #rrggbbaa) with tabs Wheel (hue ring + S/V triangle), Classic (S/V square), Values (RGB/HSL/HSV/alpha), Pick (EyeDropper API, system dialog, sampling from a local image) and Palettes, plus opacity, previous colour and Recent (structuredContent.recent from earlier answers, since the sandboxed iframe has no storage). Drag, touch and keyboard, HiDPI canvases, light/dark. The call returns at once with a requestId; the answer comes back in a later step through pick_color_submit (app-only, #rrggbb or #rrggbbaa), ui/update-model-context and ui/message, each reported in the UI. See server-vs-app.md

MCP Apps extension

pick_color_result

Returns the colour the user picked as hex, rgb()/rgba() and hsl()/hsla() (or "cancelled" / "still waiting") for a requestId, or for the latest pick_color

n/a

view_3d

MCP App with WebGL: an interactive three.js viewer (ui://feature-test/viewer-3d.html; shape knot/sphere/gear/glb-sample, optional camera {position, target} and highlight). Orbit, zoom, auto-rotate, wireframe, click to select a part; the selection goes back through view_3d_select (app-only), ui/update-model-context and a Tell the assistant ui/message. glb-sample is read through the host with resources/read. Its Details panel probes WebGL/WebGPU/WASM/eval/fetch/fullscreen in the host's iframe. See server-vs-app.md

MCP Apps extension (app → server resources/read, ui/request-display-mode)

view_3d_state

Returns the part the user selected in a view_3d view and the camera at that moment, or "nothing selected yet"

n/a

sample_llm

Sampling: a sampling/createMessage request, so the client runs its own LLM for the server. Sends systemPrompt, modelPreferences.hints (modelHint), maxTokens, optional temperature and includeContext; withImage adds a PNG image message. useTools offers a count_letters tool: when the model answers with tool_use, the server runs it and sends the conversation back with a tool_result (at most 3 rounds, progress in signed requestState). Reports the reply, the model the client chose, the stop reason and every tool call. useTools needs sampling.tools and includeContext other than none needs sampling.context; without them the tool returns an error instead of sending a request the client did not opt into

Sampling: 2024-11-05. sampling.tools/sampling.context, array content: 2025-11-25. As an input_required request: 2026-07-28, where sampling is deprecated (SEP-2577, kept for at least 12 months)

structured_output

Structured output: the tool declares an outputSchema (a fake build report: strings, integers, an enum, an array; all fields required, no extra ones) and returns structuredContent. variant: object (valid data plus the same JSON as text, as the spec recommends), data_only (valid data, empty content), text_differs (the text says 7 tests passed, the data says 42), invalid (data that breaks the schema three ways; the server's own SDK check is skipped for exactly this payload so it reaches the client), error (isError without structuredContent, which is allowed)

outputSchema/structuredContent: 2025-06-18

structured_output_array

An outputSchema with an array root and an array as structuredContent. On 2025-era connections the SDK wraps both as {"result": […]}, because that generation requires an object; the SDK also adds the JSON as text (it does this only for values that are not objects)

Any JSON value as structuredContent: 2026-07-28 (SEP-2106)

change_lists

List-changed notifications: adds (action: add), removes the newest (remove) or clears (reset) the dynamic items dynamic_tool_N, dynamic_prompt_N and test://dynamic/N, at most 3 of each, for kind all, tool, prompt or resource, and sends notifications/{tools,prompts,resources}/list_changed for each list that changed. The dynamic items are shared by all clients of one server process

listChanged: 2024-11-05; on 2026-07-28 only over subscriptions/listen

update_live_resource

Resource subscriptions: increases the counter in test://live/counter and sends notifications/resources/updated, which reaches 2025-era clients only after resources/subscribe and 2026-07-28 clients only when their subscriptions/listen filter names the URI

resources/subscribe: 2024-11-05, replaced by subscriptions/listen in 2026-07-28

run_task

Tasks: a fake long job (seconds, steps, outcome success/tool_error/failure, askConfirmation) declared with execution.taskSupport: "optional". With task support the call returns a task at once: on 2025-era connections when the client sends params.task ({task: …}, then tasks/get, tasks/result, tasks/list, tasks/cancel), on 2026-07-28 whenever the client declares the io.modelcontextprotocol/tasks extension (resultType: "task", then tasks/get, tasks/update, tasks/cancel). statusMessage counts the steps; askConfirmation pauses halfway in input_required (2025: an elicitation/create tagged with related-task; 2026: inputRequests in tasks/get, answered with tasks/update). Without task support it runs synchronously

Tasks: 2025-11-25 (experimental); an extension since 2026-07-28 (SEP-2663)

run_task_required

The same job with execution.taskSupport: "required": a call without a task is refused with -32601 (2025-era) or -32021 Missing Required Client Capability naming the extension (2026-07-28)

Same

list_roots

Roots: a roots/list request. Lists each root (name, URI, decoded path, and whether the path exists on the machine running the server) and how many notifications/roots/list_changed this client has sent. Reads nothing inside the folders

Roots and list_changed: 2024-11-05. As an input_required request: 2026-07-28, where roots are deprecated (SEP-2577) and list_changed does not exist

Resource test://models/sample.glb

A small glTF binary (model/gltf-binary) generated in code, with the named meshes base, tower, roof, flag

Resources: 2024-11-05

Prompt try_all_dialogs

A prompt that walks the assistant through every tool above

Prompts

Nothing these tools do has side effects: "delete" and "order" are only pretend, sample_llm's only tool counts letters, list_roots only checks whether each root path exists, the tokens entered on the URL page are kept in memory and shown masked, and uploaded files are hashed and discarded (their contents are never logged).

Quick start

Requires Node.js 20 or newer.

npm install
npm run build          # tsc + bundles the MCP App into dist/ui/dialog-lab.html
npm run inspector      # optional: try it in the MCP Inspector

Then connect a client (below) and ask the assistant to "call inspect_client", or use the try_all_dialogs prompt.

Running

Mode

Command

Endpoint

stdio (what desktop clients launch)

node dist/stdio.js or npm start

stdin/stdout. URL-flow pages are served on http://127.0.0.1:3458/flow/…

Streamable HTTP

node dist/http.js or npm run start:http

http://127.0.0.1:3457/mcp. URL-flow pages are served on the same port

Docker

see docs/docker.md

HTTP mode serves both protocol generations on one endpoint. 2026-07-28 requests are handled statelessly. 2025-era clients get a classic session (Mcp-Session-Id). See docs/architecture.md.

Environment variables

Variable

Default

Mode

Meaning

PORT

3457

HTTP

Listen port. 0 picks a free port, and the actual URL is logged.

HOST

127.0.0.1

HTTP

Bind address. Use 0.0.0.0 in containers or to accept clients on other machines; then also set PUBLIC_URL, or the server warns at startup: without it, URL-elicitation links point to 127.0.0.1 and only requests addressed to localhost are accepted. The startup log shows both the endpoint URL and the bind address (… /mcp (listening on 0.0.0.0:3457)).

PUBLIC_URL

http://<HOST>:<PORT>

HTTP

Externally visible base URL, without /mcp. Used for URL-elicitation links. Also enables localhost Host/Origin validation when it points at localhost/127.0.0.1.

ALLOWED_HOSTS

(unset)

HTTP

Comma-separated hostnames accepted in the Host and Origin headers, for example mcp.example.com. When unset, localhost names are enforced if HOST or PUBLIC_URL is local; otherwise the PUBLIC_URL hostname plus the localhost names are accepted. Set it when clients use another name (for example a Docker service name).

FLOW_PORT

3458

stdio

Port for the URL-elicitation pages. Falls back to a free port (with a warning) if it is busy. 0 always picks a free port.

FLOW_HOST

127.0.0.1

stdio

Bind address of that listener. Use 0.0.0.0 in Docker. Has no effect in HTTP mode, which serves the flow pages on its own port: use HOST there.

FLOW_PUBLIC_URL

http://<FLOW_HOST>:<port>

stdio

Base URL that the URL-elicitation links point to, when the browser has to use a different address or port.

FLOW_WAIT_MS

300000

both

How long elicit_url / elicit_url_legacy_push wait for the browser page after the client already answered accept (clients may accept when the link is opened).

UPLOAD_MAX_BYTES

10485760 (10 MiB)

both

Largest decoded file dialog_lab_upload and upload_file_experimental accept. Also sizes the HTTP request-body limit (this value as base64 plus 1 MiB; larger bodies get 413) and the stdio message buffer.

LOG_LEVEL

info

both

debug, info, warn, error or silent.

LOG_FORMAT

text

both

text (readable, multi-line capability tables) or json (one JSON object per line).

All logs go to stderr. In stdio mode, stdout carries the protocol and never contains log output.

Connecting clients

Replace /abs/path/to/mcp-feature-test with your checkout. The configuration formats below are the ones these clients document. This repository does not test them automatically (see Client support).

Claude Desktop

claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "feature-test": {
      "command": "node",
      "args": ["/abs/path/to/mcp-feature-test/dist/stdio.js"]
    }
  }
}

Restart Claude Desktop afterwards. Claude Desktop's config file only launches stdio servers. Remote HTTP servers are added as connectors in the app, and those generally need a publicly reachable HTTPS URL rather than localhost.

Claude Code

# stdio
claude mcp add feature-test -- node /abs/path/to/mcp-feature-test/dist/stdio.js
# or HTTP (start `npm run start:http` first)
claude mcp add --transport http feature-test http://127.0.0.1:3457/mcp

Run /mcp inside Claude Code to check the connection.

VS Code (GitHub Copilot agent mode)

.vscode/mcp.json in a workspace, or the user-level mcp.json (MCP: Open User Configuration):

{
  "servers": {
    "feature-test": {
      "type": "stdio",
      "command": "node",
      "args": ["/abs/path/to/mcp-feature-test/dist/stdio.js"]
    },
    "feature-test-http": {
      "type": "http",
      "url": "http://127.0.0.1:3457/mcp"
    }
  }
}

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "feature-test": { "command": "node", "args": ["/abs/path/to/mcp-feature-test/dist/stdio.js"] },
    "feature-test-http": { "url": "http://127.0.0.1:3457/mcp" }
  }
}

MCP Inspector

npm run inspector                                   # stdio
npx @modelcontextprotocol/inspector                 # then choose "Streamable HTTP", URL http://127.0.0.1:3457/mcp

Open WebUI

See docs/openwebui.md.

Docker

A ready-made image is published to ghcr.io/linuxrrze/mcp-feature-test. Every code change is released automatically as a new version (latest, X.Y.Z, X.Y, X and dated rollback tags; see docs/docker.md):

docker run --rm -p 127.0.0.1:3457:3457 ghcr.io/linuxrrze/mcp-feature-test

See docs/docker.md.

Any other HTTP client

Point it at http://127.0.0.1:3457/mcp (Streamable HTTP). A 2026-07-28 client sends its client info and capabilities in every request's _meta. A 2025-era client starts with initialize and then sends Mcp-Session-Id on every request. A browser-based client running on another host has to be allowed in ALLOWED_HOSTS. To check the endpoint quickly:

curl -s http://127.0.0.1:3457/          # "mcp-feature-test is running."

What you should see

Tool

In a client with full support

If the client lacks the feature

inspect_client

A capability table (elicitation form/url, MCP Apps UI and its mimeTypes, sampling, roots, tasks) followed by the raw JSON

Always works

elicit_confirm

A dialog "Really delete …?" with one checkbox. The result says ACCEPTED, DECLINED or CANCELLED

Tool error: "… did not declare form-mode elicitation support …"

elicit_all_field_types

One form containing about 13 fields of every type, with defaults pre-filled. The result lists each value and its JSON type, which shows whether the client sends integers as numbers, arrays for multi-selects, and so on

Same tool error

elicit_parallel

Two dialogs ("what should I call you?" and "how are you?"), shown together or one after the other

Same tool error

elicit_wizard

Three dialogs in a row. The step 2 limit depends on the size chosen in step 1, and step 3 shows a summary

Same tool error

elicit_url

The client offers to open a URL. The page (below) asks for any token. Submit it, go back, accept, and the result reports a masked token

Tool error mentioning url-mode. If you accept before submitting the page, the tool waits for the page and returns an error after FLOW_WAIT_MS if it is never submitted

elicit_url_legacy_push

2025-era connections only: the same flow, and the client should close its dialog by itself when it receives notifications/elicitation/complete

On 2026-07-28: a tool error explaining that push-style elicitation does not exist there

slow_task

A progress indicator counting up. Cancelling stops it early

Result text: "Client did not request progress."

open_dialog_lab

The Dialog Lab UI (screenshots above)

Only the text result, which says that no UI appeared because the client does not render MCP Apps

dialog_lab_results

The last submissions as JSON, plus the sketch as an image

Dialog Lab File upload

Pick a file, press Upload to server: the app shows size and SHA-256 (and whether they match the local file). Try 100 KB, 1 MB and 10 MB files to find the host's message-size limit

An error under the upload card: the host's or the server's limit, or no serverTools support

Dialog Lab downloads

Three buttons: JSON (embedded text), sketch PNG (embedded blob) and linked PDF (resource_link, which the host has to read from the server)

All three are disabled, with a note, when the host doesn't advertise hostCapabilities.downloadFile

return_files

Seven blocks: the list, a CSV, a PNG, a PDF, a link to a Markdown file, an image and a short beep

Whatever is missing from the list was dropped (or handed only to the model)

elicit_format_probe

One dialog per probe. The result says per probe what came back; every one of these is outside the spec, so a fallback text box, a dropped field or a refusal is all legitimate

A client that refuses a schema ends the whole call with an error (the official TypeScript SDK client refuses everything except pattern). Use single variants to find which probe it refuses

upload_file_experimental

Only clients implementing the draft files extension render a file picker; others show the raw object

A model can still call it with inline base64

pick_color

A colour picker panel (screenshots at the top) with the question, OK and Cancel. After OK the assistant learns the colour from the model context and/or a chat message ("I picked #xxxxxx for: …", #xxxxxxxx with opacity); the picker lists which of the three channels worked

Only the text result; pick_color_result then keeps answering "still waiting"

sample_llm

The client should first show the request (prompt, system prompt) for approval, possibly let you edit it, then show the reply before it reaches the server. The result names the model the client chose. With useTools, two approvals: one per round

Tool error: "… did not declare the sampling capability …" (or sampling.tools / sampling.context for those options). If you reject the request: a tool error on 2025-era connections; on 2026-07-28 the client ends the call itself, so the server never hears about it

structured_output

object: the client shows the report as data (a table or JSON view) or the text. data_only: the same report, although there is no text; a client that only reads content shows an empty result. text_differs: ask the assistant how many tests passed; "42" means the model got the data, "7" the text. invalid: a validating client reports an error (the official TypeScript client refuses it with -32602 … does not match the tool's output schema, but only after it has fetched the schema with tools/list). error: a normal tool error

Clients without structured-output support show the text blocks and ignore the data, so data_only comes out empty and invalid goes unnoticed

structured_output_array

Three metrics as data. On 2025-era connections the data appears as {"result": […]}

Only the JSON text

change_lists

dynamic_tool_1, dynamic_prompt_1 and test://dynamic/1 appear in the client's tool, prompt and resource lists without reconnecting, and the assistant can call dynamic_tool_1; remove/reset make them disappear again. On a shared HTTP server another client's change shows up too

The new items only appear after a reconnect or a manual refresh. On 2026-07-28 that also happens when the client never opens a subscriptions/listen stream

update_live_resource

A client that shows or subscribed to test://live/counter re-reads it and shows the new counter

The old counter stays until the resource is read again

run_task

The client shows a running job (with the step counter from statusMessage) and the result when it finishes, without blocking the chat. With askConfirmation it asks "… is halfway through. Continue?" during the job. Cancelling stops it

The call simply takes seconds to return, and the text ends with "Ran synchronously: the client did not request a task." The official TypeScript client SDK (v2.4) declares no task support and on 2026-07-28 rejects a task result with "Unsupported result type 'task'"

run_task_required

Same as run_task

A protocol error: -32601 (2025-era) or -32021 (2026-07-28)

list_roots

The folders you opened in the client (a workspace, project or configured roots). Change them and call again: on 2025-era connections the notification count goes up

Tool error: "… did not declare the roots capability …". Clients that declare roots but have nothing open answer with an empty list

view_3d

A 3D view (screenshots below) you can drag, zoom and click. Selecting a part reports Server: stored, model context and (after Tell the assistant) the chat message; view_3d_state then names the part. Fullscreen appears only if the host offers it

Only the text result ("If no 3D view appeared, this client does not render MCP Apps."). With glb-sample, a host without resources/read for apps shows an error inside the viewer

3D viewer (view_3d), light

3D viewer (glb-sample), dark

3D viewer, light theme

3D viewer with the sample GLB, dark theme

URL-mode elicitation page, light

pick_color in Open WebUI 0.13.2. Open WebUI asks for two confirmations per answer: one for the app's tool call and one for its chat message. Dragging, image sampling through the file chooser and the EyeDropper API work inside its sandbox; browser storage does not. Details are in docs/openwebui.md.

1. The picker, rendered inline under the tool call

2. OK: confirm the app's call to pick_color_submit

pick_color picker in Open WebUI

Tool call confirmation for pick_color_submit

3. Confirm the chat message ("I picked …")

4. The model reads the answer with pick_color_result

Message confirmation for ui/message

pick_color_result answer in the chat

The Pick tab: a loaded image, a sampled colour

Pick tab in Open WebUI with a sampled image

Capability logging

When a client connects, the server writes a summary to stderr. Some clients surface server stderr: Claude Desktop writes it to mcp-server-feature-test.log, VS Code shows it in the Output panel, and docker logs shows it for containers.

2026-11-08T16:31:40.486Z INFO  [client.connected] client connected: smoke-test 0.0.1 (protocol 2025-11-25, legacy era, stdio)
    elicitation    form: yes   url: yes
    MCP Apps UI    yes  mimeTypes: text/html;profile=mcp-app
    sampling       no
    roots          no
    tasks          no
    extensions     (none besides UI)
    experimental   (none)
    raw            {"elicitation":{"form":{},"url":{}},"extensions":{"io.modelcontextprotocol/ui":{"mimeTypes":["text/html;profile=mcp-app"]}}}
2026-11-08T16:31:40.514Z INFO  [tool.input_required] elicit_confirm [legacy] asks for input: confirm (form)
2026-11-08T16:31:40.529Z INFO  [tool.result] elicit_confirm [legacy] user: confirm=accept; → ok (0 ms)
  • 2025-era clients are logged once per connection, after the initialize handshake (client.connected).

  • 2026-07-28 clients have no handshake. They are logged the first time a new combination of client info, version, protocol, transport and capabilities appears in a request envelope (client.seen). Repeat sightings only update the counters.

  • Each tool call is logged with the user's answer (accept, decline or cancel) and the outcome (ok, error or cancelled).

  • With LOG_FORMAT=json every event is one JSON line (time, level, event, msg plus structured fields such as summary and capabilities), which is easy to process with jq.

  • list_seen_clients returns the same information through MCP, which helps when several frontends are tested against one HTTP server.

Troubleshooting

Symptom

Check

No dialog appears

Run inspect_client, or look at the client.connected/client.seen log line. If elicitation form: no, the client does not declare elicitation, and the tools return an explanatory error instead of a dialog. Some clients show elicitation only in agent mode or after you approve the tool call.

elicit_url says the client doesn't declare url

The client only supports form mode (elicitation: {} means form only).

The URL page doesn't load

In stdio mode the page is served on FLOW_PORT (default 3458; check the flows.listening log line for the actual port). In Docker, publish that port and set FLOW_HOST=0.0.0.0. Behind a proxy, set PUBLIC_URL (HTTP mode) or FLOW_PUBLIC_URL (stdio mode).

elicit_url seems to hang after you accepted

Some clients (e.g. Open WebUI) answer accept as soon as the link is opened; the tool then waits for the browser page to be submitted. Submit the page, or the tool returns an error after FLOW_WAIT_MS (default 5 min).

No graphical UI for open_dialog_lab

Check MCP Apps UI in inspect_client. The client must declare the io.modelcontextprotocol/ui extension with text/html;profile=mcp-app.

HTTP answers 403

Host/Origin validation (DNS-rebinding protection). Add your hostname to ALLOWED_HOSTS.

The startup log says http://127.0.0.1:3457/mcp although you want remote clients

Set HOST=0.0.0.0 (not FLOW_HOST, which only applies in stdio mode) and PUBLIC_URL to the address clients use. The (listening on …) part of the log line shows the actual bind address.

HTTP answers 413, or a Dialog Lab upload fails

The request body was above UPLOAD_MAX_BYTES as base64 plus 1 MiB, or the file was above UPLOAD_MAX_BYTES. Raise the variable. If the server never logs upload.received/upload.rejected, the host refused the message before it reached the server.

The URL page answers 409

The flow was already submitted once. Run the tool again for a new link.

HTTP answers 400 "Missing session" or 404 "Unknown session"

A 2025-era client sent a request without initialize first, or after the server restarted. Reconnect.

elicit_url_legacy_push fails

Expected on 2026-07-28 connections. Use elicit_url.

The client shows garbage or JSON parse errors (stdio)

Something wrote to stdout. This server never does; check wrapper scripts.

dist/ui/dialog-lab.html missing ("Dialog Lab UI not built")

Run npm run build.

Client support

Client support for these features changes quickly, so the server itself is the source of truth: connect your client and read the capability log or inspect_client. This repository tests the server against the official TypeScript SDK client (both protocol eras, stdio and HTTP) and the MCP App against the official AppBridge in headless Chromium. It does not run tests against Claude Desktop, Claude Code, VS Code or Cursor, so their support for form or URL elicitation and MCP Apps is not verified here. For Open WebUI, see the separate notes in docs/openwebui.md.

If you test a client, the client.connected/client.seen log line and the results of elicit_all_field_types (types as received) make a good report.

Development and tests

npm run build              # tsc + UI bundle
npm test                   # build + all suites (unit, integration, UI)
npm run test:unit
npm run test:integration   # spawns dist/stdio.js and dist/http.js (free ports)
npm run test:ui            # headless Chromium; skipped with a message if none is found
npm run screenshots        # regenerates docs/images/*.png

CI (.github/workflows/docker-image.yml) runs the full suite, builds and smoke-tests the image, scans it with Trivy and publishes it; see docs/docker.md. See docs/testing.md for what each suite covers, and docs/architecture.md for how the server is put together.

Source layout: src/server.ts (tools and factory), src/files.ts (generated sample files, upload decoding and limits), src/clients.ts (capability summary and seen-clients registry), src/log.ts (stderr logger), src/flows.ts (URL-elicitation pages), src/httpServer.ts + src/http.ts (HTTP), src/stdio.ts (stdio), src/banner.ts (container startup banner), src/colorPicker.ts (the pick_color tools), src/colorMath.ts (colour maths shared with the picker UI), src/viewer3d.ts (the view_3d tools and the sample GLB), src/samplingRoots.ts (sample_llm and list_roots), src/structuredOutput.ts (structured_output*), src/listChanged.ts (change_lists, update_live_resource and the dynamic items), src/tasks.ts (run_task*, the task store and the tasks/* methods), ui/ (the MCP Apps).

Available Tools

30 tools
change_listsChange the server’s lists (list_changed)A

Add or remove a dynamic tool (dynamic_tool_N), prompt (dynamic_prompt_N) and resource (test://dynamic/N), at most 3 each, and send the matching notifications/*/list_changed. Then check whether the client’s tool, prompt and resource lists update by themselves. The lists are shared by all clients of this server; action=reset removes every dynamic item.

Inputs: kind, action. Returns: action, atLimit, changed, dynamic

dialog_lab_resultsRead Dialog Lab resultsB
Read-only

Return what users submitted in the Dialog Lab graphical dialog (most recent first).

Inputs: limit.

dialog_lab_submitSubmit Dialog Lab result (app-only)A

Called by the Dialog Lab UI to store the user's answers. Hidden from the model.

Inputs: data (required).

dialog_lab_uploadUpload a file from the Dialog Lab (app-only)A

Called by the Dialog Lab UI with a base64-encoded file. Returns its size and SHA-256; the content is not stored or logged. Limit: 10.00 MiB (UPLOAD_MAX_BYTES). Hidden from the model.

Inputs: data (required), name (required), mimeType (required).

elicit_all_field_typesForm with every field type (elicitation)B
Read-only

Show one elicitation form containing every field type allowed by the spec: string (min/max length), formats (email, uri, date, date-time), integer, number, boolean, single-select enums (untitled, titled, legacy enumNames) and multi-select enums, with defaults. Use variant to test subsets.

Inputs: variant.

elicit_confirmConfirm dialog (elicitation)A
Read-only

Ask the user to confirm a (fake, harmless) destructive action via a native yes/no elicitation dialog. Demonstrates accept / decline / cancel handling.

Inputs: item.

elicit_format_probeProbe non-spec form fields (elicitation)A
Read-only

Show form-elicitation dialogs that use schema features OUTSIDE the MCP spec (format "color", format "time", a regex pattern, a nested object, a free-text array, a file-like data-url field), one dialog per probe, and report what the client did with each. variant picks one probe; "all" runs them one after another.

Inputs: variant.

elicit_parallelTwo dialogs in one round (elicitation)A
Read-only

Request two independent elicitations in a single input_required round. Tests how a client handles several pending input requests (modern clients may show them together; legacy clients one after the other).

Inputs: no named parameters.

elicit_urlBrowser flow (URL-mode elicitation)A
Read-only

Ask the client to open a local web page where the user enters a fake API token (simulates OAuth / secret entry that must not pass through the client or model). The tool then confirms the server received it (masked).

Inputs: no named parameters.

elicit_url_legacy_pushBrowser flow, 2025-11-25 style (URL elicitation + completion notification)A
Read-only

Same as elicit_url but uses the 2025-11-25 push-style elicitation/create request and sends notifications/elicitation/complete when the page is submitted. Only works on 2025-era connections; useful to test clients that implement completion notifications.

Inputs: no named parameters.

elicit_wizardMulti-step wizard (elicitation)A
Read-only

Order an imaginary pizza through a 3-step dialog wizard. Step 2 depends on step 1 (number of toppings depends on size), step 3 shows a summary for confirmation. Demonstrates chained elicitations with signed requestState.

Inputs: no named parameters.

inspect_clientInspect client capabilitiesA
Read-only

Report the protocol version, client info and declared client capabilities (elicitation form/url, MCP Apps UI extension, sampling, roots). Use it to check what the current frontend supports.

Inputs: no named parameters.

list_rootsList the client’s rootsA
Read-only

Send a roots/list request and report the folders (file:// roots) the client exposes to this server, whether each path exists on the machine running the server, and how many notifications/roots/list_changed the client has sent. Reads nothing inside the folders.

Inputs: no named parameters.

list_seen_clientsList clients seen by this serverA
Read-only

List every distinct client (name, version, protocol version, transport, capabilities) that has talked to this server process since it started, most recent first. Useful when testing several frontends against one HTTP server.

Inputs: no named parameters.

open_dialog_labGraphical dialog (MCP App)A
Read-only

Open the "Dialog Lab": an interactive graphical dialog (MCP Apps / ui:// resource) with a colour picker, slider, star rating, drag-to-reorder list and drawing canvas. The user can submit the result to the server, send it as a chat message, or put it into the model context. Use dialog_lab_results afterwards to read what the user submitted.

Inputs: items, question.

pick_colorAsk the user for a colour (MCP App)A
Read-only

Show a colour picker (MCP App) that asks the user a question; the user may also choose an opacity (the answer is then #rrggbbaa). The call returns immediately; the user answers afterwards. The answer reaches you as a chat message or model context, or call pick_color_result to read it.

Inputs: prompt, initial.

pick_color_resultRead the colour picker answerA
Read-only

Return the answer to a pick_color question: the colour, "cancelled", or "still waiting". Without requestId the most recent pick_color request is used.

Inputs: requestId.

pick_color_submitSubmit colour picker answer (app-only)A

Called by the colour picker UI to store the user's answer (OK or Cancel). Hidden from the model.

Inputs: action (required), requestId (required), color.

return_filesReturn files in a tool resultA
Read-only

Return one tool result containing every way MCP can hand a file to a client: an embedded text resource (CSV), embedded blob resources (PNG and PDF), a resource_link (fetched via resources/read), an image block and an audio block (WAV). The first text block lists them, so you can see which ones the client dropped.

Inputs: no named parameters.

run_taskLong job as a task (tasks)A
Read-only

Run a fake long job. Clients with task support get a task handle at once and poll it (tasks/get); others wait for the result. Options: seconds, steps, outcome (success, tool_error, failure) and askConfirmation (pauses halfway for a yes/no: task status input_required).

Inputs: steps, outcome, seconds, askConfirmation.

run_task_requiredTask-only job (taskSupport: required)A
Read-only

Same fake job as run_task, but declared execution.taskSupport "required": the client must call it as a task. Without task support it fails (-32601 on 2025-era, -32021 on 2026-07-28).

Inputs: steps, outcome, seconds, askConfirmation.

sample_llmAsk the client’s LLM (sampling)A
Read-only

Send a sampling/createMessage request: the client runs its own LLM for this server (it should let the user review the request first) and returns the reply. Reports the reply, the model the client chose and the stop reason. Options: system prompt, model hint, maxTokens, temperature, includeContext, an image input, and useTools (the 2025-11-25 tool loop with a count_letters tool).

Inputs: prompt, useTools, maxTokens, modelHint, +4 more.

slow_taskSlow task (progress, logs, cancellation)B
Read-only

Run a fake long task that reports progress notifications and log messages, and stops early when the client cancels it.

Inputs: steps, delayMs.

structured_outputStructured output (outputSchema)A
Read-only

Return a fake build report as structuredContent, declared by an outputSchema. Variants: object (valid data plus the same JSON as text, as the spec recommends), data_only (valid data, no text block at all), text_differs (the text block reports different numbers than the data), invalid (data that violates the outputSchema), error (an isError result without structuredContent, which the spec allows).

Inputs: variant. Returns: A (fake) CI build report

structured_output_arrayStructured output with an array rootA
Read-only

Return a list of metrics whose outputSchema has an array root. Allowed on 2026-07-28 (SEP-2106); on 2025-era connections the schema and the value arrive wrapped as {"result": [...]}.

Inputs: no named parameters. Returns: result

update_live_resourceUpdate a subscribed resourceA

Increase the counter in test://live/counter and send notifications/resources/updated for it. Subscribe first (resources/subscribe on 2025-era connections, a subscriptions/listen stream with resourceSubscriptions on 2026-07-28), then check whether the client re-reads it.

Inputs: no named parameters. Returns: uri, counter, updatedAt, legacySubscribers

upload_file_experimentalUpload a file (EXPERIMENTAL x-mcp-file)A
Read-only

EXPERIMENTAL, not part of the MCP spec: a tool whose "file" argument is marked with x-mcp-file, following the draft of the io.modelcontextprotocol/files extension (inline base64 only, no out-of-band upload). Returns the size and SHA-256 of the received file; nothing is stored.

Inputs: file (required).

view_3dShow an interactive 3D view (MCP App)A
Read-only

Show an interactive 3D viewer (MCP App, three.js) the user can rotate, zoom and click. Shapes: knot, sphere, gear, glb-sample (glb-sample is a small glTF model read from test://models/sample.glb). Optionally set the camera and highlight one part. When the user selects a part it reaches you as model context or a chat message; view_3d_state reads the latest selection.

Inputs: shape, camera, highlight.

view_3d_selectStore a 3D view selection (app-only)A

Called by the 3D viewer when the user selects a part (or clears the selection), with the current camera. Hidden from the model.

Inputs: part (required), viewId (required), camera.

view_3d_stateRead the 3D view selectionA
Read-only

Return the part the user selected in a view_3d viewer and the camera at that moment, or "nothing selected yet". Without viewId the most recent view is used.

Inputs: viewId.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 30 tools

    Disambiguation3/5

    The set is organized into clear feature clusters, but several tools overlap heavily within those clusters: six elicitation probes, multiple task runners, and paired UI action/result tools. The detailed descriptions do distinguish each test target, but an agent must read carefully to avoid selecting the wrong variant.

    Naming Consistency3/5

    All names use snake_case, but the convention mixes verb-first names (elicit_confirm, open_dialog_lab) with noun-first names (dialog_lab_submit, pick_color_result, view_3d_state) and bare noun names (slow_task, structured_output). The domain prefixes are readable, but there is no single predictable verb_noun pattern throughout.

    Tool Count3/5

    Thirty tools is heavy for an MCP server, though the broad protocol-feature-testing scope justifies many of them. The surface is inflated by per-variant probes and hidden UI callback tools, making it borderline rather than well-scoped.

    Completeness4/5

    Coverage is broad across elicitation, tasks, resources, sampling, roots, structured output, MCP Apps UI, dynamic list changes, and experimental file handling. Minor gaps remain around general prompt/resource lifecycle tools and completion/autocomplete testing, but the stated feature-testing purpose is largely covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A demo MCP server showcasing every MCP capability with fake logic, including tools, resources, prompts, progress, cancellation, elicitation, sampling, roots, and subscriptions, over Streamable HTTP, HTTP+SSE, and stdio transports.
      -