v0.0.7
Changes
-
Client Identification System (src/sdk/base-api.ts:1-36)
- Added
buildUserAgent()method that constructs a user-agent string combining server info (JustCall-MCP-Server/version) with client details from the MCP protocol context - Implemented automatic
x-justcall-clientheader injection in all API requests - Falls back gracefully when client information is unavailable
- Added
-
API Service Updates
- Updated all 29+ API methods in
JustCallApiService(src/sdk/justcall.ts) to accept and pass through MCP context - Updated all API methods in
SalesDialerApiService(src/sdk/salesdialer.ts) to accept and pass through MCP context - Modified method signatures to support optional
contextparameter without breaking changes
- Updated all 29+ API methods in
-
Tool Handler Updates
- Updated all tool implementations across:
- Call tools (src/tools/justcall/call.ts)
- SMS tools (src/tools/justcall/sms.ts)
- User tools (src/tools/justcall/users.ts)
- Contact tools (src/tools/justcall/contacts.ts)
- Analytics tools (src/tools/justcall/analytics.ts)
- Number tools (src/tools/justcall/numbers.ts)
- Webhook tools (src/tools/justcall/webhooks.ts)
- Sales Dialer tools (src/tools/salesdialer/*)
- All tool handlers now pass the MCP context to underlying API services
- Updated all tool implementations across:
-
Package & Configuration
- Version bump: 0.0.6 → 0.0.7 (package.json, server.json)
- Updated dev script to use
wrangler devfor better development workflow - Minor TypeScript configuration adjustments
-
Documentation
- Improved README.md formatting with better section spacing
Benefits
- Better Analytics: JustCall can now track which clients (Claude Desktop, custom implementations, etc.) are using the MCP server
- Debugging: Easier to identify and debug issues based on client type
- Future Features: Enables client-specific feature flags or behavior customization
- Transparency: Server version is now included in all requests for better version tracking
Technical Details
The header format is: JustCall-MCP-Server/{version} (Client: {clientName}/{clientVersion})
Example: JustCall-MCP-Server/0.0.7 (Client: Claude Desktop/1.2.0)