Repository navigation
Releases
Releases · Caloptreyx/Cal-MCP
v1.2.1
What's changed
Fixed:
- Panel main (calagopus/panel@b44c00f, after 1.2.11) added a required
unrestricted_admintoCreateUserApiKeyOptions, which has noDefault, so the struct literal fails on main and adding the field fails on 1.2.11. Deserializing the options from JSON withunrestricted_admin: falseworks on both: older panels ignore the unknown field.falsekeeps grant keys out of the actions reserved for an unrestricted administrator, as every api key was before.
Installation
Upload dev_caloptreyx_calmcp.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.
Full Changelog: v1.2.0...v1.2.1
v1.2.0
What's changed
Sign in with OAuth (Claude.ai, ChatGPT and other web connectors)
- Add the MCP endpoint as a custom connector in Claude.ai or ChatGPT, sign in to the panel and approve. No API key to copy.
- Follows the MCP authorization spec: protected resource metadata (RFC 9728), authorization server metadata (RFC 8414), dynamic client registration (RFC 7591), authorization code with PKCE S256 only, refresh token rotation with replay detection, and token revocation (RFC 7009). Cursor, VS Code and other apps with their own redirect scheme work too.
- Pick the access when approving: Read only, Your servers (client area only) or Full access (admins only).
- Each approved client is backed by an API key the extension creates for you (
MCP <client> <id>), so the panel's own permissions, rate limits and activity log apply. Its secret is never stored or shown. Approved clients are listed under Account → MCP → Connected clients, where you can disconnect them.
Access limits
- Read-only (GET requests and read tools only) and Client API only (no
/api/admin) limits. - Admins can turn them on for every connection under Admin → Extensions → Cal MCP; users can add them to each of their own API keys under Account → MCP. Limits add up and are enforced on every panel request, not only by hiding tools.
Tools
- Safe file editing:
read_filereads by line or byte range and reports size, line count and SHA-256; newedit_filereplaces exact text;write_filerefuses to overwrite a large file withoutexpected_sha256. - New
run_command: sends a console command and returns only its new output, waiting for a text or regex or until the console is quiet. power_servercan wait until the server is running or offline and reports a crash during start-up.- Structured output:
list_servers,get_server,list_filesandread_apireturnstructuredContentwith anoutputSchema. - New backup, schedule and startup tools:
list_backups,create_backup,restore_backup,delete_backup,list_schedules,create_schedule,run_schedule,list_startup_variables,update_startup_variables.
Prompts, resources and completion
- Prompts:
diagnose_crash,setup_minecraft_server,backup_before_updateandfind_resource_usage. - Resources: a server's console (
calagopus://servers/{server}/console) and files (calagopus://servers/{server}/files/{+path}). - Completion for server names and IDs, file paths and fixed choices.
Security
A review of the new OAuth and access code before this release led to these fixes:
- OAuth connections cannot manage your sign-in credentials (API, SSH and security keys, email, password, two-factor, OAuth links, sessions), so a client cannot leave a credential behind that outlives disconnecting it. Use an API key if an assistant needs that.
- Read-only connections cannot fetch endpoints that hand out write credentials (console websocket token, file upload URLs, node and database agent tokens and configs) or start two-factor setup.
- MCP requests that impersonate another user (
Calagopus-User) are refused. - Panel paths with percent-encoded
..segments or separators are refused. - Allowed IPs set on an OAuth connection's API key are enforced.
- The approval page only accepts decisions from the panel's own origin, refuses to work inside a frame, and no longer redirects automatically when a client sends an invalid request.
- The tokens kept per connection are bounded.
Upgrading
- This release adds a database migration that creates the OAuth tables; the panel applies it when the extension is installed or updated.
- Existing API key setups keep working unchanged: same endpoint, same
Authorization: Bearer <api key>header. - Needs panel 1.2.0 or newer, as before. On panels older than 1.2.10 the panel does not return to the approval page after signing in, so sign in first and then connect.
Installation
Upload dev_caloptreyx_calmcp.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.
Full Changelog: v1.1.1...v1.2.0
v1.1.1
v1.1.0 - White-label, update checker, testing, and tool hints
What's changed
- Added white-label for MCP connections, setup guides, etc (made by @HappyGamblingAddict in #2)
- Added update checking, that checks from GitHub's API for the latest tag
- Added testing for every single tool declared (not fully tested), warned in https://m8ven.ai/mcp/caloptreyx/cal-mcp
- Correct the tool hints for the
write_filetool, warned in https://m8ven.ai/mcp/caloptreyx/cal-mcp
Thanks to:
- @HappyGamblingAddict for adding white-labeling in #2
Installation
Upload dev_caloptreyx_calmcp.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.
Full Changelog: v1.0.0...v1.1.0
Cal MCP 1.0.0
Install the zip in Admin → Extensions, then click Rebuild Extensions. Needs Calagopus Panel 1.2.0 or newer.
Support: https://discord.gg/wRrNKhxZvy