Add configurable HTTP host support and worker provider presets#32
Open
hotwa wants to merge 8 commits intoMartian-Engineering:mainfrom
Open
Add configurable HTTP host support and worker provider presets#32hotwa wants to merge 8 commits intoMartian-Engineering:mainfrom
hotwa wants to merge 8 commits intoMartian-Engineering:mainfrom
Conversation
added 8 commits
March 8, 2026 17:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds two small but useful capabilities for running
manipleas a persistent MCP service and for integrating Claude-compatible provider wrappers without hard-coding local secrets intothe repository.
1. Configurable HTTP host and host allowlist
maniplecan now run streamable HTTP on a configurable bind address instead of always using127.0.0.1.Added CLI options:
--host--allow-host--allow-origin--disable-dns-rebinding-protectionThis makes it possible to run the MCP server on a LAN/Tailscale address while still keeping FastMCP host/origin protection configurable.
2. Worker provider presets and per-worker command/env overrides
Workers can now be launched with either:
providerpreset from~/.maniple/config.json, orcommand/envoverridesThis keeps the core orchestration logic generic while allowing users to plug in local Claude-compatible wrappers.
The repo also adds a small example wrapper script:
scripts/claude-maniple-switchThe documented pattern is:
~/.maniple/config.json~/.maniple/.env~/bin/claude-maniple-switchThis avoids baking user-specific
.envpaths, credentials, or provider naming conventions into the repository.Why
I wanted a minimal approach that:
manipleto any one local provider management setupImplementation Notes
spawn_workersresolves named provider presets from config.providercannot be mixed with directcommand/envoverrides on the same worker.--settingswhen appropriate so stop-hook based idle detection continues to work.~/.maniple/.envafter sourcing the local provider switch script, so maniple-specific credentials can override shell defaultscleanly.
Tests
Added/updated tests for:
spawn_workersprovider resolution and validation.maniple/.envloadingTest command used: