protogrid

Search / io.github.faulkj/legion

legion

L0· runs locally

MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation.

v0.8.0 · active · repository · descriptor JSON · versions

Runs on your machine: something must execute the package.Only local packages are published (npm, PyPI, OCI, …). The registry never executes them, so tools are unknown until you run it.
Quality–not scored
Trust91of 100
Packages1
Tools seen0

Connect

8 clients · secrets stay placeholders
{
  "mcpServers": {
    "legion": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MCP_TRANSPORT": "${MCP_TRANSPORT}",
        "DEFAULT_API_KEY": "${DEFAULT_API_KEY}",
        "ALLOW_NO_MODELS": "${ALLOW_NO_MODELS}",
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "MAX_ROUNDS": "5",
        "DYNAMIC_ROLES": "true",
        "LOG_LEVEL": "info",
        "ASYNC_TOOLS": "false",
        "TRUST_PROXY_AUTH": "false"
      }
    }
  }
}
claude mcp add legion -e "MCP_TRANSPORT=${MCP_TRANSPORT}" -e "DEFAULT_API_KEY=${DEFAULT_API_KEY}" -e "ALLOW_NO_MODELS=${ALLOW_NO_MODELS}" -e "OPENAI_API_KEY=${OPENAI_API_KEY}" -e "MAX_ROUNDS=5" -e "DYNAMIC_ROLES=true" -e "LOG_LEVEL=info" -e "ASYNC_TOOLS=false" -e "TRUST_PROXY_AUTH=false" -- npx -y [email protected]
[mcp_servers.legion]
command = "npx"
args = ["-y", "[email protected]"]
env = { "MCP_TRANSPORT" = "${MCP_TRANSPORT}", "DEFAULT_API_KEY" = "${DEFAULT_API_KEY}", "ALLOW_NO_MODELS" = "${ALLOW_NO_MODELS}", "OPENAI_API_KEY" = "${OPENAI_API_KEY}", "MAX_ROUNDS" = "5", "DYNAMIC_ROLES" = "true", "LOG_LEVEL" = "info", "ASYNC_TOOLS" = "false", "TRUST_PROXY_AUTH" = "false" }
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "legion": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "[email protected]"
      ],
      "enabled": true,
      "environment": {
        "MCP_TRANSPORT": "{env:MCP_TRANSPORT}",
        "DEFAULT_API_KEY": "{env:DEFAULT_API_KEY}",
        "ALLOW_NO_MODELS": "{env:ALLOW_NO_MODELS}",
        "OPENAI_API_KEY": "{env:OPENAI_API_KEY}",
        "MAX_ROUNDS": "5",
        "DYNAMIC_ROLES": "true",
        "LOG_LEVEL": "info",
        "ASYNC_TOOLS": "false",
        "TRUST_PROXY_AUTH": "false"
      }
    }
  }
}
{
  "mcpServers": {
    "legion": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MCP_TRANSPORT": "${MCP_TRANSPORT}",
        "DEFAULT_API_KEY": "${DEFAULT_API_KEY}",
        "ALLOW_NO_MODELS": "${ALLOW_NO_MODELS}",
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "MAX_ROUNDS": "5",
        "DYNAMIC_ROLES": "true",
        "LOG_LEVEL": "info",
        "ASYNC_TOOLS": "false",
        "TRUST_PROXY_AUTH": "false"
      }
    }
  },
  "deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=legion&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImxlZ2lvbi1tY3BAMC44LjAiXSwiZW52Ijp7Ik1DUF9UUkFOU1BPUlQiOiIke01DUF9UUkFOU1BPUlR9IiwiREVGQVVMVF9BUElfS0VZIjoiJHtERUZBVUxUX0FQSV9LRVl9IiwiQUxMT1dfTk9fTU9ERUxTIjoiJHtBTExPV19OT19NT0RFTFN9IiwiT1BFTkFJX0FQSV9LRVkiOiIke09QRU5BSV9BUElfS0VZfSIsIk1BWF9ST1VORFMiOiI1IiwiRFlOQU1JQ19ST0xFUyI6InRydWUiLCJMT0dfTEVWRUwiOiJpbmZvIiwiQVNZTkNfVE9PTFMiOiJmYWxzZSIsIlRSVVNUX1BST1hZX0FVVEgiOiJmYWxzZSJ9fQ%3D%3D"
}
{
  "servers": {
    "legion": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MCP_TRANSPORT": "${MCP_TRANSPORT}",
        "DEFAULT_API_KEY": "${DEFAULT_API_KEY}",
        "ALLOW_NO_MODELS": "${ALLOW_NO_MODELS}",
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "MAX_ROUNDS": "5",
        "DYNAMIC_ROLES": "true",
        "LOG_LEVEL": "info",
        "ASYNC_TOOLS": "false",
        "TRUST_PROXY_AUTH": "false"
      }
    }
  }
}
{
  "mcpServers": {
    "legion": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MCP_TRANSPORT": "${MCP_TRANSPORT}",
        "DEFAULT_API_KEY": "${DEFAULT_API_KEY}",
        "ALLOW_NO_MODELS": "${ALLOW_NO_MODELS}",
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "MAX_ROUNDS": "5",
        "DYNAMIC_ROLES": "true",
        "LOG_LEVEL": "info",
        "ASYNC_TOOLS": "false",
        "TRUST_PROXY_AUTH": "false"
      }
    }
  }
}
extensions:
  "legion":
    enabled: true
    name: "legion"
    type: stdio
    cmd: "npx"
    args:
      - "-y"
      - "[email protected]"
    envs:
      "MCP_TRANSPORT": "${MCP_TRANSPORT}"
      "DEFAULT_API_KEY": "${DEFAULT_API_KEY}"
      "ALLOW_NO_MODELS": "${ALLOW_NO_MODELS}"
      "OPENAI_API_KEY": "${OPENAI_API_KEY}"
      "MAX_ROUNDS": "5"
      "DYNAMIC_ROLES": "true"
      "LOG_LEVEL": "info"
      "ASYNC_TOOLS": "false"
      "TRUST_PROXY_AUTH": "false"
    timeout: 300

