DEVELOPER DOCUMENTATION / TYPESCRIPT SDK
Use the hosted API today. SDK access is private.
Working Machines gives agents and applications a structured route to connected software. Use MCP or the HTTP API for public integrations; the TypeScript SDK is currently maintained privately.
01 / RELEASE STATUS
The SDK is not a public package.
The TypeScript SDK repository is private, and @working-machines/sdk is not available for public npm installation. Use the hosted MCP endpoint or HTTP API for production integrations today.
Use these today
- Hosted MCP at
https://app.workingmachines.dev/mcp - Hosted HTTP API and authenticated OpenAPI document
- Server-side TypeScript calls using
fetch
Private SDK access
SDK source and builds are available only to authorized team members. Public npm installation is unavailable.
02 / CHOOSE YOUR SURFACE
Start with the interface your product actually needs.
MCP is the shortest path for an existing agent. HTTP is the stable choice for server-side applications. The SDK is reserved for authorized internal integrations.
HTTP API
For your backend, internal service, or product integration with a runtime token.
HTTP REFERENCEPrivate SDK
For Working Machines teams with repository access.
03 / HOSTED HTTP
A production-ready path for TypeScript applications.
Call the authenticated HTTP API from your server. Create a runtime API key in the Working Machines console, keep it in server-side environment variables, and send it only to the hosted runtime. Never ship a workspace key in browser code.
const response = await fetch(
"https://app.workingmachines.dev/v1/actions/github.get_current_user",
{
method: "POST",
headers: {
Authorization: `Bearer ${process.env.WORKING_MACHINES_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ input: {} }),
},
);
if (!response.ok) throw new Error(await response.text());
const result = await response.json();Authorize the provider account in the dashboard before code attempts to execute an Action.
Use the catalog or Action guide to validate the ID, input shape, scopes, and side effects.
Treat a successful HTTP response as an execution result to inspect, log, and present deliberately.
04 / MCP
Use the same boundary from an agent host.
MCP is the recommended integration for a user-operated agent. The client discovers Working Machines OAuth metadata, sends the user through authorization, and then invokes structured discovery and execution tools on the hosted endpoint.
{
"mcpServers": {
"working-machines": {
"url": "https://app.workingmachines.dev/mcp"
}
}
}For Codex, add the server and complete codex mcp login working-machines. For other clients, use their custom remote MCP connection flow. OAuth-capable clients should prefer OAuth over a copied bearer API key.
05 / PRIVATE SDK
SDK access is managed by Working Machines.
Authorized team members can build and test the TypeScript client from the private repository. For public integrations, use the documented HTTP API or MCP endpoint.
Internal quality checks
The SDK check covers linting, TypeScript validation, package builds, unit tests with coverage, and package type-resolution tests.
06 / EXECUTION BOUNDARY
The client requests work; Working Machines controls execution.
Use a narrow Action and connection identity for each task. This model avoids handing provider credentials to model context or application code, but it does not remove your responsibility to validate intent and handle returned data safely.
Credentials stay in the runtime
SDK and HTTP callers identify themselves to Working Machines. Provider OAuth tokens and API keys are held by the selected connection and are not returned to your process.
An Action is the contract
Use an Action ID and its input schema. Do not infer provider endpoints or pass a raw browser session into an agent. Inspect the action guide before a write or delete operation.
Connection choice is explicit
A workspace can have more than one account for the same app. Select the intended connection or let the runtime reject an ambiguous request instead of silently using the wrong identity.
Results are still data
The runtime protects credentials; your application remains responsible for displaying, storing, and forwarding action results safely after it receives them.
07 / NEXT STEPS
Build on a documented contract.
Start with the hosted interface that matches your deployment today. This page will be updated if public SDK access becomes available.