Skip to content

v0.7.0-alpha.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 16 Nov 20:13
· 2 commits to main since this release
dafefe8

IBM i MCP Server v0.7.0-alpha.0

This is a pre-release of 0.7.0, published under the npm dist-tag next. latest stays at 0.6.2. It contains breaking changes to HTTP authentication and session configuration (see below). It is also the first release published by the new release workflow.

npx -y @ibm/ibmi-mcp-server@0.7.0-alpha.0 --transport http --tools ./tools
npm install -g @ibm/ibmi-cli@0.7.0-alpha.0

Overview

  • MCP SDK v2 — The server moves to @modelcontextprotocol/server v2 and serves current and 2025-era clients from one stateless endpoint
  • Sign on with your IBM i profile — MCP_AUTH_MODE=oauth makes the server its own OAuth 2.1 authorization server, and every tool runs its SQL as the signed-on user
  • SSH connections — A source with an SSH key reaches Db2 for i over SSH, with no Mapepire daemon on port 8076
  • CLI sessions over SSH — The ibmi CLI keeps an SSH session open between commands on SSH systems

Configuration | IBM i sign-on | CLI configuration


New Features

Built-in IBM i sign-on

With MCP_AUTH_MODE=oauth and no OAUTH_ISSUER_URL, the server is its own OAuth 2.1 authorization server. Users sign on at its page with an IBM i profile and password, and every tool runs its SQL on a connection signed on as that user. Passwords are held only as AES-256-GCM ciphertext in memory, tokens are stored as hashes, and nothing is written to disk. Privileged profiles are refused by default.

With OAUTH_ISSUER_URL set, the server is instead an OAuth resource server for an external identity provider.

Documentation: IBM i sign-on

Reference: #257

SSH connections to IBM i

A connection uses SSH when it has an SSH key. The server opens an SSH session and starts mapepire-server on demand, so no Mapepire daemon needs to run. SSH uses key authentication only; a password is never sent over SSH. Set DB2i_SSH_KEY for the built-in tools and every YAML source, or ssh-key on a single source:

sources:
  dev:
    host: dev.example.com
    user: MYUSER
    ssh-key: ~/.ssh/id_ed25519
    ssh-host-key-sha256: SHA256:AbC...

  prod:
    host: prod.example.com
    user: ${PROD_USER}
    password: ${PROD_PASS}

Pin the host key with ssh-host-key-sha256 on a source or DB2i_SSH_HOST_KEY_SHA256 in the environment. DB2i_SSH_PORT, DB2i_SSH_PASSPHRASE and DB2i_SSH_TECHNIQUE apply to every SSH connection.

Documentation: Configuration

Reference: #255, #265

CLI: SSH systems with a session that stays open

A CLI system with an SSH key uses SSH, and the first command opens a session that later commands reuse instead of reconnecting. The session closes after 10 minutes without a command.

ibmi system add dev --host dev.example.com --user MYUSER \
  --ssh-key ~/.ssh/id_ed25519 --ssh-host-key-sha256 SHA256:AbC...
ibmi sql "values current server"    # opens the session
ibmi sql "values current server"    # reuses it
ibmi system status                  # transport and session of each system
ibmi system disconnect dev          # close it (--all for every system)
ibmi sql "values 1" --fresh         # connect for this command only

All commands on one system share one SQL job while the session is open, so SET SCHEMA and temporary tables carry over between commands.

Documentation: CLI configuration

Reference: #268


Breaking Changes

  • The server is always stateless. MCP_SESSION_MODE and MCP_STATEFUL_SESSION_STALE_TIMEOUT_MS are removed. There is no Mcp-Session-Id, and GET and DELETE on the MCP endpoint return 405.
  • JWT auth mode is removed. MCP_AUTH_MODE=jwt, MCP_AUTH_SECRET_KEY, DEV_MCP_CLIENT_ID and DEV_MCP_SCOPES are gone. Use MCP_AUTH_MODE=oauth.
  • Startup fails fast. An invalid environment variable, an unknown log level, a busy port, or a YAML file that fails to parse or validate now stops startup instead of logging a warning.
  • MCP_AUTH_MODE=ibmi is deprecated. It behaves as before, with a startup warning and a Deprecation response header. Move to MCP_AUTH_MODE=oauth.

Reference: #257

Bug Fixes

  • DB2i_JDBC_OPTIONS now applies to per-user authenticated pools (#247)
  • Reloading YAML tools no longer leaks connection pools (#246)
  • Parameter markers inside string literals and SQL comments are no longer treated as parameters (#243)
  • /healthz requests are no longer written to the access log (#197)
  • enabled: false YAML tools are not registered, and built-in tools are no longer capped at 100 rows (#257)
  • Dependency security alerts remediated (#226, #235, #236)

All Changes

  • docs(skills): cover SSH sources in the tool builder and document installing it by @ajshedivy in #269
  • feat(cli): SSH systems with a session that stays open between commands by @ajshedivy in #268
  • feat(ssh): per-source SSH key and key-only authentication by @ajshedivy in #265
  • feat!: MCP SDK v2, built-in IBM i sign-on, and template debloat by @ajshedivy in #257
  • feat: SSH transport for IBM i connections (key or password auth, no Mapepire daemon) by @JAYENDRA-POGARU in #255
  • chore: remove outdated app/ example and scope Dependabot to server and CLI by @ajshedivy in #254
  • feat(skills): add ibmi-mcp-tool-builder skill, replace Bob rules by @ajshedivy in #253
  • docs(sql-tools): remove unimplemented security fields from docs by @william-xiang in #252
  • fix(auth): apply DB2i_JDBC_OPTIONS to per-user authenticated pools by @michaeltaciuk in #247
  • fix: prevent reload pool leak by @wyattmog in #246
  • fix(params): ignore literals and comments when finding parameter markers by @sghbfc in #243
  • fix(deps): remediate remaining Dependabot alerts by @ajshedivy in #236
  • fix(deps): bump brotli and certifi for critical alerts by @ajshedivy in #235
  • fix(deps): remediate #216 alerts by @ajshedivy in #226
  • fix(http): exclude /healthz from access logging by @FE-hallen in #197
  • Dependency bumps by @dependabot in #238, #239, #240, #241, #248, #249, #251

Full Changelog: v0.6.2...v0.7.0-alpha.0