Client Libraries & Terminal Workflows
Automation by Meir SDK & CLI
Generate strongly typed SDK clients directly from ABM’s OpenAPI 3.1 specification or interact with the ABM REST v1 and MCP endpoints from your terminal.
1. CLI Quickstart (MCP Inspector & curl)
Inspect and invoke ABM’s remote MCP tools interactively from any terminal without cloning a repository:
# Launch MCP Inspector against ABM's Streamable HTTP server npx @modelcontextprotocol/inspector --transport http --server-url https://www.automationbymeir.com/api/v1/mcp # List open 30-minute consultation slots via REST CLI curl -sS https://www.automationbymeir.com/api/v1/schedule/slots | jq '.slots[:5]'
2. Generate Typed SDK Clients from OpenAPI 3.1
# Generate a zero-dependency TypeScript client from ABM's OpenAPI 3.1 spec npx openapi-typescript https://www.automationbymeir.com/openapi.json -o ./abm-api.d.ts
3. TypeScript / Node.js SDK Snippet (with Idempotency-Key)
import crypto from 'node:crypto';
const ABM_BASE = 'https://www.automationbymeir.com/api/v1';
export async function listAbmSlots() {
const res = await fetch(`${ABM_BASE}/schedule/slots`, {
headers: { Accept: 'application/json', 'API-Version': '2026-11-30' },
});
const body = await res.json();
if (!res.ok) throw Object.assign(new Error(body.message), { code: body.code, hint: body.hint });
return body.slots;
}
export async function bookAbmConsultation(input, idempotencyKey = crypto.randomUUID()) {
const res = await fetch(`${ABM_BASE}/schedule/book`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Idempotency-Key': idempotencyKey,
'API-Version': '2026-11-30',
},
body: JSON.stringify(input),
});
const body = await res.json();
if (!res.ok) throw Object.assign(new Error(body.message), { code: body.code, hint: body.hint });
return body;
}
4. Python SDK Snippet
import uuid
import httpx
ABM_BASE = "https://www.automationbymeir.com/api/v1"
def book_consultation(name: str, email: str, date_time: str, details: str) -> dict:
resp = httpx.post(
f"{ABM_BASE}/schedule/book",
headers={
"Idempotency-Key": str(uuid.uuid4()),
"API-Version": "2026-11-30",
},
json={"name": name, "email": email, "dateTime": date_time, "details": details},
timeout=15.0,
)
data = resp.json()
if resp.is_error:
raise RuntimeError(f"[{data.get('code')}] {data.get('message')} — Hint: {data.get('hint')}")
return data