| description | apcore is an embeddable microframework for application capabilities that agents and code can call. |
|---|
APStack Ecosystem · Python · TypeScript · Rust{ .apcore-hero__eyebrow }
Define once. Govern every call. {: .apcore-hero__tagline }
An embeddable microframework for application capabilities that agents and code can call. MCP tells an agent what it can call. apcore decides whether this call — with these arguments, by this identity — should run at all, and leaves evidence that it did. {: .apcore-hero__lead }
Get Started{ .md-button .md-button--primary } Why apcore?{ .md-button } APCore Surfaces ↗{ .md-button } {: .apcore-hero__actions }
If you are evaluating apcore or integrating your first capability, follow these pages in order:
-
:material-compass-outline:{ .lg .middle } 1. Why apcore? (Positioning)
The problem apcore solves, where it sits in your stack, and when to use it vs. a protocol SDK directly.
-
:material-rocket-launch-outline:{ .lg .middle } 2. Getting Started
Install an SDK and run your first governed module with schema validation and destructive-action approval in 5 minutes.
-
:material-cube-outline:{ .lg .middle } 3. Core Concepts
Modules, schemas, behavioral annotations, context, ACL, and the 11-step execution pipeline.
-
:material-book-alphabet:{ .lg .middle } 4. Glossary
Every apcore term and contract concept defined concisely on a single page.
Jump directly to task guides, subsystem references, or the normative specification:
-
:material-book-open-page-variant-outline:{ .lg .middle } Guides & Cookbooks
Creating modules, schema design, ACL setup, approval flows, streaming, testing, and integrating existing projects.
-
:material-sitemap-outline:{ .lg .middle } Architecture
Technical layers, system invariants, and the ordered 11-step execution pipeline.
-
:material-cogs:{ .lg .middle } Feature Reference
API and behavior reference for every runtime subsystem across Python, TypeScript, and Rust.
-
:material-file-document-check-outline:{ .lg .middle } Protocol Specification
Normative RFC 2119 spec, conformance fixtures, type mapping, algorithms, and decision records.
-
:material-wrench-outline:{ .lg .middle } Troubleshooting
Common integration pitfalls and structured error-code lookup.
-
:material-headset:{ .lg .middle } Customer support copilots
Look up orders and require explicit approval before executing destructive actions like refunds.
-
:material-server-security:{ .lg .middle } Existing backends
Expose selected operations to agents while sharing validation and approval policy with HTTP and CLI callers through the same Executor.
-
:material-graph-outline:{ .lg .middle } Internal automation
Apply default-deny access rules and trace nested calls across modules with end-to-end context propagation.
-
:material-translate:{ .lg .middle } Multi-language services
Share module IDs, JSON Schema contracts, and structured errors across Python, TypeScript, and Rust.
ACL checks run when the Executor has an attached ACL and its strategy includes acl_check. Use default_effect: deny as the fallback for unmatched calls in the ACL ruleset.
In the three-language Getting Started walkthrough, a refund is blocked until an approval handler is configured. The example then runs a valid call and shows how schema validation rejects a zero-cent refund.
apcore defines and governs the capability; independently versioned adapters in APCore Surfaces project registered modules onto external surfaces:
-
:material-connection:{ .lg .middle }
apcore-mcp
Expose registered modules as MCP tools with identical schema and governance semantics.
-
:material-robot-outline:{ .lg .middle }
apcore-a2a
Project modules as A2A skills and Agent Card metadata for agent-to-agent interoperability.
-
:material-console-line:{ .lg .middle }
apcore-cli
Map modules directly to command-line commands, options, and structured output.
-
:material-api:{ .lg .middle } Framework integrations
Bind HTTP endpoints to modules via
fastapi-apcore,django-apcore,flask-apcore,nestjs-apcore,express-apcore,hono-apcore, andaxum-apcore.
Use a protocol SDK directly when a single protocol surface is all you need. Use apcore when validation, access, approval, and audit semantics must stay consistent across callers or surfaces.
| Component | Package | Stable | In development |
|---|---|---|---|
| Protocol specification | — | 1.66.0 |
2.0.0 draft revision 5 |
| Python SDK | apcore |
0.34.0 |
0.34.1 |
| TypeScript SDK | apcore-js |
0.34.0 |
0.34.1 |
| Rust SDK | apcore |
0.34.0 |
0.34.1 |
The Core SDKs in the 0.34.x line implement the protocol 2.0.0 draft. Surface adapters (apcore-mcp, apcore-a2a, apcore-cli, apcore-toolkit) are versioned independently and declare the core range they support in their package metadata.
APStack Website · APCore Surfaces · Scope · Roadmap · Adopters · Changelog · Governance