fitnesse-mcp
An MCP server that exposes FitNesse's REST responders as tools, letting an MCP client read wiki pages, run tests and suites, manage the files section, and…
An MCP server that exposes FitNesse's REST responders as tools, letting an MCP client read wiki pages, run tests and suites, manage the files section, and inspect test history on a FitNesse instance. Copyright (c) 2026 netcare GmbH. Released under the MIT License. Register the published image with Claude Code, read-only for a first run:
Summary extracted from the README.
fitnesse-mcp
An MCP server that exposes FitNesse's REST responders as tools, letting an MCP client read wiki pages, run tests and suites, manage the files section, and inspect test history on a FitNesse instance.
Copyright (c) 2026 netcare GmbH. Released under the MIT License.
Requirements
- A reachable FitNesse instance
- Docker, or Python 3.12+ (FastMCP is pinned exactly, see pyproject.toml: it has shipped breaking changes in minor releases)
Quickstart
Register the published image with Claude Code, read-only for a first run:
claude mcp add fitnesse \
-e FITNESSE_BASE_URL=http://your-fitnesse-host:8080 \
-e FITNESSE_USERNAME=your-username -e FITNESSE_PASSWORD=your-password \
-e FITNESSE_TOOLSETS=read \
-- docker run --rm -i -e FITNESSE_BASE_URL -e FITNESSE_USERNAME \
-e FITNESSE_PASSWORD -e FITNESSE_TOOLSETS ghcr.io/netcare-io/fitnesse-mcp:latest
localhost in FITNESSE_BASE_URL would be the container, not your host — see
Troubleshooting. More options, including HTTP and a server
started from a checkout, are under Running.
Security
This server gives an LLM client the ability to delete pages, purge test history, and roll back versions on your FitNesse instance. Two controls limit that, and both are opt-in:
-
Start with
FITNESSE_TOOLSETS=read. This hides every tool that changes pages or files or runs tests, leaving only the read tools (see Tools for counts). Addwriteand/ortestdeliberately once you know which operations you actually want the model to perform, e.g.FITNESSE_TOOLSETS=read,testto let it run tests but not edit pages. -
fitnesse_shutdownis not registered at all unlessFITNESSE_ALLOW_SHUTDOWNis set. It stops the FitNesse server. -
fitnesse_save_accountis not registered at all unlessFITNESSE_ALLOW_ACCOUNT_ADMINis set. It changes passwords and, as the FitNesse admin user, creates or deletes users. -
The optional
X-FitNesse-Urlheader is not checked beyond being anhttp(s)URL: over the HTTP transport, whoever can reach the MCP endpoint can make the server call any host it can reach, including internal ones. InFITNESSE_AUTH_MODE=envthe server also sends its own FitNesse login there. Expose an HTTP deployment only to people you trust with that, or useFITNESSE_AUTH_MODE=headersso the only credentials sent are the caller's.
Three further notes:
fitnesse_list_files,fitnesse_create_dir,fitnesse_upload_file,fitnesse_download_file,fitnesse_delete_file, andfitnesse_rename_fileare not registered at all unlessFITNESSE_FILES_ROOTis set.- Every files tool is confined to the resource root named by
FITNESSE_FILES_ROOTon the remote FitNesse instance (defaultfiles, but some instances configure a different root):files_pathmust start with that root and may not contain.., andfilename/dirname/new_namemust be plain names without path separators. A call aiming outside it (e.g.files_path: "FrontPage") is rejected before any request goes out, so these tools cannot reach wiki pages or other responders. Neitherfitnesse_upload_filenorfitnesse_download_filetouches local disk: content travels through the tool call itself, so both work even when the MCP server and the calling client don't share a filesystem.fitnesse_download_filereturns the file's content directly in its result — as an inline image forimage/*content, or as a text/binary resource otherwise.fitnesse_upload_filetakes the content as an argument — plain text viacontent, or base64-encoded bytes viacontent_base64— instead of a local file path. - Credentials in
claude_desktop_config.jsonare stored in cleartext. For shared machines, prefer an HTTP server (see Running), either with the credentials in its own environment or withFITNESSE_AUTH_MODE=headers, where every user sends their own FitNesse login and FitNesse's page rights apply per user.
Environment variables
| Variable | Default | Description |
|---|---|---|
FITNESSE_BASE_URL |
http://localhost:8080 |
FitNesse server base URL. Over HTTP a request can name another instance in the optional X-FitNesse-Url header (see Security) |
FITNESSE_AUTH_MODE |
env |
env: every call uses FITNESSE_USERNAME / FITNESSE_PASSWORD. headers: every HTTP request brings its own FitNesse login in X-FitNesse-Username / X-FitNesse-Password; the env pair is ignored and a request without them fails. HTTP transport only |
FITNESSE_USERNAME |
(none) | Basic Auth username (env mode) |
FITNESSE_PASSWORD |
(none) | Basic Auth password (env mode) |
FITNESSE_TOOLSETS |
required | Comma-separated toolsets. all = read,write,test (every mode, no area); all,debug,complete grants everything. Modes read, write, test (named after FitNesse's secure-read/-write/-test) filter every tool: read reads pages, history, and files; write changes pages and files (also fitnesse_shutdown / fitnesse_save_account, which still need their own flag); test runs and stops tests. Areas debug (KDTA debug tools, fitnesse_debug_* / fitnesse_table_*; needs netcare's FitNesse fork with the debugTest/debugTable responders) and complete (21 lower-traffic tools, marked below) add tools, which are still filtered by the modes: read,debug shows only the reading debug tools. A missing or empty value, an area without a mode, or an unknown value stops the server at startup |
FITNESSE_ALLOW_SHUTDOWN |
false |
1/true/yes/on exposes fitnesse_shutdown |
FITNESSE_ALLOW_ACCOUNT_ADMIN |
false |
1/true/yes/on exposes fitnesse_save_account |
FITNESSE_ALLOW_ADOPT |
false |
With debug: 1/true/yes/on adds adopt/session to fitnesse_debug_status, so the MCP server can take over a debug session it did not start (maybe a person's in the browser). Off, it only works with its own sessions and the tool texts never suggest taking one over; give it its own FitNesse account |
FITNESSE_FILES_ROOT |
(none — files tools disabled) | Resource root of the files section on the FitNesse instance (e.g. files); enables fitnesse_list_files, fitnesse_create_dir, fitnesse_upload_file, fitnesse_download_file, fitnesse_delete_file, and fitnesse_rename_file |
FITNESSE_MAX_RESPONSE_BYTES |
1048576 (1 MB) |
Responses above this are truncated and flagged "truncated": true |
FITNESSE_FILES_MAX_TRANSFER_BYTES |
10485760 (10 MB) |
Uploads above this are rejected; downloads above this are truncated and rejected |
FITNESSE_RUN_TIMEOUT_SECONDS |
120 |
Read timeout for fitnesse_run_test and fitnesse_run_suite; 0 disables it. Applies per socket read, so it caps idle time, not total run time. The MCP client and any proxy have their own timeouts |
FITNESSE_DEBUG_TIMEOUT_SECONDS |
660 |
With debug: read timeout for debug documents; keep it above the server's debugTest.timeoutMinutes (default 10 min). 0 disables it |
FITNESSE_DEBUG_MAX_RESPONSE_BYTES |
16777216 (16 MB) |
Limit for raw debug answers (condensed before they reach the model); larger answers fail |
FITNESSE_DEBUG_MAX_CELL_CHARS |
1500 |
Table cells (e.g. stack traces) in debug results are cut to this length |
Breaking changes in 1.0.0
Upgrading from 0.4.x. Prompts, skills, and allowlists that name tools or pass the values below need updating. FitNesse 20261101 is the reference release (see FitNesse compatibility).
FITNESSE_READONLY and FITNESSE_COMPLETE_TOOLSET are replaced by FITNESSE_TOOLSETS
| 0.4.x | 1.0.0 |
|---|---|
FITNESSE_READONLY=1 |
FITNESSE_TOOLSETS=read (read,debug with the KDTA debug tools) |
FITNESSE_READONLY unset or 0 |
FITNESSE_TOOLSETS=all (= read,write,test) |
FITNESSE_COMPLETE_TOOLSET=1 |
add complete, e.g. FITNESSE_TOOLSETS=read,complete or all,complete |
| — | finer: e.g. read,test (run tests, no edits) or read,write (edit, no runs) |
FITNESSE_TOOLSETS is required: without it the server stops at startup,
so no configuration silently gets more permissions than before. Both old
variables are no longer read; remove them.
fitnesse_stop_test needs test; fitnesse_shutdown and
fitnesse_save_account need write (and their own flag). The KDTA debug
tools (new) need debug plus the mode of what they do (see
KDTA debug mode). Areas
(debug, complete) are never included in all; all,debug,complete
grants everything.
Removed and renamed tools
| 0.4.x | 1.0.0 |
|---|---|
fitnesse_execute_search_properties |
fitnesse_search_properties (needs complete) |
fitnesse_get_versions, fitnesse_view_version |
fitnesse_page_versions(page_path) lists the versions, with version shows one, with version and compare_to (another version or latest) returns a diff. Condensed results (versions, content, diff) instead of FitNesse's HTML; the variables argument of fitnesse_view_version is gone |
fitnesse_compare_history |
fitnesse_get_page_history(page_path, result_date, compare_to): both arguments are result dates (yyyyMMddHHmmss or latest), not result file names. Returns only what differs (differences), not FitNesse's HTML report |
fitnesse_get_rss, fitnesse_import_pages, fitnesse_import_and_view, fitnesse_manage_symlink, fitnesse_purge_history |
unchanged, but need complete in FITNESSE_TOOLSETS |
Removed arguments and changed results:
| Tool | 0.4.x | 1.0.0 |
|---|---|---|
fitnesse_run_test, fitnesse_run_suite |
remote_debug |
removed: it makes the test process wait for a Java debugger to attach, which an agent cannot do. debug stays |
fitnesse_get_variables |
FitNesse's HTML in body |
variables (name, value, location); values of variables named like a secret (password, token, …) are masked as *** |
Parameter mapping for fitnesse_search_properties:
| 0.4.x | 1.0.0 |
|---|---|
page_type (one value) |
page_types (list of Static, Test, Suite) |
action (string) |
actions (list; Any ignores the group) |
exclude_setup, exclude_teardown |
special (list of Any, SetUp, TearDown: listed kinds are included, unlisted excluded) |
exclude_obsolete |
removed; FitNesse never evaluated it |
| — | new: security, prune, search_scope |
page_path required |
page_path optional (default: root) |
Changed values
-
Page types are
Static,Test,Suite.NormalandDefaultare rejected; useStatic. Affectsfitnesse_add_child_page,fitnesse_get_new_page_form, andfitnesse_save_properties. -
fitnesse_save_propertiesattributesuse FitNesse's property names:0.4.x 1.0.0 Secure-Read,Secure-Edit,Secure-Testsecure-read,secure-write,secure-testTest,Suiteremoved; set page_type— new: DisableTestHistory -
fitnesse_searchsearch_typeaccepts onlytitleorcontent. -
fitnesse_save_page_contentedit_time/ticket_idmust be numeric.
Changed results
fitnesse_searchandfitnesse_search_propertiesreturn the matches, not FitNesse's HTML:countandmatches(page,type,tags,last_modified), plusnotewhen nothing matched andleft_outabove 200 matches.fitnesse_searchnow really runs the search (FitNesse answers only the search form withoutisTextSearch/isMethodSearch). Anything that readbodyhas to readmatches.- The tools that change pages answer short:
fitnesse_add_child_page,fitnesse_delete_page,fitnesse_move_page,fitnesse_rename_pageandfitnesse_save_page_contentreturnok,statusand amessage(on failure alsoerror) instead of the 15-50k characters of HTML page FitNesse sends back. Read the page withfitnesse_get_page_dataif you need it.
Changed behaviour
fitnesse_save_propertiesmerges instead of resetting. Omittedpage_type,suites,help_text, andattributeskeep their current values. 0.4.x always sentpage_type(defaultNormal, aspageType, which FitNesse 20251025 ignores), and FitNesse dropped the omitted tags, help text, and attributes. To clear a value, pass it empty.fitnesse_save_page_contentkeeps help text and tags. FitNesse removes them when they are not sent; the tool now sends the current ones unlesshelp_text/suitesare given.- Both save tools fail when they need the current properties and cannot
read them (
ToolError, nothing saved), i.e. when a value above is omitted. 0.4.x saved without them. fitnesse_save_page_contentoverwrites withoutedit_time. In 0.4.x a page saved once through the UI could silently turn the next save into FitNesse's merge form (status 200, nothing saved). Withedit_timeandticket_idfromfitnesse_get_page_data, a conflicting save now fails with "Not saved" instead of returning the merge form.fitnesse_get_page_dataalso returnsedit_timeandticket_idand makes two requests (edit, thenpageData).fitnesse_get_page_historyandfitnesse_get_suite_overviewreturn a condensed result instead of FitNesse's XML/HTML inbody(neither responder has a JSON format): runs, a suite run's pages with status andresult_date, or a test run's failing tables.raw=truereturnsbodyas before.fitnesse_debug_inspect(kind='keywords', filter=…)leaves out the help texts; a help text marking a required row becomesmandatory: true.details=truereturns them as before.fitnesse_debug_endreturns the last 30 unread log entries (max_log_lines, 0 for none),log_omittedcounts the lines left out. It asks FitNesse for the number of log lines first (logwith a largefrom) and sendslogFromso that only those lines come back; the answer used to carry the whole log (several hundred KB). Forks withlogMax(mod #162) cut it to those lines themselves. Read the whole log withfitnesse_debug_statusbefore ending.- A debug session on a single page runs its SuiteSetUp and SuiteTearDown,
as
?testdoes: the firstfitnesse_debug_run_pageruns the SuiteSetUp first,fitnesse_debug_endthe SuiteTearDown. Before, they only ran withsuite=true, and pages that get their browser from the SuiteSetUp failed.fitnesse_debug_startasks forsuitePagesalso withoutsuite. Each of the two runs only if the page has it; the SuiteTearDown also without a SuiteSetUp, once afitnesse_debug_run_pageran. fitnesse_debug_run_pagestops at the first failing table, as the debugger in the browser does: it sends the tables onerunTableeach and stops after the first with a[fail]or[error]cell (stopped_at,next_table); the rest of the page, its TearDown included, has not run. The next call withouttablescontinues atnext_table(from_tableat another index),page_done=trueonce all tables ran. Before, it ran all tables in one go.stop_on_failure=falsedoes that as before. In a suite, moving to the next page beforepage_doneleaves the rest out (previous_page_teardown.tables_not_run). The SuiteSetUp of a single page stops the same way (suite_setup.stopped_at); the page's test begins only once it ran to the end.- Ending a test runs the TearDown tables that have not run yet. Moving
to another page,
restart=trueandfitnesse_debug_endused to send onlynextPage/end, which run no TearDown tables, so after a stop the test's clean-up (logout, test data) never ran. Now the MCP server sends the remaining TearDown tables first (teardown_tablesinprevious_page_teardownor inend'steardown);skip_teardown=truekeeps the old behaviour.tables_not_runno longer counts them. fitnesse_debug_inspect(kind='liveView')returns working links.live_view_urlused to bedebugTest.liveViewUrlwith its{session}and{hub}placeholders unfilled (or empty without it); now they are filled in, per browser inbrowsers[].live_view_url, with the Grid UI as fallback.fitnesse_debug_startdecides by the page's type.suiteis optional: left out, the page's properties decide (Suite: a suite session, Test: a session on the page; both: a suite, with anote). A page that is neither is refused unlesssuiteis given; if the properties can't be read, it starts as a test page. Before, a missingsuitealways meant a test page. The result always hassuiteandpages(for a test page: its SuiteSetUp, the page, its SuiteTearDown); filters on a test page are ignored (filters_ignored).- The debug tools show times as local time. Log lines of
fitnesse_debug_statusandfitnesse_debug_endandstartedAt(in the status, itssessionsand the messages of a refused start) used to be epoch milliseconds. Now they are the MCP server's local time with its UTC offset:16:31:18.391Z [out] …and2026-11-09 16:26:03Z(Z= UTC). fitnesse_debug_run_pagerefuses a page that is neither a test nor a suite page, asfitnesse_debug_startdoes, unless it is one of the start'spages. Before, a static page was run as a test without a word. If its properties can't be read, it runs as before. For a page that does not exist, both say so (FitNesse answers its properties with every flag false, so they askpageDatathen) instead of calling it neither a test nor a suite page.- Secrets in logs are masked. KDTA's REST logging (
|''set logging''|true|) writes request and response headers and bodies to the test process's output. The values of Authorization headers, API keys, tokens, cookies and passwords are now replaced by***(the name and an auth scheme such asBearerstay; CORS headersaccess-control-*are left alone) in the log lines offitnesse_debug_status/fitnesse_debug_end, infitnesse_get_execution_logand in thestdout/stderr/commandoffitnesse_get_page_history.raw=truereturns FitNesse's answer unchanged. - Debug log lines are grouped into entries, as the fork's debug UI does:
a line without a log4j/JUL head that comes within a second of the previous
one on the same stream joins it if it continues it (any line of a log4j
entry up to its first stack frame, stack trace lines, an exception's
message). A stack trace or a logged REST request is one entry in
log.lines, its lines joined by newlines (at most 40 shown per entry); a fixture's output after a stack trace is an entry of its own.max_log_linesoffitnesse_debug_statusandfitnesse_debug_endcounts entries. New onfitnesse_debug_status:log_level(e.g.WARN),log_filter(text such asBROWSER_CONSOLE) andlog_newest; what they leave out is read all the same (left_out,skipped). - A stop of
fitnesse_debug_run_pagebrings the failing table's log.stopped_at.loghas the warnings, errors and browser console entries written while the table ran (the last 15). It costs one morelogrequest (max=400on forks with mod #162) after a short wait for the browser's events. fitnesse_debug_statussays why this server's session is gone (lost_session:reasonreplacedorended, with a hint). It asksstatuswith the old session id for that.restart=trueruns a stopped SuiteSetUp again from its first table. On a single page whose SuiteSetUp stopped at a failure,run_page(restart=true)used to continue it after the failed table, which then never ran. Withoutrestartit still continues there.fitnesse_debug_steps(drop=[…])refuses step numbers that were not noted and drops nothing; before, it ignored them.- A failed check reads
<value> expected ⏎ <value> actualin the table text of the debug tools and of test results. FitLibrary separates the two values with a line (<hr>), which the text used to drop:Example Domain expectedExample Domains actual. - Taking over debug sessions needs
FITNESSE_ALLOW_ADOPT.fitnesse_debug_statushasadoptandsessiononly withFITNESSE_ALLOW_ADOPT=1; without it a call that passes them is refused, and refusals for a running session suggest another page or waiting for its idle timeout instead. Set the variable to keep the old behaviour.
Changed tool set
Visible without complete now (0.4.x: only with FITNESSE_COMPLETE_TOOLSET or not at all):
| Tool | Kind | Needs in FITNESSE_TOOLSETS |
|---|---|---|
fitnesse_search |
read | read |
fitnesse_page_versions (with compare_to: compareVersions) |
read | read |
fitnesse_get_suite_overview |
read | read |
fitnesse_replace |
write, destructive (saves every matching page below page_path) |
write |
Review allowlists and client permissions for fitnesse_replace. New gated
tools (FITNESSE_ALLOW_ACCOUNT_ADMIN, the debug toolset) are off unless
enabled.
Dependencies
- FastMCP is pinned to
4.1.6(0.4.x:4.1.1). Python 3.12 or newer, as before.
Tools
docs/tools.md lists every tool with its toolset, gates and full
description; regenerate it with python scripts/tools_list.py after changing a tool
(a test fails while it is out of date).
19 tools with FITNESSE_TOOLSETS=all and no other flags, most mapping to
one FitNesse responder. Set FITNESSE_FILES_ROOT to the files-section
resource root on your FitNesse instance to also expose fitnesse_list_files,
fitnesse_create_dir, fitnesse_upload_file, fitnesse_download_file,
fitnesse_delete_file, and fitnesse_rename_file (25 total), add complete
to FITNESSE_TOOLSETS for 21 additional lower-traffic tools (46), debug for
the 13 KDTA debug tools (59), FITNESSE_ALLOW_SHUTDOWN=1 for
fitnesse_shutdown, and FITNESSE_ALLOW_ACCOUNT_ADMIN=1 for
fitnesse_save_account (61). The modes in FITNESSE_TOOLSETS filter all of
these. Visible tools:
FITNESSE_TOOLSETS |
no flags | + FITNESSE_FILES_ROOT |
+ FITNESSE_FILES_ROOT, ,complete |
+ ,complete, all flags |
|---|---|---|---|---|
read |
8 | 10 | 26 | 26 |
read,debug |
15 | 17 | 33 | 33 |
read,test |
11 | 13 | 29 | 29 |
read,test,debug |
22 | 24 | 40 | 40 |
read,write |
16 | 22 | 43 | 45 |
all (= read,write,test) |
19 | 25 | 46 | 48 |
all,debug |
32 | 38 | 59 | 61 |
write or test without read work too, but leave the model blind to what
it changes or runs.
FitNesse compatibility
Checked against the RestfulServices documentation and the source of the two latest releases:
| FitNesse release | Status |
|---|---|
| 20261101 (latest, Nov 2026) | Fully supported. Every responder and input of the RestfulServices page is covered, except the browser-only forms listed below. |
| 20251025 | Supported. Everything works except two inputs that 20251025 ignores: fitnesse_delete_page(delete_versions) and the navigation actions (RecentChanges, Files, Search) in fitnesse_search_properties(actions). |
| older | Not tested. |
Compatibility details:
- Page type input. 20251025 reads only
PageType; 20261101 renamed it topageTypeand still acceptsPageType. The server sendsPageTypeforsavePropertiesandsearchProperties, so both releases set and match the page type. (addChildandnewalways usedpageType.) saveData/savePropertiesremove what is not sent (help text, tags, attributes) in both releases.fitnesse_save_page_contentandfitnesse_save_propertiestherefore read the current properties first and send them back unless you pass new values.saveDatacan answer with a merge form instead of saving (both releases; there is no separatemergeresponder). FitNesse compares the senteditTimewith the page's last save since server start; a missingeditTimecounts as 0, so a page saved once through the UI would silently reject every later save.fitnesse_save_page_contenttherefore overwrites whenedit_timeis omitted (it sends the largest possibleeditTime). Withedit_timeandticket_id(both returned byfitnesse_get_page_data, which reads them from theeditform with read permission) the conflict check stays on, and a merge form makes the tool fail with "Not saved" instead of reporting success.executeSearchPropertiesis deprecated and is the same responder assearchPropertiesin both releases; it never evaluated theExcludeSetUp/ExcludeTearDown/ExcludeObsoleteinputs. Usefitnesse_search_properties(special,prune,security).testHistoryresults/trimonly shape the HTML view;fitnesse_get_test_historyaccepts them withformat='html'only.stoptestid: FitNesse reports it in theX-FitNesse-Test-Idheader of a running test, butfitnesse_run_test/fitnesse_run_suitereturn only when the run has ended, so stop running tests withfitnesse_stop_test()(all).- Not exposed (browser forms without data of their own):
account,deleteConfirmation,renameConfirmation, theeditinputsredirectToReferer/redirectAction, and the UI-internallazyPageTree(20261101).
Pages — read
| Tool | Responder |
|---|---|
fitnesse_get_page |
getPage (needs complete) |
fitnesse_get_raw |
raw (needs complete) |
fitnesse_get_page_data |
pageData; also returns edit_time / ticket_id (from edit) for the conflict check of fitnesse_save_page_content |
fitnesse_get_packet |
packet — all tables on a page, as JSON (needs complete) |
fitnesse_get_properties |
properties |
fitnesse_get_variables |
variables, condensed: name, value, location; secrets masked |
fitnesse_list_names |
names |
fitnesse_edit_page |
edit — with redirect/nonExistent options (needs complete) |
fitnesse_get_page_content |
edit — convenience alias (needs complete) |
fitnesse_get_new_page_form |
new (needs complete) |
fitnesse_get_refactor_screen |
refactor (needs complete) |
fitnesse_get_rss |
rss (needs complete) |
fitnesse_get_proxy_data |
proxy — serialized page data used by import (needs complete) |
Pages — write
| Tool | Responder |
|---|---|
fitnesse_add_child_page |
addChild — with help text and tags |
fitnesse_save_page_content |
saveData (POST form data); keeps the page's help text and tags unless help_text / suites are given; overwrites without edit_time, fails on a conflict with it |
fitnesse_save_properties |
saveProperties (POST form data); arguments left out keep their current value, attributes is the full set of flags |
fitnesse_rename_page |
renamePage — optional refactorReferences |
fitnesse_move_page |
movePage — optional refactorReferences |
fitnesse_delete_page |
deletePage — optional deleteVersions (20261101) |
fitnesse_replace |
replace — text (regex) or method replace below a page |
fitnesse_manage_symlink |
symlink (needs complete) |
fitnesse_import_pages |
import (needs complete) |
fitnesse_import_and_view |
importAndView (needs complete) |
fitnesse_publish |
publish (needs complete) |
Tests
| Tool | Responder | Mode |
|---|---|---|
fitnesse_run_test |
test — format xml/junit/text, nohistory |
execute |
fitnesse_run_suite |
suite — tag filters, firstTest, partitions, format xml/junit/text, debug, nochunk |
execute |
fitnesse_get_suite_overview |
overview — latest result per test page: summary, pages (page, outcome, result_date), failed_pages; raw=true for the HTML |
read |
fitnesse_partition_preview |
partition — TSV or HTML (needs complete) |
read |
fitnesse_get_instruction |
instruction — Slim instructions (needs complete) |
read |
fitnesse_stop_test |
stoptest |
control |
fitnesse_shutdown |
shutdown (needs FITNESSE_ALLOW_SHUTDOWN) |
control |
fitnesse_save_account |
saveAccount — change password, create/delete user (needs FITNESSE_ALLOW_ACCOUNT_ADMIN) |
control |
History & versions
| Tool | Responder | Mode |
|---|---|---|
fitnesse_get_test_history |
testHistory — XML, or HTML with results/trim (needs complete) |
read |
fitnesse_get_execution_log |
executionLog (needs complete) |
read |
fitnesse_get_page_history |
pageHistory (format=xml), condensed: without result_date the runs; for a suite run final_counts, pages and failed_pages; for a test run outcome, counts and only the failing tables (as in the debug tools). With compare_to (a second result date): what differs between two runs, the tables whose rows differ as diffs for a test page, the pages whose outcome differs for a suite (replaces compareHistory, whose answer is both reports as HTML). raw=true for the XML (drops executionLog command/stdOut/stdErr unless include_command/include_stdout/include_stderr) |
read |
fitnesse_page_versions |
versions (list: current, versions), with version viewVersion (content, as text), with version and compare_to compareVersions (diff, one version against latest or another) |
read |
fitnesse_rollback_version |
rollback |
write |
fitnesse_purge_history |
purgeHistory — page subtree, or all with purge_global (needs complete) |
write |
Search
| Tool | Responder |
|---|---|
fitnesse_search |
search — title/content, method search, searchScope; result parsed to matches — read |
fitnesse_search_properties |
searchProperties — page types, tags, actions, security, SetUp/TearDown, skipped, searchScope — read (needs complete) |
fitnesse_get_search_form |
searchForm — read (needs complete) |
fitnesse_where_used |
whereUsed — read (needs complete) |
Files section
| Tool | Responder | Mode |
|---|---|---|
fitnesse_list_files |
files (needs FITNESSE_FILES_ROOT) |
read |
fitnesse_download_file |
(direct file GET, returned inline as image/text/binary) (needs FITNESSE_FILES_ROOT) |
read |
fitnesse_create_dir |
createDir (needs FITNESSE_FILES_ROOT) |
write |
fitnesse_upload_file |
upload (POST multipart, content passed inline) (needs FITNESSE_FILES_ROOT) |
write |
fitnesse_rename_file |
renameFile (needs FITNESSE_FILES_ROOT) |
write |
fitnesse_delete_file |
deleteFile (needs FITNESSE_FILES_ROOT) |
write |
KDTA debug mode (needs debug in FITNESSE_TOOLSETS)
Run a test table by table in a long-lived test process (responder=debugTest)
and edit single tables of a page (responder=debugTable). Needs netcare's
FitNesse fork; on other FitNesse servers leave debug out. Results are not
written to the test history.
All need debug in FITNESSE_TOOLSETS, plus the listed mode.
| Tool | Action | Mode |
|---|---|---|
fitnesse_debug_start |
without suite: properties (Suite/Test decide; neither: refused); status, then start; refuses if a session of the account runs on the same page (forks before mod #159: anywhere), unless replace, and while this server's own session still runs. Then suitePages: with suite the suite's pages, without it the page's SuiteSetUp/SuiteTearDown (suite_setup/suite_teardown, each only if present). The result has suite and pages |
test |
fitnesse_debug_status |
status plus new log entries (continuation lines grouped as in the fork's UI, each line cut at 500 characters; times as local time with UTC offset; secrets masked; log_level, log_filter, log_newest); lost_session with reason replaced/ended; sessions lists all of the account's (mod #159); with FITNESSE_ALLOW_ADOPT: adopt continues a running session, with several the one named by session |
read |
fitnesse_debug_run_wiki |
runWiki — wiki tables in the context of the current page, no SetUp/TearDown; restart ends the current test first (its TearDown tables not run yet, then nextPage; skip_teardown leaves the TearDown out). Failing before the SetUp ran in this test, on a page that has one, the result gets a hint to run setup_only (one pageHtml per test to check). with_variables/with_live_view send withDynamicVariables/withLiveView (mod v1.5.0/v1.6.0) and return dynamicVariables/liveView with the result; older forks: the separate actions afterwards |
test |
fitnesse_debug_read_link |
GET of a /files/... link from a debug result (Basic Auth as usual; other links refused): an image as image content; HTML/text without scripts, styles, comments, with filter only the places that contain it (context_chars around), else the start (max_chars). For KDTA's Screen/HTML links of a table |
read |
fitnesse_debug_steps |
none (this server's memory): the run_wiki calls whose tables all passed (record=true, the default), with wiki joined for saving; drop, clear. Kept after end, cleared by start |
read |
fitnesse_debug_page_tables |
pageHtml, split into tables; each with source_page/source_index for editing (tables of included pages live on that page) |
read |
fitnesse_debug_run_page |
properties of a page_path that is not one of the start's pages (neither test nor suite: refused, with pageData to tell a missing page); on page change or restart the current page's TearDown tables not run yet (pageHtml, runTable; not with skip_teardown), then nextPage; pageHtml, runTable per table until the first with [fail]/[error] (stopped_at, next_table; the next call without tables continues there, from_table elsewhere; page_done at the end; stop_on_failure=false: one runTable for all). Outside a suite session the first call runs the SuiteSetUp first (nextPage, pageHtml, runTable, nextPage back; result suite_setup). setup_only (or tables that include all SetUp tables) runs the SetUp; a later call without tables skips it (skipped_setup). With tables, the result numbers the tables as on the page. only_failures returns only tables with [fail]/[error]. with_variables/with_live_view as for run_wiki |
test |
fitnesse_debug_inspect |
keywordsJson, also methods without keyword annotations (generated) (without filter only the categories with their number of keywords; with filter the matching keywords without help texts unless details=true), definedActions (the defined actions loaded by define actions at: debugTest definedActions as JSON, on older forks parsed from keywords; filterable), dynamicVariables, scope, liveView (live_view_url per browser: debugTest.liveViewUrl with {session}/{hub} filled in, else the Grid UI <hub without /wd/hub>/ui/#/session/<id>; VNC password removed) |
read |
fitnesse_debug_defined_action_source |
debugTable definedAction (with the session, or page= without one). Forks without it: page of the defined action from keywords, then debugTable source of that page, cut to the definition block as FitLibrary reads it (header first or after ----, exactly four dashes anywhere between two tables, up to the next one; ----- and dashes inside !-…-!, {{{…}}} or # comments don't separate; refuses a header found twice) |
read |
fitnesse_debug_end |
the current page's TearDown tables not run yet (pageHtml, runTable; teardown.teardown_tables); single page with a SuiteTearDown, after a fitnesse_debug_run_page: nextPage to the SuiteTearDown and run it (suite_teardown); skip_teardown leaves both out; log (number of lines), then end or abort with logFrom and logMax (mod #162; older forks send all lines from logFrom, cut here): the last unread log lines |
test |
fitnesse_table_source |
debugTable source |
read |
fitnesse_table_edit (action = save, insert, delete, move), fitnesse_table_edit_text (action = save, move) |
debugTable save/saveBlock, insert, delete, move; saveText, moveText — saves the wiki page; an argument that does not fit the action is refused before anything is sent. Saving is refused with 409 if it changed since it was read. The result's source is the page after the change (from the answer since mod #157, else read again). With reload_defined_actions=true every edit sends reload=true with the session, so the fork reloads the page's defined actions; forks that don't answer reloaded get |define actions at|.<page>| via runWiki instead |
write |
Dependencies between the tools (the same rules go to MCP clients as server
instructions when a session can be used, i.e. with read,test,debug in
FITNESSE_TOOLSETS; the part about editing tables only
with write as well):
fitnesse_debug_start opens the session
│
├─ fitnesse_debug_run_page(setup_only=true) SetUp first: browser, defined actions
├─ fitnesse_debug_inspect(kind='keywords') categories; with filter: exact wording
├─ fitnesse_debug_inspect(kind='definedActions') defined actions loaded in the session
│ └─ fitnesse_debug_defined_action_source ──> fitnesse_table_edit(action='save', …, reload_defined_actions=true)
├─ fitnesse_debug_run_wiki ad-hoc tables, no SetUp/TearDown
├─ fitnesse_debug_page_tables ──> fitnesse_debug_run_page(tables=[…])
├─ fitnesse_debug_status progress, log, busy
│
fitnesse_debug_end tear down, frees the session
fitnesse_table_source ──> fitnesse_table_edit / fitnesse_table_edit_text no session needed
└─ result.source ──> next edit
- Session required:
run_wiki,run_page,page_tables,inspect,defined_action_source(unless givenpage_path) andendfail untilfitnesse_debug_start(withFITNESSE_ALLOW_ADOPTalsofitnesse_debug_status(adopt=true)) has run on this MCP server.fitnesse_debug_status(withoutadopt) and thefitnesse_table_*tools work without a session. - State carries over between
run_wikiandrun_pagecalls of the same page (open browser, scope, variables).run_pagewith a different page, orrestart=trueon either tool, first ends the current page's test (reported asprevious_page_teardown). - A test ends as in a normal run, TearDown included. FitNesse's
nextPageandendrun no tables of the TearDown page, only FitLibrary's tear down of the objects in scope. So before moving to another page,restart=trueandfitnesse_debug_end, the MCP server runs the current page's TearDown tables that have not run in its test yet (teardown_tables), e.g. after a stop: they log out, close dialogs or delete test data. Only ifrun_pageran some of the page's tables (a test built withrun_wikiaftersetup_onlycounts;run_wikialone does not). TearDown tables are those whose outermost include is a page namedTearDown.skip_teardown=trueleaves them out (teardown_skipped), e.g. to look at what a stop left behind;fitnesse_debug_end(skip_teardown=true)also leaves out the SuiteTearDown. If the TearDown can't run (e.g. a timeout), switching pages fails with a hint toskip_teardown, whileendends all the same (teardown_error). - SetUp first.
run_wikidoes not run SetUp/TearDown. Right afterfitnesse_debug_start, runfitnesse_debug_run_page(setup_only=true): the SetUp opens the browser and loads the defined actions, soinspectandrun_wikihave them. SetUp tables are those whose outermost include is a page namedSetUporSuiteSetUp. FitNesse runs a page's SuiteSetUp and SuiteTearDown as pages of their own, also for a single page, andpageHtmlleaves them out (this server sendswithSuiteSetUp=false, since mod #164 would embed them for the start page, and then every whole-page run would end with the SuiteTearDown): so outside a suite session the firstrun_pageruns the SuiteSetUp before (suite_setupin its result) andfitnesse_debug_endthe SuiteTearDown. A laterrun_pagewithouttablesleaves them out (skipped_setup) instead of running them twice;restart=trueor another page runs them again. Ifrun_wikifails before the SetUp or the SuiteSetUp ran, its result has ahintsaying so (only on pages that have one). - Stops at the first failure.
run_pageruns the tables one at a time and stops after the first with a[fail]or[error]cell, before the rest of the page and its TearDown, so the browser stays where the failure left it.stopped_atgives itsindex,source_pageandsource_index(for thefitnesse_table_*tools),text_before(the page text just before the table, e.g. a heading or comment, from the page already loaded) andwiki(the table's wiki, fromdebugTablesourceofsource_page; left out if it can't be read). As with the console of the browser debugger, try corrected versions of the table withrun_wiki, which runs them in the session and saves nothing, until one passes; save that one once withfitnesse_table_edit. If none passes (the application is wrong, not the test), report that instead. Either wayrun_page()then continues atnext_table(also infitnesse_debug_status);page_done=truewhen all tables ran. Outside a suite session the same goes for the SuiteSetUp: if it stops, the result hassuite_setup.stopped_atand the page has not begun; fix the table the same way, and the nextrun_page()finishes the SuiteSetUp, then runs the page (restart=true: the SuiteSetUp from its first table,suite_setup.restarted).tables=[...]also stops at a failure (tables_not_run) but does not movenext_table; while the page's run is stopped, its result repeatsnext_table.stop_on_failure=falseruns everything in onerunTable. Moving on beforepage_doneleaves the rest out (previous_page_teardown.tables_not_run), except the TearDown (see above). - Building a test: passed steps are noted. Every
run_wikicall whose tables all pass is noted as a step (stepin its result;record=falsefor tables that only look around).fitnesse_debug_stepslists them with their wiki joined, ready forfitnesse_table_edit(action='insert');dropleaves tries out,clear=trueforgets them after saving. They stay afterfitnesse_debug_end; a newfitnesse_debug_startclears them. A SetUp is built the same way and saved on the SetUp page (see docs/debug-workflows.md, flow 6). - What the page looked like at the failure. KDTA links a screenshot
(
Screen,/files/screenCaptures/…) and the page source (HTML,/files/htmlSource/…) from a table. Whenrun_pagestops, the failing table's screenshot is fetched and attached as an image (imagesnames itslink; a screenshot that can't be read is left out). The page source stays a link:fitnesse_debug_read_link(url, filter=…)returns only the places that contain an id, class or text, to check a locator against the page as it was. - Suite sessions:
fitnesse_debug_starton a suite page (or withsuite=true) returnspages; callfitnesse_debug_run_pagefor each page withrunnable=truein that order, going on to the next page oncepage_doneis true. - Results:
run_wiki,run_pageandendreturn every table as text, one row per line, cells prefixed with[pass],[fail],[error]or[ignore]. Below each table follow what belongs to it: folding areas after it (after: <title>, e.g. FitLibrary's show after or logs), links (link in row R, column C: text -> url) and images. Inline screenshots ([image N]in a cell) come back as MCP image content, at most 4 per call;imagessays which one is where or why one was left out.run_page(only_failures=true)(useful withstop_on_failure=false) returns only the tables with a[fail]or[error]cell, under their usual numbers (tables_without_failurescounts the others). Cells of nested tables keep their prefix inline, and a[fail]inside one counts as a failing table. Under a|condition|table a line says what it did (then ran,else ran,condition false,condition error,skipped): FitLibrary marks no condition value, only an appendedResult of then/Result of elserow shows that a branch ran. - Keywords:
inspect(kind='keywords')without filter lists only the categories with their number of keywords (the full list runs to tens of kilobytes); pass a word or a category such asWeb / Browserasfilterfor syntax, parameters and table rows (details=trueadds the help texts).keywordsJsonlists every public method of the fixture classes in scope; methods without a keyword annotation, also those of plain FitLibrary fixtures, havegenerated: trueand their class as category. Theirsyntaxworks as written (|create order|%1|%2|: FitLibrary also reads the first cell as the name and the rest as arguments). The session'skeywordstable knows fewer and is read only for defined actions. Formatting tags in a keyword'ssyntax(|''<i>excel open file</i>''|%1|, the annotation's help markup) are removed: FitLibrary would read them as part of the keyword. CamelCase words in it (execute JavaScript) come as!-JavaScript-!: FitNesse would make them a page link and the call would fail.filterondefinedActionssearches the call, note, author and page, not the body of the action. - Table edits:
save/insert/delete/move/save_text/move_texttake asoriginalthe unchanged wiki of exactly the table or text they change (tables[index]/texts[index]offitnesse_table_source). Each result carriessource, the page after the change: take the next edit'soriginaland indices from it, as indices shift. On 409 without a code (page changed) readfitnesse_table_sourceagain and redo the change. A running session picks up the change the next time the tables are run. - Defined actions:
inspect(kind='definedActions')lists what|define actions at|has loaded into the session (empty before). To edit one,fitnesse_debug_defined_action_sourcegivespage,index,lastandoriginalforfitnesse_table_edit(action='save', ..., reload_defined_actions=true), which makes the session run the new version at once. Forks withdebugTable definedAction(mod #156 + lib #84) pick the definition as a run would; on older ones (400, or 501unsupported) the MCP finds the block itself and refuses a header that is on the page twice. Checkreload.reloadedin the save result:false(witherror/codein a 200 answer) means the page is saved but the session still runs the old version. On 409changed(the page changed since the session loaded it), on 423, and while a call that timed out still runs (the session would answer only after it; after such a timeout the MCP asksstatuswhether it is stillbusy), the MCP looks the definition up on its page as the fork's UI does. Afterchangedthe result'snotesays that the session still runs the loaded version until a save withreload_defined_actions=trueor|define actions at|.<page>|. While busy it uses the defined actions read before in the session (inspect(kind='definedActions')then has anote). 404notLoaded(the session runs no such action) leaves the session running. On 404unknownPlace(the fork can't place the definition: a|define action|table,|define actions at|with|from|another root, or a definition the page no longer has) the MCP looks it up as on older forks; a definition the page no longer has stays defined until the session ends. - Two different table indices:
fitnesse_debug_page_tablescounts every table a run executes (SetUp, TearDown, included pages);fitnesse_table_sourcecounts only the page's own tables. Never pass an index from one to the other:page_tablesgives each table itssource_pageandsource_indexfor editing. Tables of included pages are edited on that page, which changes every page that includes it. busy=truefromfitnesse_debug_status: wait until it is false, or callfitnesse_debug_end(abort=true); arun_wiki/run_pagecall fails at once meanwhile instead of queueing. Calls that only read (status,inspect,page_tables, sources) are tried again on 423 after 2 and 5 seconds; runs and edits are not.- Variables and live view with a run:
run_wiki/run_pagewithwith_variables=trueorwith_live_view=truereturn the dynamic variables (without system properties) or the live view along with the result, which saves afitnesse_debug_inspectcall. - Live view links: the fork sends
debugTest.liveViewUrlfromplugins.propertiesas it is configured; the MCP server fills in{session}and{hub}(the hub without/wd/hub) for every open browser (browsers[].live_view_url, the selected one aslive_view_url). Without it, the link goes to the Grid UI. The hub is the address the test process uses, oftenlocalhost: then the links ({hub}too) go to the grid a KDTA instance serves at<FITNESSE_BASE_URL>/grid/hub(e.g.https://kdta.example/grid/hub/ui/#/session/<id>), unless FitNesse itself runs onlocalhost. A link still onlocalhostgets anotethat it may need the host's real name.
Notes:
- Give the MCP server a FitNesse account of its own (a technical user in
FITNESSE_USERNAME/FITNESSE_PASSWORD), not a person's: debug sessions belong to the account. It needs the rights to read and test the pages it debugs, and to edit them for thefitnesse_table_*tools. - One debug session per page and FitNesse account (mod #159). Starting one
on a page kills the account's running session on that page without tear
down, so
fitnesse_debug_startrefuses unless told otherwise; sessions on other pages, e.g. a person's in the browser, keep running. The MCP server itself works with one session at a time. Every later action sends the session id; if someone replaced the session, the server answers 409replacedand the MCP server forgets it. Older forks allow one session per account: there a person in the browser and the MCP server with the same account replace each other. Sessions it did not start (someone else's with the same account, or its own from before a restart) it leaves alone unlessFITNESSE_ALLOW_ADOPTis set; they end after their idle time. - Session limits are set per FitNesse instance:
debugTest.maxSessionsPerUser(default 5) per account anddebugTest.maxSessions(default 20) on the server; beyond themstartanswers 429tooManySessions. The error says where to look:fitnesse_debug_statuslists the account's sessions; if it has none, the server-wide limit is reached. - Use Basic Auth (
FITNESSE_USERNAME/FITNESSE_PASSWORD): it bypasses the SSO proxy. A non-JSON answer is reported as a login problem. Without a login (a FitNesse without authenticator) the session belongs to thedebugTestSessioncookie thatstartsets; the MCP server sends it with every session call. It keeps the cookie only in memory: after a restart of the MCP server its old session cannot be adopted and ends after the idle timeout (30 min). With an account andFITNESSE_ALLOW_ADOPTadopt works after a restart. debugwithoutreadortestinFITNESSE_TOOLSETSleaves the debug mode half usable (no session, or no inspecting); the server logs a warning at startup naming the hidden tools.- Documents of a session run one after the other; a second one fails at once
instead of queueing.
fitnesse_debug_status(with the log) andfitnesse_debug_end(abort=true)work while a document runs. - End the session when done: it holds one of
debugTest.maxSessionsand possibly grid browsers untildebugTest.idleMinutesends it.
Flag-style FitNesse inputs are supported by passing None as a query param
value — for example {"nohistory": None} produces ?nohistory.
Running
# stdio (local MCP clients), from a checkout after `pip install .`
FITNESSE_BASE_URL=http://your-fitnesse-host:8080 FITNESSE_TOOLSETS=read fitnesse-mcp
# HTTP, as in docker-compose.yml
FASTMCP_TRANSPORT=http FASTMCP_HOST=0.0.0.0 FASTMCP_PORT=8000 fitnesse-mcp
# or: fastmcp run server.py --transport http --host 0.0.0.0 --port 8000
Register it with Claude Code, here locally over stdio, allowed to read and run tests but not to edit pages:
claude mcp add fitnesse \
-e FITNESSE_BASE_URL=http://your-fitnesse-host:8080 \
-e FITNESSE_USERNAME=your-username -e FITNESSE_PASSWORD=your-password \
-e FITNESSE_TOOLSETS=read,test \
-- fitnesse-mcp
Or connect to a shared HTTP deployment running with
FITNESSE_AUTH_MODE=headers, using your own FitNesse login:
claude mcp add --transport http fitnesse https://fitnesse-mcp.example/mcp \
--header "X-FitNesse-Username: ..." --header "X-FitNesse-Password: ..."
Add --header "X-FitNesse-Url: https://other-fitnesse.example" to work on
another FitNesse instance than the server's FITNESSE_BASE_URL; debug
sessions are kept apart per instance and user.
With headers, FitNesse sees each user's own account: its page rights apply,
and changes and debug sessions are recorded under that user. The headers carry
the password, so serve the endpoint over HTTPS only (e.g. behind a
TLS-terminating reverse proxy). In the default env mode a shared server calls
FitNesse with the one account from its own environment, so every client acts
as that user, and the MCP endpoint itself has no authentication: run it only
where everyone who can reach the port may use that account.
Other clients take the same settings as JSON, e.g. for stdio:
{
"mcpServers": {
"fitnesse": {
"command": "fitnesse-mcp",
"env": {
"FITNESSE_BASE_URL": "http://your-fitnesse-host:8080",
"FITNESSE_USERNAME": "your-username",
"FITNESSE_PASSWORD": "your-password",
"FITNESSE_TOOLSETS": "read"
}
}
}
}
or {"url": "http://localhost:8000/mcp"} for HTTP. Clients that only speak
stdio reach an HTTP server through FastMCP's proxy: fastmcp run http://localhost:8000/mcp.
Docker
Every release is published to ghcr.io/netcare-io/fitnesse-mcp as <version>,
<major>.<minor> and latest (from 1.0.0 on):
# HTTP, every user brings their own FitNesse login
docker run --rm -p 8000:8000 -e FITNESSE_BASE_URL=http://your-fitnesse-host:8080 \
-e FITNESSE_TOOLSETS=all -e FITNESSE_AUTH_MODE=headers \
-e FASTMCP_TRANSPORT=http -e FASTMCP_HOST=0.0.0.0 ghcr.io/netcare-io/fitnesse-mcp:latest
# stdio, e.g. as the command of a local MCP client
docker run --rm -i -e FITNESSE_BASE_URL -e FITNESSE_USERNAME -e FITNESSE_PASSWORD \
-e FITNESSE_TOOLSETS ghcr.io/netcare-io/fitnesse-mcp:latest
With stdio, every variable needs its own -e flag: -e NAME without a
value forwards it from the client's environment (the env block of its
config), and anything not forwarded is silently missing inside the container.
docker compose up --build -d builds the production image locally and reads
the variables from .env (see .env.example); it serves HTTP on
port 8000 inside the container (uncomment ports in
docker-compose.yml to publish it).
Interactive testing
Create a fastmcp.json (see fastmcp.example.json),
then start the MCP Inspector from the project directory in the devcontainer:
fastmcp-inspector
Open the exact URL printed in the terminal — it carries a
?MCP_INSPECTOR_API_TOKEN=... query parameter.
Troubleshooting
401 Unauthorized — either FITNESSE_USERNAME/FITNESSE_PASSWORD are
wrong, or FitNesse isn't configured for authentication and is rejecting the
header. Confirm with curl -u user:pass "$FITNESSE_BASE_URL/FrontPage?responder=raw".
Connection refused — check FITNESSE_BASE_URL. Inside a container,
localhost is the container, not your host; use host.docker.internal (Docker
Desktop) or the host's LAN address.
FitNesse closed the connection after N of M bytes or … without a complete answer (BadStatusLine) — the answer ended before its
Content-Length, or before it began. Seen with large answers (~60 KB and up)
through host.docker.internal, with curl as well. Requests that only read are
repeated up to 3 times (each early end is logged as a warning). Requests that
act are not: after a test or suite run (fitnesse_run_test/_suite are GETs)
check fitnesse_get_page_history before running it again, after a table run
fitnesse_debug_status.
A write, run, or debug tool is missing — FITNESSE_TOOLSETS lacks
write, test, or debug (or complete for the marked tools). Debug tools
also need the mode of what they do, e.g. fitnesse_debug_start needs test.
FITNESSE_TOOLSETS is required at startup — set it, e.g. read,
all, or all,debug,complete. It replaces FITNESSE_READONLY and FITNESSE_COMPLETE_TOOLSET (see
Breaking changes).
FITNESSE_TOOLSETS=...: ... need at least one of read, write, test at
startup — debug and complete only add tools within the modes; add a
mode, e.g. read,debug.
A defined action runs its old version after editing — FitLibrary used to
prefer a <page>.wiki file next to the page's content.txt when loading
defined actions, while FitNesse (and fitnesse_table_source/_save) use
content.txt. The session then runs the old file although the page shows the
new text. Fixed in netcare's FitLibrary (lib PR #83); until that is deployed,
remove the stale .wiki file.
fitnesse_debug_inspect(kind='definedActions') is empty — the session
lists only what |define actions at| has loaded; run those tables (usually
in SetUp) with fitnesse_debug_run_page(tables=[...]) first.
"truncated": true in a response — the body exceeded
FITNESSE_MAX_RESPONSE_BYTES and was cut. Common on suite runs with
includehtml. Raise the limit or narrow the request.
Invalid path — the page path contained ?, #, .., or a null byte.
FitNesse page paths are dotted (FrontPage.MySuite.MyTest) with no leading
slash.
ImportError on startup — almost certainly the FastMCP version. This
project targets 4.1.6 exactly; v3 and the v4 prereleases are not supported.
Development
pip install -e ".[dev]"
pytest tests/
The test suite runs the server in-process via fastmcp.Client, so it also
verifies the pieces that only fail at call time: dependency injection of
timeouts, tag-based tool visibility, and path-injection rejection. Run it after
any FastMCP version bump — it doubles as the upgrade tripwire.
Devcontainer
Open the project in VS Code with the
Dev Containers extension
and accept Reopen in Container (or run Dev Containers: Reopen in
Container from F1). Python and all dependencies are installed inside the
container. It builds from a multi-stage Dockerfile at
.devcontainer/Dockerfile:
devcontainer— used by VS Code for developmenttest— installs dev dependencies and runspytestproduction— the published image, also used by Docker Compose
An MCP client on the host can use the running devcontainer (named
fitnesse-mcp-devcontainer) directly:
{
"mcpServers": {
"fitnesse": {
"command": "docker",
"args": ["exec", "-i", "fitnesse-mcp-devcontainer", "fitnesse-mcp"]
}
}
}
docker exec passes no FITNESSE_* variables; the server sees the
environment the container was created with (containerEnv and --env-file
in .devcontainer/devcontainer.json). Rebuild the devcontainer after changing
them.
CI and release
main only accepts pull requests. CI (.github/workflows/ci.yml)
runs pytest on Python 3.12 and 3.13 and builds the production image for
every PR and every push to main.
To release, run scripts/release.sh <version> twice:
- On
main: bumpsversioninpyproject.tomlon a new branchrelease/v<version>and opens a PR (prints the link ifghis missing). - Merge the PR once CI is green.
git pull, then the same command again onmain: tagsv<version>and pushes the tag.
The tag starts .github/workflows/release.yml:
it checks that the tag matches pyproject.toml and is on main, runs the
tests, pushes the image to ghcr.io/netcare-io/fitnesse-mcp (<version>,
<major>.<minor>, latest), and creates the GitHub release with generated
notes.