mirror of
				https://gitea.com/gitea/gitea-mcp.git
				synced 2025-10-30 01:41:50 +00:00 
			
		
		
		
	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 <appleboy.tw@gmail.com> Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/43 Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +1,4 @@ | |||||||
| .idea | .idea | ||||||
| .vscode |  | ||||||
|  |  | ||||||
| gitea-mcp | gitea-mcp | ||||||
| gitea-mcp.exe | gitea-mcp.exe | ||||||
|  |  | ||||||
| *.log | *.log | ||||||
							
								
								
									
										35
									
								
								.vscode/mcp.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.vscode/mcp.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -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}" | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user