Skip to content

Releases

1.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 21:04

Security hardening. Read "Changed" before upgrading: an HTTP server without
AUTH_TOKEN/OAuth no longer starts.

Added

  • Read-only tokens and assignments: read_only flag on file tokens and OAuth assignments, and ORA_READ_ONLY=true
    for everyone. The execute tool is hidden and refused ([AUTH] … reason="read-only"); query was already read-only.
    A change applies to open sessions with their next request; a user matching several assignments is read-only if any
    of them is. Admin UI toggle and list marker, REST API and OpenAPI spec, admincli.sh: --read-only for add-token /
    add-assignment, set-read-only, set-assignment-read-only, an RO column and Read-only in show-token
  • Failed-login throttle per client IP: HTTP 429 with Retry-After after AUTH_MAX_FAILURES (default 20, 0 = off)
    failures within AUTH_FAILURE_WINDOW seconds (default 60)
  • ALLOW_ANONYMOUS (Helm: auth.allowAnonymous) and Helm server.readOnly (ORA_READ_ONLY)
  • Docker image scan: CI job image-scan and a gate before the push in release.yml run Trivy and fail on fixable
    HIGH/CRITICAL vulnerabilities, secrets or Dockerfile misconfigurations
  • The Docker images (thin and -thick) are also published to GitHub Container Registry
    (ghcr.io/tommi2day/oracle-mcp-server, same tags as on Docker Hub); the release job verifies that the GHCR
    package is publicly pullable and writes a job summary

Changed

  • License is Apache-2.0 (was MIT): LICENSE, package.json, package-lock.json, openapi.json and the README say so. Releases up to 1.1.0 were published under MIT
  • Breaking: TRANSPORT=http exits at startup without AUTH_TOKEN or OAUTH_ISSUER unless ALLOW_ANONYMOUS=true
    is set — an unauthenticated server exposes the database and the admin API. Docker: pass -e AUTH_TOKEN=…;
    docker-compose.yml passes the variables through; Helm: set auth.token, auth.existingSecret or
    auth.allowAnonymous. The stdio transport is unaffected
  • STORE_ENCRYPTION_KEY is stretched with scrypt (enc:v2:). Existing enc:v1: values are still read and
    re-encrypted at startup — after that, older versions can no longer read the token store
  • The token store file is chmod'ed to 0600 on every write
  • The admin page is served with Content-Security-Policy, X-Frame-Options: DENY, X-Content-Type-Options: nosniff,
    Referrer-Policy: no-referrer and Cache-Control: no-store

Security

  • MCP sessions are bound to the principal that opened them: resuming an mcp-session-id with another token or user is
    answered with 403 (reason="session belongs to another principal")
  • Pending OAuth logins (/auth/login, unauthenticated) are capped; an oversized request body closes the connection
  • Client-supplied connect strings (client_connection: full) are also checked percent-decoded: TNS%5FADMIN=… and similar encodings can no longer reference server-side wallets or TNS_ADMIN directories

Full Changelog: 1.1.0...1.2.0

1.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 18:48

Single sign-on: users can authenticate with an OpenID Connect provider (Microsoft Entra ID, Keycloak, …) instead of
bearer tokens, and the skills and OAuth path are now tested against real containers. Backwards compatible: without
OAUTH_ISSUER nothing changes.

Added

  • scripts/admincli.sh: OAuth assignment commands (list-assignments, show-assignment, add-assignment --group|--email … with the connection options of add-token, delete-assignment, set-assignment-conn, clear-assignment-conn, set-assignment-client-conn, set-assignment-admin) and whoami; ADMIN_TOKEN is accepted as alias of AUTH_TOKEN, and the access token of an OAuth admin works as well. Covered by tests/admincli.test.ts
  • OAuth 2.0 / OpenID Connect as an alternative to bearer tokens, primarily for Microsoft Entra ID (any OIDC provider
    works): OAUTH_ISSUER switches it on. MCP clients send an access token (JWT: signature via JWKS, issuer, audience,
    lifetime are validated locally); the admin UI offers single sign-on (authorization code flow with PKCE, HttpOnly
    session cookie, X-Requested-With header for changes). AUTH_TOKEN and file tokens keep working. See
    docs/oauth.md
  • Assignments (deny by default): group or e-mail (*@domain, or the immutable object id) → access, default
    Oracle connection
    , client_connection mode and admin role. Configured by OAUTH_ALLOWED_GROUPS,
    OAUTH_ALLOWED_USERS, OAUTH_ADMIN_GROUPS, OAUTH_ADMIN_USERS, OAUTH_ASSIGNMENTS (read-only) and in the admin UI
    (OAuth assignments) / REST /admin/assignments (stored in the token store, password / wallet_password
    encrypted like token secrets and never returned)
  • GET /admin/me, GET /auth/status|login|callback, POST /auth/logout,
    GET /.well-known/oauth-protected-resource (RFC 9728; the 401 challenge carries resource_metadata)
  • Attribution: the user's e-mail replaces the token name in the [MCP] / [SESSION] / [ADMIN] log lines and in
    V$SESSION.CLIENT_IDENTIFIER; new [AUDIT] log category (login, logout, session_start, changing admin calls)
    and [AUTH] reason="oauth: …". Documented in docs/logging.md, Logstash pipeline updated
  • Helm: oauth.* values; OpenAPI: assignment and auth endpoints; docker-compose.yml passes the OAUTH_* variables
  • Docker integration tests (skipped unless their environment variable is set; npm run test:integration, CI job
    integration): tests/oracle.integration.test.ts runs every MCP tool against a real Oracle Free database
    (oracle-test container) and the whole OAuth path over HTTP (group / e-mail → schema, V$SESSION tags,
    client-supplied credentials enforced by Oracle, assignment admin API); tests/oidc.integration.test.ts validates
    tokens and the browser login against a real provider (docker compose --profile oidc up -d oidc-test,
    mock-oauth2-server)
  • OAUTH_RESOURCE_SCOPES: scopes advertised to MCP clients in /.well-known/oauth-protected-resource (default
    <audience>/.default as before, right for Entra ID; e.g. openid profile email for Keycloak). Compose and Helm
    (oauth.resourceScopes) pass it through. New docs section "MCP clients" (static header vs. client-side login,
    client registration / dynamic registration, audience, scopes, claude mcp add --client-id), example.mcp.json
    and README client examples
  • Keycloak as a real test and demo identity provider: compose profile keycloak (docker compose --profile keycloak up -d --wait keycloak, console on port 8081) with the realm tests/oidc/keycloak-realm.json (users, groups, audience and
    groups mappers, browser, password-grant and pre-registered MCP-client (oramcp-mcp-client, authorization code + PKCE) clients) and examples/oauth-keycloak.env for the full stack with SSO
    login in the admin UI. tests/oidc.integration.test.ts runs against the mock server or Keycloak (real login form);
    CI runs both. docker-compose.yml passes OAUTH_JWKS_URI, OAUTH_AUTHORIZATION_ENDPOINT, OAUTH_TOKEN_ENDPOINT
  • Unit tests tests/oauth.test.ts and tests/oauth-auth.test.ts with a fake identity provider
  • Skills are tested: tests/skills.test.ts checks that every parameter and value a SKILL.md names exists in the tool
    schemas and that every tool is covered by a skill; tests/skills.integration.test.ts (ORA_TEST_HOST) runs the SQL
    blocks and the workflows on a real database — a real blocking chain for locks, a slow statement through top_sql /
    sql_plan / explain_plan and the index fix, schema documentation, and a real deadlock followed from alert_log
    through trace_files to trace_content

