apcore¶
Define once. Govern every call.
An embeddable microframework for application capabilities that agents and code can call.
Define a capability with a description, input and output schemas, and behavioral annotations. The protocol-neutral runtime applies identity, ACL, approval, validation, middleware, execution, structured errors, and trace context when a call goes through apcore. Call the same capability directly from code or expose it through independently versioned MCP, A2A, CLI, or HTTP adapters.
A schema makes a capability contract machine-readable and validatable. It does not guarantee that a model will choose the right tool or recover from an error on its own.
Start Here¶
- Getting Started — install an SDK and define your first module
- Core Concepts — modules, registry, executor, context, schemas, ACL
- Architecture — how the runtime components fit together
- Positioning — the problem boundary and the relationship to MCP and A2A
- Glossary — terminology in one page
Current Versions¶
| Component | Package | Stable | In development |
|---|---|---|---|
| Protocol specification | protocol-spec.md | 1.66.0 |
2.0.0 (draft revision 5) |
| Python SDK | apcore |
0.33.0 |
0.34.0 |
| TypeScript SDK | apcore-js |
0.33.0 |
0.34.0 |
| Rust SDK | apcore |
0.33.0 |
0.34.0 |
The protocol 2.0.0 draft defines the contract for the SDK 0.34.0 release. Surface adapters (apcore-mcp, apcore-a2a, apcore-cli, apcore-toolkit) are versioned independently and declare the core range they support in their package metadata.
Documentation¶
- Guides — task-oriented tutorials and cookbooks
- Features — one reference page per runtime subsystem
- Specification — the normative protocol, conformance, type mapping, and decision records
- Troubleshooting — common failures and their fixes
Adoption Path¶
- Choose one existing application operation.
- Define its schemas and behavioral annotations.
- Verify the allowed, denied, approval-required, invalid-input, failed, and successful paths.
- Add the one surface adapter your caller needs.
- Inspect the structured execution evidence (traces, errors, events).
Surface Adapters¶
apcore-mcpprojects modules as MCP toolsapcore-a2aprojects modules as A2A skills and Agent Card metadataapcore-climaps modules to commands and arguments- framework integrations (
fastapi-apcore,django-apcore,flask-apcore,nestjs-apcore,express-apcore,hono-apcore,axum-apcore) bind HTTP endpoints to modules
Use a protocol SDK directly when a protocol server is all you need. Use apcore when validation, access, approval, and audit semantics must stay consistent across callers or surfaces.
Project¶
Scope · Roadmap · Adopters · Changelog · Governance