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-3.2.4.tar.gz (11.2 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-3.2.4-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file arcade_serve-3.2.4.tar.gz.

File metadata

  • Download URL: arcade_serve-3.2.4.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arcade_serve-3.2.4.tar.gz
Algorithm Hash digest
SHA256 d45788d201678b63af55b5f7798770648089c7b56d27119ec3a3d934866af602
MD5 3d804d42dc6d6c1791c1c218a71f1556
BLAKE2b-256 1a1f7bbc9420e4ddbd25c7ed68c475db8392a2570da4560f88ae2fdb96d0c0f7

See more details on using hashes here.

Provenance

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

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

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-3.2.4-py3-none-any.whl.

File metadata

  • Download URL: arcade_serve-3.2.4-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arcade_serve-3.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4508658b5ec71bd36a56dcfa01ef4c110369f59adef3c2e01d5202e6bd90c804
MD5 09d81721ae131d358132c1129f6b0b9a
BLAKE2b-256 f40b30b22241c6e3f2334132be025de8a3ec4db3df05c5d6f117a06f83c2066a

See more details on using hashes here.

Provenance

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

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

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