Skip to content

v1.2.0

Choose a tag to compare

@Xylo01 Xylo01 released this 20 Nov 18:25
· 4 commits to main since this release

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_file reads by line or byte range and reports size, line count and SHA-256; new edit_file replaces exact text; write_file refuses to overwrite a large file without expected_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_server can wait until the server is running or offline and reports a crash during start-up.
  • Structured output: list_servers, get_server, list_files and read_api return structuredContent with an outputSchema.
  • 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_update and find_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