Placeholders to fill from your own secret store: ${DEFAULT_API_KEY}, ${OPENAI_API_KEY}. The registry never accepts secret values.

This is a local package: the command runs on your machine.

Quality – / 100not scored

Not scored: fewer than three checks apply, usually because no remote answered a credential-free probe or the server is a local package.

protocoln/a · weight 25
  • n/a
    protocol.modern, protocol.stateless, protocol.transport, protocol.list_ttlno remote answered a protocol handshake (not probed yet, unreachable, or local-only)
authorizationn/a · weight 15
  • n/a
    auth.prm, auth.as_metadata, auth.cimdno remote uses OAuth
  • n/a
    auth.secret_in_urlno templated URL
tool hygienen/a · weight 30
  • n/a
    tools.descriptions, tools.description_length, tools.schemas, tools.annotations, tools.directory_hints, tools.token_cost, tools.api_dumptool list unknown (behind auth, not probed, or empty)
stabilityn/a · weight 15
  • n/a
    stability.changes, stability.rug_pulltool list unknown
dependenciesn/a · weight 15
  • n/a
    deps.known_vulns, deps.mcp_sdk_version, deps.resolvabledeps.dev does not know [email protected]

Tool list unknown · checked 2026-10-20 11:40 UTC

Tool changes

No tool definition changes recorded. A server's first observation is its baseline; later probes record what changes.

Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.

Trust 91 / 100

provenance80
livenessn/a
freshness100
hygiene100

+repository +namespace-matches-repo ~liveness-unmeasured +updated-14d-ago

Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.

Dependencies

[email protected] npmthis version is not known to the dependency resolver

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0. The graph is what a clean install of this version resolves today; nothing was installed or run. How it is checked.

Endpoints

packageregistryversionruntimesecrets
legion-mcpnpm0.8.0–DEFAULT_API_KEY, OPENAI_API_KEY

Tools (0)

No tools observed. Local packages are never executed by the registry.

Schemas: list_tools.

Similar MCP servers

More from io.github.faulkj

Official server.json
{
  "name": "io.github.faulkj/legion",
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "version": "0.8.0",
  "packages": [
    {
      "version": "0.8.0",
      "transport": {
        "type": "stdio"
      },
      "identifier": "legion-mcp",
      "registryType": "npm",
      "environmentVariables": [
        {
          "name": "MCP_TRANSPORT",
          "value": "stdio",
          "format": "string",
          "isRequired": true,
          "description": "Run the installed package over MCP stdio (the binary defaults to HTTP)."
        },
        {
          "name": "DEFAULT_BASE_URL",
          "format": "string",
          "description": "Default OpenAI Responses-compatible API root for model files that omit baseUrl.",
          "placeholder": "https://api.openai.com/v1"
        },
        {
          "name": "DEFAULT_API_KEY",
          "format": "string",
          "isSecret": true,
          "description": "Default provider or gateway key for model files that omit apiKey."
        },
        {
          "name": "ALLOW_NO_MODELS",
          "value": "true",
          "format": "boolean",
          "isRequired": true,
          "description": "Boot without any config/models/*.json. The package ships only key-free examples, which the scanner ignores, so this must stay true until a real model file exists beside the working directory."
        },
        {
          "name": "OPENAI_API_KEY",
          "format": "string",
          "isSecret": true,
          "description": "Optional. A model file's apiKey may be \"env:VAR\" to read the key from an environment variable named VAR at startup; name those variables here as needed. The bundled gpt example reads this one."
        },
        {
          "name": "MAX_ROUNDS",
          "format": "number",
          "default": "5",
          "description": "Maximum discussion rounds accepted by a council run."
        },
        {
          "name": "TOKEN_BUDGET",
          "format": "number",
          "description": "Optional soft cumulative token budget for a council run."
        },
        {
          "name": "DYNAMIC_ROLES",
          "format": "boolean",
          "default": "true",
          "description": "Allow callers to define ad-hoc council roles inline."
        },
        {
          "name": "LOG_LEVEL",
          "format": "string",
          "choices": [
            "debug",
            "info",
            "warn",
            "error"
          ],
          "default": "info",
          "description": "Logging verbosity. Logs are written to stderr for stdio safety."
        },
        {
          "name": "ASYNC_TOOLS",
          "format": "boolean",
          "default": "false",
          "description": "Run councils in the background: council tools return a job handle and poll/cancel tools are exposed. Jobs live in process memory only."
        },
        {
          "name": "TRUST_PROXY_AUTH",
          "format": "boolean",
          "default": "false",
          "description": "Bind async jobs to the caller named by X-MS-CLIENT-PRINCIPAL-* headers. Only safe behind an ingress that strips client-supplied copies."
        }
      ]
    }
  ],
  "repository": {
    "url": "https://github.com/faulkj/legion-mcp",
    "source": "github"
  },
  "description": "MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation."
}