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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arcade_serve-3.1.4.tar.gz.
File metadata
- Download URL: arcade_serve-3.1.4.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b48e6f1d54fce6c3e9cdc07a54490b895f3a7025fb23766b20e17c87cbc90be
|
|
| MD5 |
cc6d6e22b94ad5a5418eaea5cdc6cb60
|
|
| BLAKE2b-256 |
2b857a713fd5b7b80420561e9def56c15a4df4c89813b3d64edd203055dae9b3
|
Provenance
The following attestation bundles were made for arcade_serve-3.1.4.tar.gz:
Publisher:
release-on-version-change.yml on ArcadeAI/arcade-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arcade_serve-3.1.4.tar.gz -
Subject digest:
9b48e6f1d54fce6c3e9cdc07a54490b895f3a7025fb23766b20e17c87cbc90be - Sigstore transparency entry: 737316418
- Sigstore integration time:
-
Permalink:
ArcadeAI/arcade-mcp@e75eeb7e770a8b885330c79b9a3d41a3fd5bb5a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ArcadeAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-on-version-change.yml@e75eeb7e770a8b885330c79b9a3d41a3fd5bb5a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file arcade_serve-3.1.4-py3-none-any.whl.
File metadata
- Download URL: arcade_serve-3.1.4-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c8a54066f9963487c1aebd93749bcaebb88e0d61ffc74401a0c69610d5f1cb6
|
|
| MD5 |
d1069d9550cfc07a24ae158bc9971142
|
|
| BLAKE2b-256 |
aa83f9a955437ca87c0fbb4d103b3d30ac6d8930f036c0f7258ffa4a4ccc7e97
|
Provenance
The following attestation bundles were made for arcade_serve-3.1.4-py3-none-any.whl:
Publisher:
release-on-version-change.yml on ArcadeAI/arcade-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arcade_serve-3.1.4-py3-none-any.whl -
Subject digest:
1c8a54066f9963487c1aebd93749bcaebb88e0d61ffc74401a0c69610d5f1cb6 - Sigstore transparency entry: 737316421
- Sigstore integration time:
-
Permalink:
ArcadeAI/arcade-mcp@e75eeb7e770a8b885330c79b9a3d41a3fd5bb5a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ArcadeAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-on-version-change.yml@e75eeb7e770a8b885330c79b9a3d41a3fd5bb5a0 -
Trigger Event:
push
-
Statement type: