Repository navigation
Releases
Releases · virtualben89/spoolman-mcp-go
v0.1.3
Small fix release.
Fixed
- Upstream redirects (301/302/303/307/308) are reported as a clear, actionable error instead of the raw redirect body. Redirects are still never followed, so credentials only reach the configured Spoolman URL.
Full Changelog: v0.1.2...v0.1.3
v0.1.2
Security release based on a full source audit of v0.1.1. Update recommended.
Fixed
- Path traversal:
unlink_tagand other free-text path arguments accepted..; a uid like../could delete the parent spool via Spoolman's slash redirects. Empty,./..and values containing/or\are now rejected. - The upstream client followed redirects and could leak credentials (headers to other hosts, Authorization after an HTTPS→HTTP downgrade). Redirects are no longer followed.
set_settingcould bypassALLOW_DELETE=falseviaextra_fields_*keys; those are refused and resets needconfirm=true.- Unparseable boolean env values silently fell back to a permissive default; they are now a startup error (
yes/no/on/offare accepted). - Credentials in
SPOOLMAN_URLare moved to Basic auth and never logged; config errors never echo secrets. - Tool annotations: overwrite/merge/reset tools are marked destructive, bulk renames are no longer marked idempotent.
Hardening
- Streamable HTTP sessions are bound to the token that created them.
- Limits:
MCP_HTTP_MAX_CONCURRENT(default 64),MaxHeaderBytes,MAX_RESULT_BYTES, oversized upstream responses are an error, error bodies capped at 64 KiB. SPOOLMAN_URLwith query/fragment is rejected; conflictingAuthorizationheader settings are refused.
Supply chain
- Actions and images pinned by SHA/digest, Dependabot, checkout without persisted credentials, PR builds without write permissions, no cache for release builds.
- Signed build provenance for images and binaries (
gh attestation verify … --repo virtualben89/spoolman-mcp-go);latestonly for non-prerelease tags. - CI actions updated to the Node 24 majors.
Docs
- Token via file, example compose binds to 127.0.0.1, security notes.
Full Changelog: v0.1.1...v0.1.2
v0.1.1
Maintenance release, no functional changes.
Changed
- Built with Go 1.27.4; dependencies updated.
- CI takes the Go version from
go.mod, so CI, Docker build andgo.modalways match.
Full Changelog: v0.1.0...v0.1.1
v0.1.0
First release: MCP server for Spoolman (3D printing filament inventory), written in Go.
Features
- 38 tools covering the full Spoolman API: vendors, filaments, spools (incl. usage and measuring), locations, lot/article numbers, NFC tags, extra fields, settings, backups, export and import from the SpoolmanDB catalogue.
- Transports: stdio, Streamable HTTP (
/mcp) and legacy HTTP+SSE (/sse). - Bearer token auth for HTTP (several tokens, constant-time compare); refuses to start unauthenticated.
- Safety switches:
READ_ONLY=truehides all write tools,ALLOW_DELETE=falsehides delete tools, every delete needsconfirm=true. - Upstream auth towards Spoolman (Bearer, Basic or custom headers, e.g. Cloudflare Access).
- Portable tool schemas for strict clients (Gemini, OpenAI) and all common MCP clients.
Distribution
- Image
FROM scratch, non-root, about 14 MB, multi-arch (amd64, arm64, arm/v7) on GHCR. - Binaries for Linux, macOS and Windows.
Full Changelog: https://github.com/virtualben89/spoolman-mcp-go/commits/v0.1.0