Skip to main content
Version: SDK ยท v1.1.0

ERPBridge SDK

The ERPBridge SDK is a TypeScript client library for agentic AI workflow applications. Use @erpbridge/sdk to call MCP tools by exact name, invoke tools over REST, collect logs, read metrics, check health, and manage the cache and tool registry through one typed facade.

Featuresโ€‹

  • Built-in MCP client for ERPBridge Server โ€” connect, discover, and call tools programmatically
  • Exact-name tool proxy โ€” call registered tools such as list_employees directly, with argument validation against each tool's input schema
  • Log aggregation โ€” collect and inspect bridge logs from your application
  • View metrics โ€” read Prometheus metrics from the server, raw or parsed
  • Health and cache โ€” server health checks and cache statistics or flushing
  • Tool registry and direct invoke โ€” manage registered tools over REST and call them without an MCP session
  • Typed errors โ€” a single ErpbridgeError hierarchy across the whole surface
  • Consume-only authentication โ€” send administrator-provisioned bearer tokens with per-surface routing
  • Dual build โ€” ESM + CJS, Node.js >= 20, dependency-light
  • Browser MCP and tools โ€” use the ESM MCP client and exact-name tool proxy in browser bundles when the server's /mcp/ CORS policy is configured

Get startedโ€‹

PageWhat it covers
InstallationRequirements and package managers
quickstartFirst tool call in five lines
MCP toolsThe MCP client, the tool proxy, and the registry
Logs and metricsLog streaming, metrics, health, and cache
AuthenticationBearer credentials, scopes, and auth errors
Upgrade guideMigrate MCP result handling and active credentials
API referenceEvery public export, the client facade, and the error hierarchy

Statusโ€‹

Current SDK release

@erpbridge/sdk is currently v1.1.0, released independently from the ERPBridge Server and bridgectl version line. It ships the MCP client, configurable MCP transport retries, exact-name tool proxy, logs, metrics, health, cache, tool registry, direct invoke, and consume-only authentication. See the SDK CHANGELOG for release details.

Packageโ€‹

The @erpbridge/sdk package is published on npm with signed provenance (SLSA), dual ESM + CJS builds, and TypeScript declarations for both. Install it from the installation page.

Repositoryโ€‹

The ERPBridge SDK is developed in the erpbridge-sdk repository. The Agent guide describes the plan-first workflow, TDD, quality gates, release pipeline, and code conventions for AI agents and contributors.