apstack/apcore
حول
A schema-enforced module framework where every interface is inherently perceivable by AI.
أدوات التطويرالنمو المقاس للنجوم
- خلال 24 ساعة
- +٦
- خلال 7 أيام
- +٦
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلapcore — AI-Perceivable Core
Define once. Govern every call.
An embeddable microframework for application capabilities that agents and code can call.
Documentation · Why apcore? · Getting Started · Protocol Specification
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.
Where apcore Fits (Use Cases)
Use apcore when agents, APIs, and CLIs need to invoke the same application operations with shared validation and governance. Explore the use cases.
Application code and framework endpoints
│
▼
┌───────────────────────────────────────────────┐
│ apcore capability definition and runtime │
│ │
│ schema · annotations · identity · ACL │
│ approval · middleware · execution · audit │
└───────────────────────────────────────────────┘
│
▼
┌──────────┬──────────┬──────────┬──────────────┐
│ MCP │ A2A │ CLI │ HTTP / code │
│ adapter │ adapter │ adapter │ integrations │
└──────────┴──────────┴──────────┴──────────────┘
What It Looks Like
Run the governed module walkthrough in Python, TypeScript, or Rust.
Install
This repository contains the protocol specification, JSON Schemas, cross-language conformance fixtures, and three independently published SDKs (current versions live on the documentation home):
| Language | Install | Source |
|---|---|---|
| Python | pip install apcore |
Python SDK |
| TypeScript | npm install apcore-js |
TypeScript SDK |
| Rust | cargo add apcore |
Rust SDK |
What apcore Enforces
| Pillar | What it does | Learn more |
|---|---|---|
| Machine-readable contracts | Every module declares a description, input_schema, and output_schema (JSON Schema Draft 2020-12), checked by the standard strategy before execution and before after-middleware runs. |
Schema System · Module Interface |
| Runtime governance | Behavioral flags, configured ACL rules, approval gates, and call-depth and cycle guards. | ACL System · Approval System · Security Setup |
| Reuse across surfaces | Call modules directly from code or project them via independently versioned adapters (apcore-mcp, apcore-a2a, apcore-cli) and HTTP framework integrations (fastapi-apcore, django-apcore, flask-apcore, nestjs-apcore, express-apcore, hono-apcore, axum-apcore). |
apcore-surfaces · Adapter Development |
| Evidence & recovery | W3C trace propagation, metrics, x-sensitive redaction, audit trails, onion middleware, and structured errors with retryable and ai_guidance. |
Observability · Error System · Execution Pipeline |
When to use apcore — and when not to
- Skip apcore if you only need a single standalone MCP server or script with no shared permission, approval, or audit rules — use the protocol SDK directly.
- Use apcore when the same application capability is called from multiple places (code, HTTP, CLI, MCP, A2A) and validation, ACL, approval, and audit behavior must stay identical everywhere.
See Positioning for a detailed comparison with MCP/A2A and an incremental adoption path.
Documentation
| New to apcore? | Building with apcore | Reference & specification |
|---|---|---|
| Why apcore? — problem, diagram, vs MCP/A2A | Guides & Cookbooks — modules, schemas, ACL, approval flows, existing projects | Feature Reference — one page per runtime subsystem |
| Getting Started — 5-minute governed walkthrough | Troubleshooting — FAQ and error-code fixes | Architecture — layers, invariants, and the 11-step pipeline |
| Core Concepts — mental model of the framework | Protocol Specification — normative spec, conformance, decisions | |
| Glossary — key terms on one page | CHANGELOG |
Project documents: Scope · Roadmap · Adopters · Governance · Maintainers · Security · Code of Conduct
Contributing
Questions and ideas go to GitHub Discussions. Specification feedback, new SDKs, adapters, and documentation fixes are welcome — read CONTRIBUTING.md first. Never report a vulnerability in a public issue; follow SECURITY.md.
License
Apache 2.0
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…