diff --git a/.cursor/mcp.json.example b/.cursor/mcp.json.example new file mode 100644 index 0000000..61e860b --- /dev/null +++ b/.cursor/mcp.json.example @@ -0,0 +1,34 @@ +{ + "mcpServers": { + "gitea-developer": { + "command": "/absolute/path/to/gitea-mcp", + "args": [ + "-t", "stdio", + "--host", "https://your-gitea.com", + "--tools", "get_my_user_info,list_my_repos,search_repos,create_branch,list_branches,get_repository_tree,get_file_content,get_dir_content,create_file,update_file,list_repo_commits,get_commit,create_pull_request,create_pull_request_reviewer,get_pull_request_by_index,list_repo_pull_requests,list_repo_issues,get_issue_by_index,search_users" + ], + "env": { + "GITEA_ACCESS_TOKEN": "", + "GIT_AUTHOR_NAME": "", + "GIT_AUTHOR_EMAIL": "", + "GIT_COMMITTER_NAME": "", + "GIT_COMMITTER_EMAIL": "" + } + }, + "gitea-reviewer": { + "command": "/absolute/path/to/gitea-mcp", + "args": [ + "-t", "stdio", + "--host", "https://your-gitea.com", + "--tools", "get_my_user_info,get_file_content,get_dir_content,get_repository_tree,list_repo_issues,get_issue_by_index,create_issue_comment,get_pull_request_by_index,get_pull_request_diff,list_repo_pull_requests,list_pull_request_reviews,get_pull_request_review,list_pull_request_review_comments,create_pull_request_review,submit_pull_request_review,dismiss_pull_request_review,merge_pull_request" + ], + "env": { + "GITEA_ACCESS_TOKEN": "", + "GIT_AUTHOR_NAME": "", + "GIT_AUTHOR_EMAIL": "", + "GIT_COMMITTER_NAME": "", + "GIT_COMMITTER_EMAIL": "" + } + } + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dc62f09 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Cursor MCP config contains tokens — use .cursor/mcp.json.example as template +.cursor/mcp.json + +# Environment variables +.env