From 98f908d5a16b2bc6e79e927a16686acf8c1b24c3 Mon Sep 17 00:00:00 2001 From: johan Date: Fri, 17 Oct 2025 23:18:20 +0000 Subject: [PATCH] Resolve ERROR - Invalid configuration: Server 'gitea' 'args' must be a list (#101) If you assume the template is correctly formatted, you will get this error during startup: Starting MCP OpenAPI Proxy with config file: /app/config.json 2025-10-17 19:03:07,288 - INFO - CORS Allowed Origins: ['*'] 2025-10-17 19:03:07,288 - INFO - Path Prefix: / 2025-10-17 19:03:07,289 - INFO - Root Path: 2025-10-17 19:03:07,289 - INFO - Loading MCP server configurations from: /app/config.json 2025-10-17 19:03:07,289 - ERROR - Invalid configuration: Server 'gitea' 'args' must be a list Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/101 Reviewed-by: Lunny Xiao Co-authored-by: johan Co-committed-by: johan --- config.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.json b/config.json index da71873..61cde97 100644 --- a/config.json +++ b/config.json @@ -2,11 +2,11 @@ "mcpServers": { "gitea": { "command": "gitea-mcp", - "args": { - "-t": "stdio", - "--host": "https://gitea.com", - "--token": "" - }, + "args": [ + "-t", "stdio", + "--host", "https://gitea.com", + "--token", "" + ] "env": { "GITEA_HOST": "https://gitea.com", "GITEA_ACCESS_TOKEN": ""