Releases: mozilla-ai/mcpd-sdk-javascript
Releases · mozilla-ai/mcpd-sdk-javascript
v0.0.1
What's Changed
Initial release of the JavaScript/TypeScript SDK for mcpd, providing natural JavaScript syntax for MCP server management and tool execution.
Key Features
- Dynamic tool access - Call MCP tools with natural JavaScript syntax:
client.servers.time.tools.get_current_time({ timezone: 'UTC' })
- AI framework integration - Generate callable functions for LangChain JS and Vercel AI SDK with
getAgentTools()
- Type-safe - Full TypeScript support with generated type definitions from MCP tool schemas
- Dual module format - Ships both CommonJS and ESM for maximum compatibility
- Health-aware - Automatic health checking and filtering of unhealthy servers
- Comprehensive error handling - Typed exceptions for all failure modes
API
client.listServers()
- List all configured MCP serversclient.getServerHealth(name?)
- Get health status for serversclient.servers.foo.tools.bar(args)
- Direct tool invocationclient.getAgentTools(options?)
- Generate functions for AI frameworksclient.getToolSchemas(options?)
- Get schemas for tool aggregation
Examples
Includes working examples for:
- Basic usage
- LangChain JS integration
- Vercel AI SDK integration
Requirements
- Node.js 22+ (LTS)
Full Changelog: https://github.com/mozilla-ai/mcpd-sdk-javascript/commits/v0.0.1