mcpField
L
local-server

local-server

github.com/aiagentwithdhruvCloud & DevOps2041 installsUpdated 15w ago
Repository

About local-server

local-server runs the Claude orchestrator locally and can use a Cloudflare tunnel for external webhook access. It is intended for development and debugging, using local files, credentials, and a `.env` file.

Key features

  1. 01Run a FastAPI server locally
  2. 02Expose directive, webhook-list, and agent-task endpoints
  3. 03Use Cloudflare tunnel for external access
  4. 04Use local files, credentials, and `.env` directly
  5. 05Configure the port, defaulting to 8000

Use cases

  1. 01Iterate on the Claude orchestrator locally
  2. 02Debug webhook-related flows
  3. 03Run directives or general agent tasks locally

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aiagentwithdhruv/skills --skill local-server

After installing, type/local-serverin Claude Code to confirm it loaded.

Details

From the project README

Local Server Execution

Goal

Run the Claude orchestrator locally with Cloudflare tunnel for external webhook access.

Start Server

python3 execution/local_server.py

Starts FastAPI server on port 8000.

Cloudflare Tunnel

For external access (webhooks), use Cloudflare tunnel:

cloudflared tunnel --url http://localhost:8000

Endpoints

Same as Modal deployment:

  • /directive?slug={slug} - Execute directive
  • /list-webhooks - List webhooks
  • /general-agent - General agent tasks

Development Use

  • Faster iteration than Modal deploys
  • Full access to local files and credentials
  • Real-time debugging with print statements

Environment

Uses local .env file directly (unlike Modal which uses secrets).


Schema

Inputs
NameTypeRequiredDescription
portintegerNoServer port (default: 8000)
Outputs
NameTypeDescription
server_urlstringLocal server URL (http://localhost:8000)
tunnel_urlstringCloudflare tunnel URL (if enabled)
Composable With

Skills that chain well with this one: add-webhook

Cost

Free (local execution)

Comments

Markdown supported