Skip to content

Releases

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 23:35
v3.1.0
37c7835

Added

  • NETSAPIENS_AUTH_MODE=token: run the HTTP server without a NetSapiens OAuth client. The login page shows only the API key form, and each user pastes a key or token for their own NetSapiens user. The server holds no upstream credential, password and MFA sign-in are refused, and NETSAPIENS_OAUTH_CLIENT_ID and NETSAPIENS_OAUTH_CLIENT_SECRET are ignored. When an MCP client refreshes its session, the server checks that NetSapiens still accepts the key and ends the session if it does not. oauth stays the default and still requires the client. /health reports authMode.
  • Library: NetSapiensAuthProvider takes authMode, and nsClientId and nsClientSecret are optional unless it is oauth. RenderPagesOptions.login receives tokenOnly.

Changed

  • The copyright notice in LICENSE and the author field in package.json now name the current copyright holder. The license is still MIT. The last code carried over from the project this was forked from has been rewritten, so the earlier notice is gone.
  • Library types: NetSapiensUser, NetSapiensDomain, NetSapiensCDR, NetSapiensDevice, NetSapiensPhoneNumber, NetSapiensCallQueue, NetSapiensAgent, NetSapiensAutoAttendant, NetSapiensAnswerRule, NetSapiensGreeting, NetSapiensVoicemail, NetSapiensMusicOnHold and NetSapiensBilling now use the field names in the NetSapiens v2 API documents (for example name-first-name, not first_name) and keep an index signature for fields a host adds. Code that read the old guessed field names must switch.
  • NetSapiensApiResponse defaults its type parameter to unknown. loginAgent, logoutAgent and getAgentStatistics return NetSapiensApiResponse<unknown>.

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:06
cd82474

Fixes

  • Build prepared Firestore migration commitments in the same canonical candidate order as their plan.
  • Clean up resources created by the Docker proof when an assertion fails.

v2.4.1

Choose a tag to compare

@github-actions github-actions released this 08 Nov 08:25
bab75d4

Full Changelog: v2.4.0...v2.4.1

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 17:42
v3.0.0
914c2b1

Breaking Changes

  • Node floor: Node 22.13 or later is now required.
  • Explicit NetSapiens configuration: NETSAPIENS_API_URL is required. The server never falls back to hardcoded default URLs.
  • Storage architecture:
    • store parameter is now required when instantiating NetSapiensAuthProvider.
    • Default store is SQLite with encrypted credentials at rest.
    • @google-cloud/firestore is moved to optional peer dependencies. If using MCP_PERSISTENCE=firestore, install @google-cloud/firestore in the consumer environment.
    • Legacy file token storage (http-tokens.json and MCP_PERSISTENCE=file) has been removed.
    • GOOGLE_CLOUD_PROJECT no longer auto-selects Firestore; set MCP_PERSISTENCE=firestore explicitly.
    • MCP_TOKEN_STORE_PATH, FIRESTORE_AUTH_CODES_COLLECTION, and FIRESTORE_RESUME_TOKENS_COLLECTION are removed. Use MCP_STORE_PATH and MCP_STORE_NAMESPACE.
    • Upgrading to 3.0.0 requires users to sign in again because the encrypted session store format is updated.
  • Removed library exports: legacy store implementations (FirestoreTokenStore, FirestoreAuthCodeStore, and file-based token stores) have been removed. Use createStore, createSqliteStore, createFirestoreStore, or createMemoryStore.
  • Tool availability:
    • Version-aware tool filtering: tools are now gated based on the target NetSapiens host version.
    • NetSapiens 45.0 and 46.0 tools follow published API documentation.
  • Corrected transfer_call semantics:
    • type: "peer" is removed because it invoked an undocumented route.
    • Attended transfer now accepts consult_call_id, looks up core-server and call-session-id, and bridges call legs.
    • Blind transfer sends to using the documented call-term-user parameter.
  • AuthHooks: onVerify runs during refresh-token exchange before any upstream refresh grant. If onVerify throws InvalidTokenError, the family is revoked and the client receives 400 invalid_grant. Operational errors preserve the family and return 400 temporarily_unavailable.

Features

  • Encrypted default storage using SQLite on local disk with 0600 file mode.
  • Distributed persistence support via Firestore with Cloud Firestore TTL policies.
  • Role-aware tool visibility and execution gating across all supported NetSapiens versions.
  • Guarded client layer preventing invocation of unsupported routes.
  • Streamable HTTP and stdio transports with OAuth 2.1 authorization code flow and PKCE.
  • OAuth permanence: permanent refresh families, 30-second replay grace window for response-lost retries, late-replay family revocation, tool-call 401 automatic upstream refresh retry, and transactional v2.4 Firestore adoption.
  • Signed Firestore adoption can reconstruct a PR56 session from its complete, identity-consistent refresh record when its access document was removed by TTL, without extending the stored bearer expiry.
  • Firestore adoption checks existing target graphs during dry runs and before preparation, rejecting partial or conflicting targets before migration writes.

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 07:01
v2.4.0
ab13e0d

What's Changed

  • Hosted MCP OAuth permanence: netsapiens-mcp library (E1) by @jwaldrip in #56

Full Changelog: v2.3.1...v2.4.0

v2.3.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 17:02

What's Changed

  • Scrub plaintext secrets from cloudbuild.yaml and make deploy env reproducible (Closes phoneware/monorepo#1141) by @jwaldrip in #32
  • Withdraw internal material and add content checks by @jwaldrip in #46

Full Changelog: v2.3.0...v2.3.1