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

How apcore-surfaces projects your modules
Governed runtime inside your application
apcoreRegistry · Schema validation · ACL · Approval · Trace

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.

How to choose a surface
  • 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 docs
  • MCP

    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 docs
  • A2A

    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 docs
  • CLI

    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.

  1. 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]'
  2. 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,
    )
  3. 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 docs

Detailed capabilities and configuration

Choose a topic

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.