Embeddable Runtime, SDK & Sidecar Architecture¶
Agent-Marketer (v0.16.0+) is the framework/runtime layer that equips compatible coding-agent hosts with marketing skills and operations. It can also be embedded into Python services, web applications, desktop clients, and MCP-compatible orchestrators. The host still owns general agent orchestration and lifecycle.
Integration Surfaces¶
| Surface | Transport / API | Best For |
|---|---|---|
| Python SDK | agent_marketer.MarketingRuntime |
Direct embedding inside Python services and orchestrators |
| Headless HTTP Sidecar | agent-marketer serve --mode http |
Any web backend (PHP, Node.js, Go) or Desktop app (Electron, Wails) |
| MCP Server | agent-marketer serve --mode mcp |
Claude, Antigravity, and any MCP client consuming tools + skill:// resources |
| Unified CLI | agent-marketer <group> <action> |
CI pipelines, shell scripts, and deterministic SKILL.md tool dispatch |
For Codex setup, exposed tool behavior, and troubleshooting, see Codex Integration.
First-Run Onboarding & Diagnostics¶
Check environment readiness (Python version, optional extras, .env, skills, and SQLite DB) before running workflows:
Quick Start: Python SDK¶
from agent_marketer import MarketingRuntime
runtime = MarketingRuntime.from_path("./workspace_data", mode="read_only")
# Discover skills and resolve user intent
matches = runtime.skills.resolve_intent("audit landing page schema and meta tags")
# Run SSRF-safe HTML/URL SEO preflight
audit = runtime.seo.audit_html_text("<html><head><title>Example</title></head><body><h1>Hi</h1></body></html>")
# Render QAHERA-PRINT-001 deliverable
report = runtime.reports.render_qahera_html(
title="Weekly Growth Audit",
lang="en",
output_filename="weekly_audit.html",
)
Headless Sidecar & OpenAPI Contract¶
Start an isolated local HTTP sidecar bound to 127.0.0.1 with optional Bearer authentication and --port 0 ephemeral port discovery:
Export the OpenAPI 3.1 schema to generate typed clients for TypeScript, PHP, Go, or Rust:
All endpoints return a consistent JSON envelope:
The local MCP tools also return this envelope. Their descriptions state whether they read workspace data or write a local report. External ad account mutations are not performed by this local server; connect a separately approved ads MCP and follow approval gates. The safety_validate_command tool is advisory and is not a replacement for the host's execution sandbox.