@agentc7/core
v0.0.9
Published
Runtime-agnostic broker logic for ac7 — agent registry, push fanout, SSE, event log.
Maintainers
Readme
@agentc7/core
Runtime-agnostic broker logic for ac7, an MCP-based agent control plane.
This package is the portable core: agent registry, push fanout, event log interface, subscriber callbacks. Zero runtime dependencies; no node: imports. Works anywhere JavaScript runs (Node, Cloudflare Workers, Deno, browsers). Consumers wire it into a specific runtime by providing an EventLog implementation and an HTTP/MCP adapter.
Install
npm install @agentc7/core @agentc7/sdkUsage
import { Broker, InMemoryEventLog } from '@agentc7/core';
const broker = new Broker({ eventLog: new InMemoryEventLog() });
await broker.register('test-agent-1');
const unsubscribe = broker.subscribe('test-agent-1', (message) => {
console.log('delivered:', message);
});
await broker.push({
agentId: 'test-agent-1',
body: 'hello from individual contributor',
level: 'info',
});For the full self-hostable broker with HTTP routes, auth, and SQLite persistence, see @agentc7/server.
License
Apache 2.0. See the ac7 monorepo for the full source.
