dev-mcps/mcp-stack.Caddyfile

51 lines
968 B
Plaintext

{
auto_https off
admin off
}
# One host, one path per server. This is the shape the catalog in the workflow manager expects -
# ${{host}}/coding-agent/mcp and its siblings - so a flow configured against a remote deployment
# runs against this stack by changing the host and nothing else.
:3100 {
handle_path /coding-agent/* {
reverse_proxy coding-agent-mcp:3000 {
flush_interval -1
}
}
handle_path /dev-server/* {
reverse_proxy dev-server-mcp:3000 {
flush_interval -1
}
}
handle_path /browser/* {
reverse_proxy browser-mcp:3000 {
flush_interval -1
}
}
handle {
respond "No MCP server is published at this path" 404
}
}
# The original one-port-per-server listeners, kept for clients configured before the paths existed.
:3101 {
reverse_proxy coding-agent-mcp:3000 {
flush_interval -1
}
}
:3102 {
reverse_proxy dev-server-mcp:3000 {
flush_interval -1
}
}
:3103 {
reverse_proxy browser-mcp:3000 {
flush_interval -1
}
}