Skip to main content

Arcade Serve - Serving infrastructure for Arcade tools and workers

Project description

Arcade Serve

Serving infrastructure for Arcade tools and workers.

Overview

Arcade Serve provides the infrastructure for serving Arcade tools:

  • FastAPI Worker: High-performance FastAPI-based worker implementation
  • MCP Server: Model Context Protocol server for tool integration
  • Core Abstractions: Base worker classes and components
  • Authentication: Auth utilities and routing
  • Runtime Management: Tool execution and lifecycle management

Installation

pip install arcade-serve

Usage

To add a toolkit to a hosted worker such as FastAPI, you can register them in the worker itself. This allows you to explicitly define which tools should be included on a particular worker.

Here is an example of adding the math toolkit (pip install arcade-math) to a FastAPI Worker:

import arcade_math
from fastapi import FastAPI
from arcade_tdk import Toolkit
from arcade_serve.fastapi import FastAPIWorker

app = FastAPI()

worker_secret = os.environ.get("ARCADE_WORKER_SECRET")
worker = FastAPIWorker(app, secret=worker_secret)

worker.register_toolkit(Toolkit.from_module(arcade_math))

Here is an example of adding the math toolkit (pip install arcade-math) to a MCP Worker

import arcade_math
from arcade_core.catalog import ToolCatalog
from arcade_serve.mcp.stdio import StdioServer

# 1. Create and populate the tool catalog
catalog = ToolCatalog()
catalog.add_module(arcade_math)


# 2. Main entrypoint
async def main():
    # Create the worker with the tool catalog
    worker = StdioServer(catalog)

    # Run the worker
    await worker.run()


if __name__ == "__main__":
    import asyncio

    asyncio.run(main())

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcade_serve-2.2.0rc1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcade_serve-2.2.0rc1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file arcade_serve-2.2.0rc1.tar.gz.

File metadata

  • Download URL: arcade_serve-2.2.0rc1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arcade_serve-2.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 511368b73daa616117a00a16bdf37941f10debde50f10705935ce98b9efd2656
MD5 aa533ca3899241d42bf772d05ee4a9db
BLAKE2b-256 faf5cee3d3aaba0d57dbb21068d83168f2516f4a3f05787c628b2848c3757b3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for arcade_serve-2.2.0rc1.tar.gz:

Publisher: release-on-version-change.yml on ArcadeAI/arcade-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arcade_serve-2.2.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for arcade_serve-2.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 495b2e694e161ba5733a932cb517886dcdfe6847d6577b04b7092fb3c1f8761f
MD5 ca3c83bdb1221b4aa2b00495e666eb8c
BLAKE2b-256 55fbc5dbb1840f006f71fd57fee11aa9170ad19adcbe40135c2ade04e44606e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for arcade_serve-2.2.0rc1-py3-none-any.whl:

Publisher: release-on-version-change.yml on ArcadeAI/arcade-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page