From 417ef26da051d1deedad39a977cabc9284b337f9 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 27 May 2025 04:15:22 +0000 Subject: [PATCH] build: add VS Code server config and enable versioning of settings (#43) - Remove .vscode directory from .gitignore to allow versioning of VS Code settings - Add a VS Code server configuration file with prompts for Gitea host, access token, and insecure connection option - Configure a stdio-based server launch for gitea-mcp with relevant environment variables Signed-off-by: Bo-Yi Wu Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/43 Co-authored-by: Bo-Yi Wu Co-committed-by: Bo-Yi Wu --- .gitignore | 5 +---- .vscode/mcp.json | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 .vscode/mcp.json diff --git a/.gitignore b/.gitignore index e0787ab..cb0a792 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ .idea -.vscode - gitea-mcp gitea-mcp.exe - -*.log \ No newline at end of file +*.log diff --git a/.vscode/mcp.json b/.vscode/mcp.json new file mode 100644 index 0000000..4933598 --- /dev/null +++ b/.vscode/mcp.json @@ -0,0 +1,35 @@ +{ + // 💡 Inputs are prompted on first server start, then stored securely by VS Code. + "inputs": [ + { + "type": "promptString", + "id": "gitea-host", + "description": "Gitea Host", + "password": false + }, + { + "type": "promptString", + "id": "gitea-token", + "description": "Gitea Access Token", + "password": true + }, + { + "type": "promptString", + "id": "gitea-insecure", + "description": "Allow insecure connections (e.g., self-signed certificates)", + "default": "false" + } + ], + "servers": { + "gitea": { + "type": "stdio", + "command": "gitea-mcp", + "args": ["-t", "stdio"], + "env": { + "GITEA_HOST": "${input:gitea-host}", + "GITEA_ACCESS_TOKEN": "${input:gitea-token}", + "GITEA_INSECURE": "${input:gitea-insecure}" + } + } + } +}