Repository navigation
Releases
1.2.0
Security hardening. Read "Changed" before upgrading: an HTTP server without
AUTH_TOKEN/OAuth no longer starts.
Added
- Read-only tokens and assignments:
read_onlyflag on file tokens and OAuth assignments, andORA_READ_ONLY=true
for everyone. Theexecutetool is hidden and refused ([AUTH] … reason="read-only");querywas 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-onlyforadd-token/
add-assignment,set-read-only,set-assignment-read-only, anROcolumn andRead-onlyinshow-token - Failed-login throttle per client IP: HTTP 429 with
Retry-AfterafterAUTH_MAX_FAILURES(default 20,0= off)
failures withinAUTH_FAILURE_WINDOWseconds (default 60) ALLOW_ANONYMOUS(Helm:auth.allowAnonymous) and Helmserver.readOnly(ORA_READ_ONLY)- Docker image scan: CI job
image-scanand a gate before the push inrelease.ymlrun 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.jsonand the README say so. Releases up to 1.1.0 were published under MIT - Breaking:
TRANSPORT=httpexits at startup withoutAUTH_TOKENorOAUTH_ISSUERunlessALLOW_ANONYMOUS=true
is set — an unauthenticated server exposes the database and the admin API. Docker: pass-e AUTH_TOKEN=…;
docker-compose.ymlpasses the variables through; Helm: setauth.token,auth.existingSecretor
auth.allowAnonymous. The stdio transport is unaffected STORE_ENCRYPTION_KEYis stretched with scrypt (enc:v2:). Existingenc: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
0600on every write - The admin page is served with
Content-Security-Policy,X-Frame-Options: DENY,X-Content-Type-Options: nosniff,
Referrer-Policy: no-referrerandCache-Control: no-store
Security
- MCP sessions are bound to the principal that opened them: resuming an
mcp-session-idwith 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
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 ofadd-token,delete-assignment,set-assignment-conn,clear-assignment-conn,set-assignment-client-conn,set-assignment-admin) andwhoami;ADMIN_TOKENis accepted as alias ofAUTH_TOKEN, and the access token of an OAuth admin works as well. Covered bytests/admincli.test.ts- OAuth 2.0 / OpenID Connect as an alternative to bearer tokens, primarily for Microsoft Entra ID (any OIDC provider
works):OAUTH_ISSUERswitches 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-Withheader for changes).AUTH_TOKENand 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_connectionmode and admin role. Configured byOAUTH_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; the401challenge carriesresource_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 indocs/logging.md, Logstash pipeline updated - Helm:
oauth.*values; OpenAPI: assignment and auth endpoints;docker-compose.ymlpasses theOAUTH_*variables - Docker integration tests (skipped unless their environment variable is set;
npm run test:integration, CI job
integration):tests/oracle.integration.test.tsruns every MCP tool against a real Oracle Free database
(oracle-testcontainer) and the whole OAuth path over HTTP (group / e-mail → schema,V$SESSIONtags,
client-supplied credentials enforced by Oracle, assignment admin API);tests/oidc.integration.test.tsvalidates
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>/.defaultas before, right for Entra ID; e.g.openid profile emailfor 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 realmtests/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) andexamples/oauth-keycloak.envfor the full stack with SSO
login in the admin UI.tests/oidc.integration.test.tsruns against the mock server or Keycloak (real login form);
CI runs both.docker-compose.ymlpassesOAUTH_JWKS_URI,OAUTH_AUTHORIZATION_ENDPOINT,OAUTH_TOKEN_ENDPOINT - Unit tests
tests/oauth.test.tsandtests/oauth-auth.test.tswith a fake identity provider - Skills are tested:
tests/skills.test.tschecks that every parameter and value aSKILL.mdnames 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 forlocks, a slow statement throughtop_sql/
sql_plan/explain_planand the index fix, schema documentation, and a real deadlock followed fromalert_log
throughtrace_filestotrace_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 inV$SESSION/ audit log, the skills and the real-container tests /infoaccepts the same admin authentication as/admin/*(also OAuth admins)
Security
- A malformed admin request body is answered with
400 Invalid JSON body(was500); the JSON parser message quotes a snippet of the body, which could contain a password, and is no longer logged. Connect strings of the formuser/password@targetare masked in/infoand log lines - With OAuth configured, an empty
AUTH_TOKENdoes not disable authentication - E-mail matching ignores an e-mail the provider marks
email_verified: false;OAUTH_REQUIRE_VERIFIED_EMAIL
demandstrue
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
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, seedocs/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 runsKILL SESSION),
alert_log(V$DIAG_ALERT_EXT),incidents(V$DIAG_INCIDENT/V$DIAG_PROBLEM),trace_filesand
trace_content(V$DIAG_TRACE_FILE[_CONTENTS]; head/tail, text filter withgrep -C-stylecontext, output capped, name
validated).locksalso shows the module of the root blockers. grant_perf_privileges.sqltakes a fifth parameterlogs(MCP_PERF_LOG_ROLE: alert log, incidents, trace files)
and grants the views ofdb_overview/locks(V$INSTANCE,V$SYSMETRIC,V$CON_SYSMETRIC,V$OSSTAT,
V$LOCKED_OBJECT) toMCP_PERF_ROLE;revoke_perf_privileges.sqlremoves the log role.SELECT_CATALOG_ROLEdoes
not includeV$DIAG_ALERT_EXT/V$DIAG_INCIDENT, sologs = Yis also needed inCATALOGmode.
Full Changelog: 0.3.2...1.0.0
0.3.2
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-referrerandCache-Control: no-store(admin UI clickjacking protection; token and
connection data are not cached by browsers or proxies). - Updated dependencies (
vitest/@vitest/coverage-v85.1,npm audit fixfor zod, vite and source-map-js);
npm auditreports 0 vulnerabilities. package.jsonoverridesminimatchto^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 ofnode:25-trixie-slim; Node 25 is not
an LTS release and no longer receives updates. Matches the Node version used in CI andscripts/.
Changed
- Updated the Oracle driver
oracledbto 26.0.0 (@types/oracledb26.0.1,globals17.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.tagdefaults to the chartappVersioninstead oflatest, so a chart version deploys its matching
image. Setimage.tagexplicitly for the-thickvariant or to keep followinglatest.
scripts/helm_install.shonly passesimage.tagwhenIMAGE_TAGis set. @types/nodeis pinned to the Node.js 24 line (^24) to match the runtime; Dependabot no longer proposes major
updates of thenodeDocker image or@types/node.- Release workflow: the GitHub release notes start with the matching
CHANGELOG.mdsection, 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
0.3.0
0.2.1
0.2.0
0.1.0
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
- @dependabot[bot] made their first contribution in #1
Full Changelog: https://github.com/Tommi2Day/oracle-mcp-server/commits/0.1.0