distributed

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: Apache-2.0, CC-BY-4.0, MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

The distributed command is an example of a distributed MCP server.

It forks multiple child processes (according to the -child_ports flag), each of which is a streamable HTTP MCP server with the 'inc' tool, and proxies incoming http requests to them.

Distributed MCP servers must be stateless, because there's no guarantee that subsequent requests for a session land on the same backend. However, they may still have logical session IDs, as can be seen with verbose logging (-v).

Example:

./distributed -http=localhost:8080 -child_ports=8081,8082

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL