apcore-surfaces
One capability contract.
Every caller surface.
Toolkit, MCP, A2A, and CLI integrations for the apcore runtime ship together as apcore-surfaces. Install one package per language across Python, TypeScript, and Rust, then project governed capabilities to AI clients, other agents, and terminals.
Python · TypeScript · Rust
Four surfaces in one unified SDK
Enable only the extras, subpaths, or Cargo features your application needs. Every surface routes execution back through your configured apcore executor.
Toolkit
Scans routes and OpenAPI specifications into portable ScannedModule values, then writes, registers, or formats them.
- OpenAPI 3.0 / 3.1 scanner and schema extraction
- Display overlays, binding loaders, and surface formatters
apcore_surfaces.toolkitSurface docsMCP
Serves apcore modules as Model Context Protocol tools and OpenAI function definitions over stdio or Streamable HTTP.
- Schema & annotation mapping with Explorer UI
- JWT authentication, ACL bridge, and approval handling
apcore_surfaces.mcpSurface docsA2A
Exposes apcore capabilities as an A2A 1.0 agent with generated Agent Cards, skills, task streaming, and webhooks.
- Automatic Agent Card and skill projection
- Task streaming, push notifications, and A2A Explorer
apcore_surfaces.a2aSurface docsCLI
Projects apcore modules into typed command-line subcommands with schema-derived flags, approval gates, and exit codes.
- Grouped subcommands, stdin input, and TTY-aware output
- Shell completion, ACL governance, and OpenAPI import
apcore_surfaces.cliSurface docs
Install once, enable the surfaces you need
Choose Python, TypeScript, or Rust. Install the unified apcore-surfaces package with optional extras or Cargo features.
Install apcore-surfaces
Add the unified SDK package and select the surface extras or features your project requires.
Python pip install 'apcore-surfaces[mcp,a2a,cli]'Mount a surface on your executor
Pass your configured apcore executor so validation, access rules, and approvals run on every call.
serve_surfaces.py from apcore_surfaces.mcp import APCoreMCP from your_app import client mcp = APCoreMCP(client.executor, name="my-app") mcp.serve( transport="streamable-http", host="127.0.0.1", port=8765, explorer=True, )Inspect or invoke from the terminal
Run the bundled apcore-cli command to explore registered modules and invoke capabilities.
CLI apcore-cli --help
Documentation
Browse all docsInstall and first run
Set up apcore-surfaces in Python, TypeScript, or Rust and verify your first capability call.
How APCore Surfaces works
Understand the shared execution boundary, scanner pipeline, and surface projections.
Choose your surface
Decide when to expose capabilities through Toolkit, MCP, A2A, CLI, or a combination.
Upgrade to the unified SDK
Map legacy apcore-mcp, apcore-a2a, apcore-cli, and apcore-toolkit imports to apcore-surfaces.
Detailed capabilities and configuration
One package per language
Python uses optional extras ([mcp,a2a,cli,openapi]), TypeScript provides clean subpath exports (apcore-surfaces/{toolkit,mcp,a2a,cli} plus toolkit/browser), and Rust uses Cargo features so you only compile what you enable.