From 92010f84ec51e7548e23199cd1592da88f089be5 Mon Sep 17 00:00:00 2001 From: Josh Rogers Date: Tue, 17 Jun 2025 19:22:50 -0400 Subject: [PATCH] Adding disable_mcp field to cli docs (#5132) --- docs/docs/cloud/reference/cli.md | 2 +- libs/cli/langgraph_cli/config.py | 5 +++++ libs/cli/schemas/schema.json | 4 ++++ libs/cli/schemas/schema.v0.json | 4 ++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/docs/cloud/reference/cli.md b/docs/docs/cloud/reference/cli.md index ba927d8c2..1485e9b33 100644 --- a/docs/docs/cloud/reference/cli.md +++ b/docs/docs/cloud/reference/cli.md @@ -52,7 +52,7 @@ The LangGraph CLI requires a JSON configuration file that follows this [schema]( | `pip_config_file` | Path to `pip` config file. | | `dockerfile_lines` | Array of additional lines to add to Dockerfile following the import from parent image. | | `checkpointer` | Configuration for the checkpointer. Contains a `ttl` field which is an object with the following keys: | - | `http` | HTTP server configuration with the following fields: | + | `http` | HTTP server configuration with the following fields: | === "JS" diff --git a/libs/cli/langgraph_cli/config.py b/libs/cli/langgraph_cli/config.py index 737962740..ece457aad 100644 --- a/libs/cli/langgraph_cli/config.py +++ b/libs/cli/langgraph_cli/config.py @@ -330,6 +330,11 @@ class HttpConfig(TypedDict, total=False): disable_store: bool """Optional. If True, /store routes are removed, disabling direct store interactions via HTTP. + Default is False. + """ + disable_mcp: bool + """Optional. If True, /mcp routes are removed, disabling the MCP server. + Default is False. """ disable_meta: bool diff --git a/libs/cli/schemas/schema.json b/libs/cli/schemas/schema.json index b9a737c45..c069f7e9e 100644 --- a/libs/cli/schemas/schema.json +++ b/libs/cli/schemas/schema.json @@ -499,6 +499,10 @@ "type": "boolean", "description": "Optional. If True, /assistants routes are removed from the server.\n\nDefault is False (meaning /assistants is enabled).\n" }, + "disable_mcp": { + "type": "boolean", + "description": "Optional. If True, /mcp routes are removed, disabling the MCP server.\n\nDefault is False.\n" + }, "disable_meta": { "type": "boolean", "description": "Optional. If True, all meta endpoints (/ok, /info, /metrics, /docs) are disabled.\n\nDefault is False.\n" diff --git a/libs/cli/schemas/schema.v0.json b/libs/cli/schemas/schema.v0.json index b9a737c45..c069f7e9e 100644 --- a/libs/cli/schemas/schema.v0.json +++ b/libs/cli/schemas/schema.v0.json @@ -499,6 +499,10 @@ "type": "boolean", "description": "Optional. If True, /assistants routes are removed from the server.\n\nDefault is False (meaning /assistants is enabled).\n" }, + "disable_mcp": { + "type": "boolean", + "description": "Optional. If True, /mcp routes are removed, disabling the MCP server.\n\nDefault is False.\n" + }, "disable_meta": { "type": "boolean", "description": "Optional. If True, all meta endpoints (/ok, /info, /metrics, /docs) are disabled.\n\nDefault is False.\n"