Skip to content

Commit eab7cbe

Browse files
committed
refactor: increase JSON body size limit to 50mb for MCP server
1 parent 3909c94 commit eab7cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mcp-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function startMcpServer() {
104104
const mcpBridge = new GcliMcpBridge(config, cliVersion, debugMode);
105105

106106
const app = express();
107-
app.use(express.json());
107+
app.use(express.json({ limit: '50mb' }));
108108

109109
// 启动 MCP 服务 (这是 GcliMcpBridge 的一部分,我们需要把它集成到主 app 中)
110110
await mcpBridge.start(app); // 修改 start 方法以接收 express app 实例

0 commit comments

Comments
 (0)