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}" + } + } + } +}