arcade-mcp/libs/arcade-serve
Eric Gustin 7ac6147733
Change versions (#428)
Temporarily changing core, tdk, and serve versions to 1.0.0 so that my
workflow will detect a change to the pyproject.toml version later
2025-06-12 15:38:23 -07:00
..
arcade_serve 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
pyproject.toml Change versions (#428) 2025-06-12 15:38:23 -07:00
README.md 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00

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

FastAPI Worker

from arcade_serve import FastAPIWorker

# Create a FastAPI worker
worker = FastAPIWorker()

# Add tools to the worker
worker.add_toolkit("path/to/toolkit")

# Start the server
worker.start(host="0.0.0.0", port=8000)

MCP Server

from arcade_serve import StdioServer

# Create an MCP server
server = StdioServer()

# Add tools
server.add_toolkit("path/to/toolkit")

# Start the server
server.run()

Custom Worker

from arcade_serve import BaseWorker, WorkerComponent

class MyWorker(BaseWorker):
    def __init__(self):
        super().__init__()
        self.add_component(MyCustomComponent())

    async def handle_request(self, request):
        # Custom request handling
        return await super().handle_request(request)

License

MIT License - see LICENSE file for details.