Observed since 21 Oct, 09:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agyqueue
A pluggable, non-blocking asynchronous task queue and MCP server for AI Agents
AgyQueue is a lightweight, non-blocking asynchronous task execution framework built for AI agents. It allows agents to offload long-running operations—such as code generation, compilation, testing, and validation—to background workers while keeping client conversation threads responsive.
task_id, returning execution control back to the user chat session.WorkflowExecutionStarted, WorkflowTaskScheduled), and aggregated markdown reports.ThreadedConnectionPool for PostgreSQL backend tasks, preventing socket exhaust under high concurrent query volumes.SIGTERM / SIGINT signals, allowing workers to finish their active task run cleanly before eviction.AgyQueue supports both hybrid cloud-agnostic execution flows and fully-managed Google Cloud configurations:
When migrating from local development/fallback to production cloud scaling, AgyQueue integrates natively with Google Cloud managed services:
| Component | Dev Fallback | Production GCP Service |
|---|---|---|
| Agent Reasoning Core | Local LLM | Vertex AI Gemini API (Gemini 2.5 Flash / Pro) |
| API Server Compute | Local Python Process | Google Cloud Run (Event-driven serverless container) |
| Worker Node Compute | Local Daemon Process | Google Kubernetes Engine (GKE) or Cloud Run Jobs |
| Task Message Broker | SQLite (FIFO Table) | Google Cloud Pub/Sub or Cloud Memorystore for Redis |
| Persistent Task Store | SQLite Database | Google Cloud SQL for PostgreSQL or Cloud Spanner |
| Workspace Repos | Local Directory | Google Cloud Storage (GCS) Buckets |
| Traffic Router | Direct Port Binding | Google Cloud Load Balancing (HTTPS Layer 7 Router) |
You can install AgyQueue locally in editable mode for development and testing:
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env
Once published, users can install AgyQueue directly from PyPI:
pip install agyqueue
Spins up a local server, enqueues an SRE compliance check and FastAPI code generator workflow, executes it in isolated directories, and outputs the final report:
python examples/demo.py
Start the standalone SSE server and background worker:
# Terminal 1: Start Server
export AGYQUEUE_TRANSPORT=sse
python -m agyqueue.mcp_server
# Terminal 2: Start Worker
python -m agyqueue.worker
Navigate to http://localhost:8000/dashboard to submit runs, inspect progress, and view timeline event history logs.
The examples/ folder contains detailed client scripts for every connection method:
google.antigravity agent.google.adk.agents framework.AgyQueueClient Python client.The Google ADK allows Python-defined agents to be deployed to Agent Engine (Vertex AI Reasoning Engine). Import and register AgyQueue's functional tools directly:
from google.adk.agents import Agent
from agyqueue.client import submit_async_task, check_task_progress, get_task_output, cancel_running_task
# Define the coordinator agent
orchestrator_agent = Agent(
name="deployment_coordinator",
model="gemini-3.5-flash",
instruction=(
"You coordinate SRE compliance checks and API code generation workloads. "
"Use submit_async_task to spawn background jobs. Do not wait for jobs in a loop. "
"Return the task_id to the user/orchestrator so that progress can be tracked asynchronously."
),
tools=[
submit_async_task,
check_task_progress,
get_task_output,
cancel_running_task
]
)
To register AgyQueue with your Google Cloud Agent Registry as an MCP server, run the following:
agents-cli publish gemini-enterprise \
--name "agyqueue" \
--description "A pluggable, non-blocking asynchronous task queue and MCP server for AI Agents." \
--url "https://<your-agyqueue-server-url>/sse" \
--type "mcp"
For the Gemini CLI / Antigravity CLI (agy), you can install this repository directly as a fully compatible local/remote extension by running:
agy plugin install .agents
(The repository is configured as a native Gemini extension via gemini-extension.json and .agents/ metadata).
To make it incredibly easy for anyone cloning or using this repository, we have provided pre-configured JSON snippets and integration files for all major AI-based development platforms inside the mcp-configs/ directory.
mcp-configs/claude_code_config.json to your ~/.config/claude-code/mcp.json.mcp-configs/claude_desktop_config.json to your claude_desktop_config.json.mcp-configs/cursor_config.json.mcp-configs/windsurf_config.json to your ~/.codeium/windsurf/mcp_config.json.mcp-configs/copilot_config.json to your cline_mcp_settings.json or Copilot MCP configuration.Add the following to your claude_desktop_config.json (located in ~/Library/Application Support/Claude/ on macOS):
{
"mcpServers": {
"agyqueue": {
"command": "python",
"args": ["-m", "agyqueue.mcp_server"],
"env": {
"PYTHONPATH": "/absolute/path/to/your/agyqueue/repo",
"AGYQUEUE_TRANSPORT": "stdio",
"AGYQUEUE_DB_PATH": "/absolute/path/to/your/agyqueue/repo/agyqueue.db"
}
}
}
}
To configure AgyQueue as an MCP server inside your global Gemini/Antigravity CLI settings (located at ~/.gemini/GEMINI.md or user preferences), append the server config under the "mcpServers" dictionary:
{
"mcpServers": {
"agyqueue": {
"command": "python",
"args": ["-m", "agyqueue.mcp_server"],
"env": {
"PYTHONPATH": "/absolute/path/to/your/agyqueue/repo",
"AGYQUEUE_TRANSPORT": "stdio",
"AGYQUEUE_DB_PATH": "/absolute/path/to/your/agyqueue/repo/agyqueue.db"
}
}
}
}
{
"mcpServers": {
"agyqueue": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/client-sse",
"https://<your-agyqueue-server-url>/sse"
]
}
}
}
AgyQueuecommandPYTHONPATH=. .venv/bin/python -m agyqueue.mcp_server (relative to your repo path).Append the AgyQueue stdio server configuration to your MCP settings file:
{
"mcpServers": {
"agyqueue": {
"command": "python",
"args": ["-m", "agyqueue.mcp_server"],
"env": {
"PYTHONPATH": "/absolute/path/to/your/agyqueue/repo",
"AGYQUEUE_TRANSPORT": "stdio",
"AGYQUEUE_DB_PATH": "/absolute/path/to/your/agyqueue/repo/agyqueue.db"
}
}
}
}
Add AgyQueue as a local tool under the "mcpServers" dictionary in ~/.config/claude-code/mcp.json using the SSE endpoint:
{
"mcpServers": {
"agyqueue": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/client-sse",
"https://<your-agyqueue-server-url>/sse"
]
}
}
}
AgyQueue natively supports parent-child task aggregation. When an orchestrator agent splits a large request into parallel child workloads, it submits the subtasks with a parent_id parameter:
WAITING.git_worktree or copy-on-write temp folders) in parallel.COMPLETED.To run the complete system with Redis queues and PostgreSQL stores:
docker compose up --build
python examples/mcp_sse_client.py
For Google Cloud production environments, configuration templates are located in deployment/:
pip install --upgrade build twine
python -m build
Run twine to securely publish to PyPI under your profile:
python -m twine upload dist/*
Once uploaded, anyone can install and run the AgyQueue CLI globally:
pip install agyqueue
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
mcpEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | mcp>=1.0.0 | runtime |
redisEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | redis>=5.0.0 | runtime |
starletteEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | starlette>=0.30.0 | runtime |
uvicornEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | uvicorn>=0.20.0 | runtime |
psycopg2-binaryEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | psycopg2-binary>=2.9.0 | runtime |
google-cloud-storageEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | google-cloud-storage>=2.14.0 | runtime |
bdist_wheel · 48.74 KB · Python py3
sdist · 50.08 KB · Python source
Observed since 21 Oct, 09:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:77867ef0756e18a8a6da9fc567f63154128552bdf8d88c995951e67ec8b98079