Repository navigation
Releases
Releases · phoneware/netsapiens-mcp
v3.1.0
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, andNETSAPIENS_OAUTH_CLIENT_IDandNETSAPIENS_OAUTH_CLIENT_SECRETare 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.oauthstays the default and still requires the client./healthreportsauthMode.- Library:
NetSapiensAuthProvidertakesauthMode, andnsClientIdandnsClientSecretare optional unless it isoauth.RenderPagesOptions.loginreceivestokenOnly.
Changed
- The copyright notice in
LICENSEand theauthorfield inpackage.jsonnow 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,NetSapiensMusicOnHoldandNetSapiensBillingnow use the field names in the NetSapiens v2 API documents (for examplename-first-name, notfirst_name) and keep an index signature for fields a host adds. Code that read the old guessed field names must switch. NetSapiensApiResponsedefaults its type parameter tounknown.loginAgent,logoutAgentandgetAgentStatisticsreturnNetSapiensApiResponse<unknown>.
v3.0.1
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
v3.0.0
Breaking Changes
- Node floor: Node 22.13 or later is now required.
- Explicit NetSapiens configuration:
NETSAPIENS_API_URLis required. The server never falls back to hardcoded default URLs. - Storage architecture:
storeparameter is now required when instantiatingNetSapiensAuthProvider.- Default store is SQLite with encrypted credentials at rest.
@google-cloud/firestoreis moved to optional peer dependencies. If usingMCP_PERSISTENCE=firestore, install@google-cloud/firestorein the consumer environment.- Legacy file token storage (
http-tokens.jsonandMCP_PERSISTENCE=file) has been removed. GOOGLE_CLOUD_PROJECTno longer auto-selects Firestore; setMCP_PERSISTENCE=firestoreexplicitly.MCP_TOKEN_STORE_PATH,FIRESTORE_AUTH_CODES_COLLECTION, andFIRESTORE_RESUME_TOKENS_COLLECTIONare removed. UseMCP_STORE_PATHandMCP_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. UsecreateStore,createSqliteStore,createFirestoreStore, orcreateMemoryStore. - 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 upcore-serverandcall-session-id, and bridges call legs. - Blind transfer sends
tousing the documentedcall-term-userparameter.
- 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
What's Changed
Full Changelog: v2.3.1...v2.4.0
v2.3.1
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