Skip to content

Commit 1736ac5

Browse files
committed
First pass at github projects MCP server
1 parent c19d7e3 commit 1736ac5

21 files changed

+2815
-2
lines changed

.env.template

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# GitHub Projects MCP Server Test Configuration Template
2+
# Copy this file to .env.test and fill in your actual values
3+
4+
# GitHub Authentication
5+
# Your GitHub Personal Access Token with 'project' and 'read:project' scopes
6+
# Generate at: https://github.com/settings/tokens
7+
TEST_GITHUB_TOKEN=ghp_your_token_here
8+
9+
# Test Organization/User
10+
# The GitHub organization or user login name that owns the test project
11+
TEST_ORG_NAME=your-org-name
12+
13+
# Test Project
14+
# The GitHub Project ID to use for testing (get from project URL or API)
15+
# Format: PVT_kwDOABCDEF (starts with PVT_)
16+
TEST_PROJECT_ID=PVT_your_project_id_here
17+
18+
# Test Repository (for creating test issues/PRs)
19+
# Repository owner (organization or user)
20+
TEST_REPO_OWNER=your-repo-owner
21+
# Repository name
22+
TEST_REPO_NAME=your-repo-name
23+
24+
# Optional: Test Configuration
25+
# MCP Server test settings
26+
MCP_TEST_HOST=localhost
27+
MCP_TEST_PORT_SSE=8001
28+
MCP_TEST_PORT_HTTP=8002
29+
30+
# GitHub API Test Settings
31+
GITHUB_API_MAX_RETRIES=1
32+
GITHUB_API_RETRY_DELAY=1
33+
34+
# Logging for tests
35+
LOG_LEVEL=DEBUG
36+
37+
# Test Data
38+
# Prefix for test items to identify them easily
39+
TEST_ITEM_PREFIX=[MCP-TEST]
40+
41+
# Instructions:
42+
# 1. Copy this file: cp .env.template .env.test
43+
# 2. Fill in your GitHub token and test project details
44+
# 3. Create a test project in your GitHub organization/account
45+
# 4. Create a test repository or use an existing one
46+
# 5. Run tests: pytest tests/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.env
2+
.env.test
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[codz]

0 commit comments

Comments
 (0)