Listed from the MCP registry; nobody on Odel publishes it.
Inspect and manage TrueNAS SCALE storage, shares, apps and system state with your own API key
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
docker run -i --rm ghcr.io/cedricziel/truenas-mcp:0.6.0
MCP client config
{
"mcpServers": {
"truenas-scale": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/cedricziel/truenas-mcp:0.6.0"
]
}
}
}An MCP server for TrueNAS SCALE. Read-first, deployable as a TrueNAS app, and authenticated with each user's own API key.
Status: working, young. Every capability in the design is implemented and verified against a live TrueNAS 26 box. Expect rough edges rather than gaps.
iX ship an official truenas/truenas-mcp,
and if it fits your needs you should use it. This one exists for three things it
does not do:
Three ideas do most of the work.
The credential is the authorization. Callers supply their own TrueNAS API key; this server stores none. A session reaches exactly what that user's key permits, revocation happens in the TrueNAS UI, and there is no shared secret to leak. Authentication and authorization stop being two systems that can disagree. Served over stdio the key arrives from the environment instead, because there is no request to carry it — but the client spawns one process per user, so it is still that user's own key. What the design rules out is one key standing in for many callers, not configuration as such.
Reads and writes get different tool shapes. Reads are grouped into
concern-level tools with an op enum, because they share most of their
arguments and 815 middleware methods cannot each become a tool. Writes are
individual tools — MCP annotations are per-tool, so bundling a safe operation
with a destructive one behind one op parameter would put both behind a single
consent gate, and a user who tires of confirming list_pools will allowlist the
tool that can also export a pool.
Read-only by default. Mutating tools appear only when explicitly enabled. Separately, a denylist of unrecoverable operations is not reachable under any configuration, and it constrains argument values rather than just method names — deleting an app is recoverable, deleting it along with its volumes is not, and those are the same method.
Each of these was measured against a live box rather than reasoned about in the abstract, and several were overturned by what that measurement found.
Copy deploy/truenas-custom-app.yaml, adjust
TRUENAS_MCP_TARGET, and paste it into Apps → Discover → Install via YAML.
It mounts no host socket and requests no privileged access. The server reaches the middleware over the network even when running on the same box, so that every connection carries a user identity rather than root-equivalent socket access.
Nothing requires the server to run on the machine it manages, and there is a good reason not to: installed as a TrueNAS app, it is unavailable exactly when the box is unhealthy — which is when you most want to ask it what is wrong.
docker run -p 8080:8080 \
-e TRUENAS_MCP_TARGET=nas.local \
-e TRUENAS_MCP_TLS_CERT=/tls/cert.pem \
-e TRUENAS_MCP_TLS_KEY=/tls/key.pem \
ghcr.io/cedricziel/truenas-mcp:main
Each GitHub release
attaches binaries for Linux, macOS, and Windows on amd64 and arm64, alongside a
checksums.txt. Configuration is environment variables only — there is no
config file, and the only flags are --stdio and --healthcheck.
By default the binary is an HTTP server. Running it does not make a client pick it up on its own; it listens on a port, and the client connects to it by URL. For clients that spawn the server themselves, see Serving over stdio below.
The HTTP endpoint supports stateless MCP 2026-07-28 requests and keeps sessionful
transport for older clients. Modern clients use server/discover and declare
their protocol version and capabilities on each request. Cacheable MCP responses
are private with ttlMs: 0, so clients reread current state and do not share
credential-dependent results through a public cache.
TRUENAS_MCP_TARGET=nas.local \
TRUENAS_MCP_LISTEN=127.0.0.1:8080 \
TRUENAS_MCP_TARGET_INSECURE=true \
TRUENAS_MCP_ALLOW_PLAINTEXT=true \
./truenas-mcp
Point the client at http://localhost:8080/mcp, with the TrueNAS API key sent
as an Authorization: Bearer header, the same as in
Connecting a client.
TRUENAS_MCP_TARGET_INSECURE is typically needed for the reason given in
On the two TLS settings: TrueNAS ships a
self-signed certificate for CN=localhost that will not validate against any
other address. TRUENAS_MCP_ALLOW_PLAINTEXT is defensible here specifically
because TRUENAS_MCP_LISTEN binds the listener to loopback — reachable only
from the same machine — which is the condition that section argues plaintext
requires. The default bind address is :8080, which is every interface, so
dropping that setting while keeping plaintext would put API keys on the wire.
Some clients spawn a server as a subprocess and talk to it over its standard
input and output rather than connecting to a URL. --stdio serves the same
tools that way.
claude mcp add --scope user truenas \
--env TRUENAS_MCP_TARGET=nas.local \
--env TRUENAS_MCP_TARGET_INSECURE=true \
--env TRUENAS_MCP_API_KEY=$YOUR_TRUENAS_API_KEY \
-- /path/to/truenas-mcp --stdio
There is no request to carry a header here, so the key comes from
TRUENAS_MCP_API_KEY instead. That is not the shared secret the HTTP transport
avoids: the client spawns one process per user, so the key it passes is that
user's own, and the process reaches exactly what that key permits. The same
variable is refused in HTTP mode, where one process serves many callers and a
configured key would be shared by all of them.
Nothing about the listener applies. TRUENAS_MCP_LISTEN, the two TLS settings
and TRUENAS_MCP_ALLOW_PLAINTEXT are ignored with a warning rather than an
error, since none of them weakens anything when no listener exists.
--healthcheck is refused alongside --stdio, because it probes a listener
that was never started.
Settings that concern the target rather than the listener still apply, including
TRUENAS_MCP_TARGET_INSECURE and TRUENAS_MCP_ENABLE_WRITES.
All configuration is environment variables; no config file or persistent volume is needed. Invalid configuration refuses to start rather than running degraded.
| Variable | Default | Meaning |
|---|---|---|
TRUENAS_MCP_TARGET | required | TrueNAS host, optionally host:port |
TRUENAS_MCP_LISTEN | :8080 | Bind address |
TRUENAS_MCP_TLS_CERT / TRUENAS_MCP_TLS_KEY | — | Serve MCP over TLS |
TRUENAS_MCP_ALLOW_PLAINTEXT | false | Serve without TLS (see below) |
TRUENAS_MCP_TARGET_INSECURE | false | Accept the target's certificate unverified |
TRUENAS_MCP_TARGET_ALLOW_PLAINTEXT | false | Connect to the target without TLS |
TRUENAS_MCP_ENABLE_EXEC | false | Expose container commands when writes are also enabled |
TRUENAS_MCP_ENABLE_WRITES | false | Expose mutating tools |
TRUENAS_MCP_API_KEY | — | Credential for --stdio; refused otherwise |
TRUENAS_MCP_OAUTH_ISSUER | — | Enables OAuth; the server's own externally-reachable base URL |
TRUENAS_MCP_OAUTH_ENCRYPTION_KEY | generated | 64 hex characters (32 bytes); see below |
TRUENAS_MCP_OAUTH_ACCESS_TOKEN_TTL | 1h | How long an issued OAuth access token is valid |
TRUENAS_MCP_OAUTH_REFRESH_TOKEN_TTL | 720h (30 days) | How long a refresh token is valid; 0 disables refresh tokens |
No credential is configurable for the HTTP transport. Callers supply their
own with each request, and setting TRUENAS_MCP_API_KEY without --stdio is a
startup error rather than a silent fallback. Over stdio there is no request to
carry one and the process serves a single user, so the variable is how that
user's key arrives — see Serving over stdio.
Transport scheme and certificate verification are deliberately separate.
TrueNAS ships a self-signed certificate issued for CN=localhost with only
DNS:localhost as a SAN, so no address you can reach it by will validate. The
fix is TRUENAS_MCP_TARGET_INSECURE=true, which keeps the connection encrypted
and merely unauthenticated. If certificate problems forced you onto plaintext
instead, TrueNAS would see your API key in the clear — and revoke it.
TRUENAS_MCP_ALLOW_PLAINTEXT is about the boundary callers cross, which carries
their API keys. It is correct when a reverse proxy terminates TLS in front of
the server, and wrong when the plaintext listener is reachable directly.
claude mcp add --scope user --transport http truenas \
https://your-host/mcp \
--header "Authorization: Bearer $YOUR_TRUENAS_API_KEY"
The key may also be sent as X-TrueNAS-API-Key, for clients that cannot set an
Authorization header. Requests without either are refused with 401.
Clients that spawn the server rather than connect to one want Serving over stdio instead.
OAuth clients connect through discovery and an authorization-code flow with PKCE. Client ID Metadata Documents let a client identify itself with an HTTPS URL. Dynamic Client Registration remains available for older clients. Set an issuer URL to enable OAuth:
docker run -p 8080:8080 \
-e TRUENAS_MCP_TARGET=nas.local \
-e TRUENAS_MCP_TLS_CERT=/tls/cert.pem \
-e TRUENAS_MCP_TLS_KEY=/tls/key.pem \
-e TRUENAS_MCP_OAUTH_ISSUER=https://your-host \
-e TRUENAS_MCP_OAUTH_ENCRYPTION_KEY=$(openssl rand -hex 32) \
ghcr.io/cedricziel/truenas-mcp:main
TRUENAS_MCP_OAUTH_ISSUER must be the exact base URL the server is reachable
at from the client's side (no trailing slash). TRUENAS_MCP_OAUTH_ENCRYPTION_KEY
seals every client registration, authorization code, and token this process
issues; leaving it unset works, but a fresh key is generated on every restart
and invalidates every outstanding one — set it explicitly for anything longer
than a quick trial. No client or token database is needed: issued credentials
are self-contained and verified with this key. Valid client metadata documents
are cached in memory for at most five minutes, subject to their cache headers.
Point a client at https://your-host/mcp the same way you would for the raw
API key above; it discovers everything else — the authorization server, where
to register, where to send the resource owner — from
/.well-known/oauth-protected-resource. The first connection opens a browser
consent screen asking for a TrueNAS username (optional, shown only to you) and
API key; nothing is granted to the client until that's submitted and the
target accepts it.
TRUENAS_MCP_ALLOW_PLAINTEXT works the same way it does for the raw-API-key
path: it is meant for a reverse proxy that terminates TLS at the edge and
forwards plaintext to this process, not for exposing the consent screen over
the open internet unencrypted.
The raw-API-key path above keeps working unchanged and side-by-side with OAuth — enabling OAuth adds a second way in, it does not replace the first.
Client metadata URLs must use HTTPS, have a non-root path, and resolve only to
public addresses. The server follows no redirects and accepts JSON documents up
to 5 KiB within a five-second timeout. The document must identify its exact URL,
name the client, and list its redirect URIs. Only public clients without shared
secrets are supported. Token requests must omit authentication headers and
nonempty client_secret or client_assertion parameters. For example:
{
"client_id": "https://client.example/oauth/client.json",
"client_name": "NAS maintenance client",
"redirect_uris": ["https://client.example/oauth/callback"],
"token_endpoint_auth_method": "none"
}
Redirects must match the document, except that native clients using
HTTP callbacks on 127.0.0.1 or [::1] may choose an ephemeral callback port. Authorization
codes remain bound to the actual requested redirect URI and PKCE challenge.
Successful authorization redirects include the issuer in iss, as advertised
by the authorization server's metadata.
Working:
401 without oneNot implemented: job progress via resource subscription. Polling covers the same ground and is the path the design treats as reliable — subscription was always an enhancement over it, and MCP client support for it is thin.
| Tool | Operations |
|---|---|
storage | list_pools, show_pool, list_datasets, show_dataset, list_snapshots |
system | info, alerts, list_services, update_status, version, audit_log |
sharing | list_smb, show_smb, smb_acl, list_nfs, show_nfs, list_web |
virtualization | list_vms, show_vm, vm_devices, list_containers, show_container, container_devices |
backup | list_cloud_syncs, show_cloud_sync, cloud_credentials, list_replications, show_replication, list_rsync_tasks, list_snapshot_tasks |
filesystem | list_directory, stat, space, acl, read |
apps | list, show, config, containers, outdated_images, upgrade_summary, rollback_versions, used_ports |
catalog | list, categories, show |
jobs | list, show |
search_methods | find middleware methods by name |
describe_method | a method's arguments, summarised |
call_method | invoke a method directly |
inventory | one-call summary of the whole box; renders as an MCP App |
server_info | — |
system_info | — |
Every tool declares a complete MCP annotation set — title, readOnlyHint,
destructiveHint, idempotentHint, openWorldHint. The spec defaults for
destructiveHint and openWorldHint are true, so an unset field does not
mean "unknown", it means "assume the worst" — and a read tool treated as
destructive produces prompts on safe operations, which is what teaches people
to click through the prompts that matter.
Every method behind the read tools is
verified against the target's own RBAC metadata to grant READONLY_ADMIN,
so "this tool cannot mutate" is checked rather than asserted.
The one exception is filesystem read. It returns a UTF-8 text page and refuses
binary content. offset is a byte offset, defaulting to zero. limit is the
page size in bytes: omitted or zero uses 1024, and explicit sizes range from
4 to 65536. Responses include offset, bytes_read, eof, and next_offset
when more data exists, also marked with truncated: true. Continue using
next_offset; pages can be shorter than the limit to preserve UTF-8 characters.
The limit applies per page, so files larger than 64 KiB remain readable.
Each request opens a fresh download and streams past the prefix. Pages are not
a snapshot; restart the read if the file changes between calls. Smaller pages
reduce context pressure, but host output limits still vary.
File reads change nothing, but the middleware's
filesystem.get requires FULL_ADMIN, so a read-only key gets a clear "not
permitted". The file streams through core.download, which is why
call_method refuses filesystem.get and every other method that needs a
download or upload pipe.
apps(op="config", name="myapp", fields=["auth"]) returns only the named
top-level configuration keys. Alternatively, exclude_fields=["ix_context"]
omits metadata. These options are mutually exclusive with each other and
full=true. Empty selectors and unknown keys return an error. A response with omitted fields sets
projected: true; omit both selectors to retrieve the whole object. Field
selection reduces the response, but a selected field can still be large.
Every config response includes a revision covering the full configuration.
With writes enabled, call app_update_config(target="myapp", changes={...}, expected_revision="...") to change selected values without copying the full
configuration through model context. The server reads the full config again,
rejects a changed revision, merges the changes, and submits all values to
app.update. Objects merge recursively; arrays, scalars, and null replace the
specified value. Null does not delete a key, and an empty object preserves an
existing object. Top-level ix_context edits are refused.
The update returns a job ID, not a completion result. It can restart the app.
The revision check detects stale reads but is not atomic with concurrent writers
outside this call. A filtered config must never be passed to raw app.update
as its complete values object.
The apps operations outdated_images, upgrade_summary, and
rollback_versions exist so a caller can decide whether to act before the
write tier can act — a mutation surface without them forces the model to
guess. All three take an app name; the middleware has no fleet-wide
equivalent.
catalog answers "what could I install", apps answers "what is installed" —
deliberately two tools rather than two operations on one, since a model
choosing between well-named tools does better than one choosing between
operations on an overloaded one. catalog list projects down to identity and
version fields by default: the underlying method returns roughly 400 entries,
each carrying a full HTML readme, config schema, and version history, so an
unprojected browse would exhaust a caller's context an order of magnitude
worse than the problem that motivated apps list's own projection. Narrow it
with category, whose vocabulary comes from catalog categories; full=true
still returns everything. catalog show returns one entry's complete record
by name, with no separate catalog.get_app_details call needed.
Off by default. Set TRUENAS_MCP_ENABLE_WRITES=true to expose them.
| Tool | Effect | Annotated |
|---|---|---|
app_pull_images | pull latest images and redeploy | destructive |
app_update_config | merge selected config changes | destructive |
app_redeploy | redeploy without pulling | destructive |
app_stop | stop a running app | destructive, idempotent |
app_upgrade | upgrade to a newer version | destructive |
app_rollback | roll back a bad upgrade or pull | destructive |
app_start | start a stopped app | idempotent |
create_snapshot | snapshot a dataset | additive |
create_smb_share | share a path over SMB | additive |
update_smb_share | change an SMB share | destructive |
delete_smb_share | stop sharing over SMB | destructive |
create_nfs_export | export a path over NFS | additive |
update_nfs_export | change an NFS export | destructive |
delete_nfs_export | stop exporting over NFS | destructive |
set_smb_share_acl | who may connect to a share | destructive |
set_path_acl | filesystem permissions on a path | destructive |
Share and permission configuration is the point. It is the hardest part of running TrueNAS and the least destructive: a misconfigured share is a support thread, not data loss. Handing that to an assistant is squarely what this server is for.
The one genuine hazard lives in an argument, not a method. filesystem.setacl
accepts recursive, traverse, and stripacl — recursive plus stripacl walks
a whole dataset discarding every ACL, which locks people out of terabytes and
cannot be undone without knowing what the previous permissions were. All three
are refused permanently, so setting one path's ACL stays available while the
unbounded form does not. That distinction is the entire reason the denylist
gates argument values rather than method names.
Each is a separate tool, so each is a separate consent decision — bundling
them behind one op would put app_stop behind the same gate as app_start.
app_rollback ships whenever the others do; it is the recovery path that makes
exposing them defensible.
Mutations never block. They return a job_id immediately; follow it with
jobs(op="show", job_id=…).
Denied under every configuration: pool export, dataset deletion, disk wipe,
boot detach, snapshot destruction — and app.delete with remove_ixvolumes,
because the danger there is in the argument, not the method. None of this is
switchable; use the web interface.
On app logs: TrueNAS exposes container output through the
app.container_log_follow event source rather than a JSON-RPC method.
apps(op="logs", name=...) returns a bounded timestamped tail, not a live
follow. When an app has multiple containers, first call apps(op="containers", name=...) and pass one returned ID as container.
Set both TRUENAS_MCP_ENABLE_WRITES=true and TRUENAS_MCP_ENABLE_EXEC=true
to expose container_exec. Pass app, the exact container ID returned by
apps(op="containers", name=...), and a command for /bin/sh.
timeout_seconds defaults to 30 (maximum 120); output_limit defaults to
16384 bytes (maximum 65536). Commands must fit within 3500 bytes after
POSIX shell quoting, to stay within the terminal input line limit.
The tool opens TrueNAS's container webshell under the caller's credentials.
The account needs the shell and app privileges required by the installed
TrueNAS version (newer versions use Web Shell Access and APPS_WRITE;
older versions may require broader privileges). The container must include
/bin/sh. No host shell or system-container shell is exposed.
Results contain combined terminal output, with possible terminal line-ending
conversion, and exit_code when completion was observed. incomplete means
completion is unknown. A timeout, cancellation, or output overflow closes the
terminal but does not guarantee spawned processes stopped; inspect before
retrying. Execution uses the container's default user and can modify mounted
datasets. The RPC method denylist does not restrict shell command semantics.
The middleware has 815 methods across 74 namespaces. Most will never justify a
dedicated tool, so search_methods / describe_method / call_method cover
the tail without a code change per release.
Reachability is decided by the target's own RBAC metadata, not by guessing
from method names: a method is readable exactly when it grants
READONLY_ADMIN, and mutating methods need the write tier. That is the
middleware's own answer, so it is exact and tracks API versions without a
change here. It reaches 94% of the API — 411 readable, 359 mutating.
The 6% withheld is deliberate:
core.bulk invokes arbitrary methods; reachable, it would bypass the
denylist, the write tier, and every other gate here.auth.* is the server's to manage. A caller driving it could mint a
token that outlives the session and never appears in the API keys UI — a
credential the operator never issued.describe_method summarises rather than dumps. Measured on a live target,
sharing.smb.create's schema is ~31,000 characters and
directoryservices.update's ~53,000; models also fill large sparse schemas
less accurately than small dense ones, so a faithful dump costs more and works
worse. Pass full=true when you really want it.
| URI | Content |
|---|---|
truenas://alerts | current alerts |
truenas://system/health | version, hostname, uptime, hardware |
truenas://pools | pools with capacity and health |
truenas://apps | installed apps and their state |
truenas://job/{id} | a long-running operation's progress |
truenas://docs/query-filters | filter syntax for call_method |
truenas://docs/dataset-properties | ZFS field meanings and inheritance |
Resources differ from tools by control locus, not cost: tools are model-controlled, resources are what a person attaches. They pay off when a human points at one — no round trip, no tool budget — and underperform when a model has to go find them, since model-driven resource access routes through generic list/read tools and reintroduces the round trips it was meant to avoid.
So: addressable entities and reference material here, anything computed or parameterised stays a tool. The documentation resources are the best value in the design — they teach the filter syntax and ZFS semantics once instead of repeating them in every tool description, where the tokens would be paid on every request. A test asserts tool descriptions do not restate them.
Job-starting tool results and completed task results include an MCP resource link to the job, alongside their structured output and JSON text fallback.
Clients can subscribe to alerts, pools, apps, and individual job resources.
MCP 2026-07-28 clients use subscriptions/listen; older clients use
resources/subscribe and resources/unsubscribe. Notifications identify the
changed URI; read that resource to obtain current state. Health and static
resources do not support subscriptions.
Subscriptions use the caller's TrueNAS credential and share an upstream event stream only within that credential. Cancellation or session closure releases unused streams. An upstream failure ends modern listen requests with an error and closes affected legacy sessions. Reconnect, read current state, and subscribe again; missed events are not replayed. Overlapping modern listens for the same URI on one session are rejected. Idle HTTP sessions expire after five minutes without requests; legacy clients need periodic requests such as pings to retain subscriptions. An active modern listen request keeps its session alive.
An MCP App is a tool whose
result a host can render as an interactive view instead of text. The tool
carries _meta.ui.resourceUri naming a ui:// resource, that resource is a
self-contained HTML document served as text/html;profile=mcp-app, and the
host loads it in a sandboxed iframe and talks to it over postMessage. A host
without the extension ignores the metadata and gets the ordinary structured
result, so an app costs a plain client nothing.
| App | Tool | Resource | Shows |
|---|---|---|---|
| Inventory | inventory | ui://truenas/inventory | pools with capacity, datasets, apps, VMs, containers, shares, alerts; filter, refresh |
Every app is inline: no external script, stylesheet, image, or connection. The default policy a host applies to an app that declares no CSP forbids all of those, and declaring domains would trade the sandbox for a dependency on a CDN being reachable from wherever the host runs. A test refuses any app that references one.
inventory fetches each section independently and reports each
independently. An API key that may read pools but not apps still gets its
pools, with the refusal named under errors.apps, rather than the whole call
failing on the first section the key cannot see. The call fails only when no
section at all could be read.
The registry lives in internal/apps; adding an app is one entry there plus
the tool it names. Its Go tests hold every entry to the extension's
conventions, and make test-apps runs the views themselves against a fake
host in a real browser.
Clients that expose MCP prompts can select a read-only diagnostic workflow:
| Prompt | Arguments | Evidence |
|---|---|---|
diagnose_pool | Required pool name | Pool health, datasets, alerts, recent jobs |
investigate_app | Required app name | App state, containers, bounded logs, alerts, recent jobs |
review_capacity | Optional pool name | Pool and dataset usage, quotas, reservations, snapshots |
Retrieving a prompt returns instructions without opening a TrueNAS connection or running tools. The client chooses whether to execute the proposed reads. Plans disclose missing or truncated evidence and keep proposed repairs separate.
MCP argument completion suggests pool and app names for these prompts and job
IDs for truenas://job/{id}. Suggestions use the caller's credential and contain
at most 50 matches. Job suggestions search the latest 101 jobs, so an older job
may still exist even when completion does not show it. A bounded query sets
hasMore and omits an exact total. Completion applies to prompts and resource
templates, not general tool arguments.
Every mutating tool starts a middleware job and returns its id. The
Tasks extension
(io.modelcontextprotocol/tasks, currently Beta and targeting core) is the
protocol's own shape for exactly that, so a job is exposed as a task rather
than through a second lifecycle.
A client that declares the extension in the capabilities it sends with each
request receives, in place of a write tool's ordinary result, a
CreateTaskResult with a task id. It polls tasks/get, which reports the
job's state and progress and, once terminal, the result the tool would have
produced synchronously: completed carries the job's return value, failed
carries its error, and an aborted job reads as cancelled. tasks/cancel
asks the target to abort the job. A client that does not declare the
extension gets the job-started result it always did, and jobs follows a job
either way.
Task ids are minted per server, and a server is built per credential, so a
task is reachable only under the credential that started it. The mapping is
held in memory: after a restart a task id is unknown and tasks/get says so.
The extension is advertised only when the write tier is enabled, since a
read-only server never starts a job.
Releasing runs through release-please
and nowhere else. It reads the conventional-commit history on main, keeps a
release PR open with the next version and changelog, and cutting a release is
merging that PR.
push to main ──▶ ci.yml test, lint, publish :main and :sha-<commit>
└─▶ release.yml maintain the release PR
│
merge PR ─────────┴─▶ tag vX.Y.Z, GitHub release,
publish :X.Y.Z :X.Y :latest
ci.yml deliberately does not react to tags, so a version tag cannot appear
without a release. The release job re-runs the tests against the tagged commit
before publishing — the tag is a different commit from the one CI last checked,
and a release is only as trustworthy as the tests that gated it.
Each release also attaches binaries for Linux, macOS, and Windows and a
checksums.txt, alongside the container image.
Token. Set a RELEASE_PLEASE_TOKEN repository secret to a PAT with
contents: write and pull-requests: write. Without it the workflow falls back
to GITHUB_TOKEN, which works but cannot trigger downstream workflows — so the
release tag would not start the publish job.
make test # unit tests
make test-apps # browser tests for the MCP Apps; needs Node 22
make lint # go vet + golangci-lint
make build
make image
Integration tests need a live TrueNAS and are excluded from make test:
TRUENAS_TEST_URL=wss://nas.local/api/current \
TRUENAS_TEST_API_KEY=... \
TRUENAS_TEST_INSECURE=true \
go test -tags=integration ./...
The behaviour this server is expected to hold to is written down as capability specs rather than inferred from the code, and each scenario in them is a test case in waiting.
MIT. See LICENSE.
The middleware client here is written rather than adapted from
truenas/truenas-mcp, which is GPL-3.0 — that is what keeps this project's
licensing choice open.
The objectstorage tool reads S3 service configuration, listener address choices,
buckets, and access-key metadata. These operations require the experimental native S3 APIs, verified on
TrueNAS 27.0.0-RC.1. The published S3 API documentation
describes the development version; use describe_method for the target
release's schema. Releases without these methods cannot use these tools.
With TRUENAS_MCP_ENABLE_WRITES=true, use update_s3_config,
create_s3_bucket, update_s3_bucket, delete_s3_bucket,
create_s3_access_key, update_s3_access_key, and delete_s3_access_key.
Pass configuration fields in config and record identifiers in id.
Use describe_method to inspect the target version's fields before writing.
Bucket deletion deregisters the bucket and preserves its dataset and objects.
Access-key creation and rotation return a sensitive secret. Rotation uses
config={"rotate":true} and invalidates the previous secret.