Changed

  • example.mcp.json: inactive examples (_inactive_examples) for OAuth login by the client, an OAuth access token header
    and client-supplied connections (X-Oracle-* headers: own credentials, own database)
  • Docs: README "When to choose this server" (and the DOCKERHUB.md intro) now cover single sign-on, directory-group based
    access, attribution of the individual user in V$SESSION / audit log, the skills and the real-container tests
  • /info accepts the same admin authentication as /admin/* (also OAuth admins)

Security

  • A malformed admin request body is answered with 400 Invalid JSON body (was 500); the JSON parser message quotes a snippet of the body, which could contain a password, and is no longer logged. Connect strings of the form user/password@target are masked in /info and log lines
  • With OAuth configured, an empty AUTH_TOKEN does not disable authentication
  • E-mail matching ignores an e-mail the provider marks email_verified: false; OAUTH_REQUIRE_VERIFIED_EMAIL
    demands true

Documentation

  • Screenshots of the single sign-on login and the OAuth assignments screens (README, docs/oauth.md, Docker Hub)
  • Configuration reference in the README and on Docker Hub now lists every variable (incl. all OAUTH_*, TLS, pool/limit settings) with default and description, and marks per-token overrides.

Full Changelog: 1.0.0...1.1.0

1.0.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 16:09

First complete version. From here on the MCP tools and their parameters, the admin REST API (openapi.json), the
environment variables, the log format and the Helm values follow Semantic Versioning.
Compared with 0.3.2 it adds database diagnostics (what is my database doing, locks, alert log, trace files) and ready-made
Claude skills on top of the existing tools.

Added

  • Claude skills in skills/ (install: copy to ~/.claude/skills, see docs/skills.md): oracle-db-status ("what is
    my database doing"), oracle-top-sessions-sql, oracle-problem-detection (locks, waits, saturation),
    oracle-sql-tuning, oracle-document (schema documentation, incident / tuning write-ups) and
    oracle-error-analysis (alert log, incidents, trace files). Read-only, evidence-based, licence-aware.
  • Tools for the skills (unlicensed, ORA_PERF_TOOLS): db_overview (instance, load, sessions, CPU vs. wait classes,
    attention points), locks (blocked sessions, root blockers, held locks; prints but never runs KILL SESSION),
    alert_log (V$DIAG_ALERT_EXT), incidents (V$DIAG_INCIDENT / V$DIAG_PROBLEM), trace_files and
    trace_content (V$DIAG_TRACE_FILE[_CONTENTS]; head/tail, text filter with grep -C-style context, output capped, name
    validated). locks also shows the module of the root blockers.
  • grant_perf_privileges.sql takes a fifth parameter logs (MCP_PERF_LOG_ROLE: alert log, incidents, trace files)
    and grants the views of db_overview / locks (V$INSTANCE, V$SYSMETRIC, V$CON_SYSMETRIC, V$OSSTAT,
    V$LOCKED_OBJECT) to MCP_PERF_ROLE; revoke_perf_privileges.sql removes the log role. SELECT_CATALOG_ROLE does
    not include V$DIAG_ALERT_EXT / V$DIAG_INCIDENT, so logs = Y is also needed in CATALOG mode.

Full Changelog: 0.3.2...1.0.0

0.3.2

Choose a tag to compare

@github-actions github-actions released this 07 Nov 14:57

Added

  • The Helm chart is published to GitHub Container Registry on every release and can be installed with
    helm install oracle-mcp oci://ghcr.io/tommi2day/charts/oracle-mcp-server --version <version>. New workflow
    helm-chart.yml (called by the release workflow, also runnable manually for an existing tag).

Security

  • All HTTP responses carry X-Content-Type-Options: nosniff, X-Frame-Options: DENY,
    Referrer-Policy: no-referrer and Cache-Control: no-store (admin UI clickjacking protection; token and
    connection data are not cached by browsers or proxies).
  • Updated dependencies (vitest / @vitest/coverage-v8 5.1, npm audit fix for zod, vite and source-map-js);
    npm audit reports 0 vulnerabilities.
  • package.json overrides minimatch to ^11.0.5 (GHSA-g3hv-75wg-m249, pulled in by eslint; dev only).
  • Docker image no longer ships npm/npx/corepack (unused at runtime, carried CVEs in bundled packages); production
    dependencies are installed in a separate build stage.
  • Docker image is based on node:24-trixie-slim (Node.js 24 LTS) instead of node:25-trixie-slim; Node 25 is not
    an LTS release and no longer receives updates. Matches the Node version used in CI and scripts/.

Changed

  • Updated the Oracle driver oracledb to 26.0.0 (@types/oracledb 26.0.1, globals 17.14); verified against Oracle
    Free 23ai in thin mode (all tools, session tags). Node.js 14.17+ is still sufficient for the driver.
  • Helm: image.tag defaults to the chart appVersion instead of latest, so a chart version deploys its matching
    image. Set image.tag explicitly for the -thick variant or to keep following latest.
    scripts/helm_install.sh only passes image.tag when IMAGE_TAG is set.
  • @types/node is pinned to the Node.js 24 line (^24) to match the runtime; Dependabot no longer proposes major
    updates of the node Docker image or @types/node.
  • Release workflow: the GitHub release notes start with the matching CHANGELOG.md section, followed by the
    generated notes.

What's Changed

  • build(deps-dev): Bump @types/node from 26.6.2 to 26.6.3 in the dev group by @dependabot[bot] in #6
  • build(deps): Bump @modelcontextprotocol/sdk from 1.30.1 to 1.32.2 in the production group by @dependabot[bot] in #7
  • build(deps): Bump the dev group across 1 directory with 3 updates by @dependabot[bot] in #10

Full Changelog: 0.3.1...0.3.2

0.3.1

Choose a tag to compare

@github-actions github-actions released this 28 Sep 09:10

Full Changelog: 0.3.0...0.3.1

0.3.0

Choose a tag to compare

@github-actions github-actions released this 27 Sep 17:16

Full Changelog: 0.2.1...0.3.0

0.2.1

Choose a tag to compare

@github-actions github-actions released this 26 Sep 08:59

Full Changelog: 0.2.0...0.2.1

0.2.0

Choose a tag to compare

@github-actions github-actions released this 26 Sep 08:14

Full Changelog: 0.1.0...0.2.0

0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Sep 07:35

What's Changed

  • Bump node from 24-slim to 25-slim by @dependabot[bot] in #1
  • Bump @types/node from 24.13.6 to 26.6.2 in the dev group by @dependabot[bot] in #3

New Contributors

Full Changelog: https://github.com/Tommi2Day/oracle-mcp-server/commits/0.1.0