Skip to content

Commit 0643777

Browse files
bcollamoreCopilot
andauthored
chore: fix mcp (#945)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8db5abc commit 0643777

4 files changed

Lines changed: 199 additions & 692 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: copilot-setup-steps
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
copilot-setup-steps:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
9+
id-token: write
10+
environment: copilot
11+
steps:
12+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
13+
- name: Python deps for MCP server
14+
run: |
15+
python3 -m pip install --upgrade pip
16+
python3 -m pip install "fastmcp>=0.4"
17+

tools/mcp/github-mcp-config.json

Lines changed: 9 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,11 @@
11
{
2-
"mcp": {
3-
"servers": [
4-
{
5-
"name": "roslyn-analyzers-dev",
6-
"description": "MCP server for Roslyn Analyzers development tasks automation",
7-
"version": "1.0.0",
8-
"url": "http://localhost:8000",
9-
"capabilities": {
10-
"file_operations": false,
11-
"code_analysis": true,
12-
"build_automation": true,
13-
"test_execution": true,
14-
"dogfood_process": true,
15-
"helper_discovery": true,
16-
"coverage_analysis": true
17-
},
18-
"endpoints": [
19-
{
20-
"path": "/search_helpers",
21-
"method": "POST",
22-
"description": "Search for Helper.For methods and related utilities that developers commonly miss",
23-
"parameters": {}
24-
},
25-
{
26-
"path": "/build_strict",
27-
"method": "POST",
28-
"description": "Build the solution with warnings treated as errors",
29-
"parameters": {}
30-
},
31-
{
32-
"path": "/run_tests",
33-
"method": "POST",
34-
"description": "Execute tests against main test project (security-hardened)",
35-
"parameters": {}
36-
},
37-
{
38-
"path": "/run_dogfood",
39-
"method": "POST",
40-
"description": "Run the complete dogfooding process (build analyzers and apply them to the codebase)",
41-
"parameters": {}
42-
},
43-
{
44-
"path": "/analyze_coverage",
45-
"method": "POST",
46-
"description": "Analyze code coverage and provide actionable suggestions to reach 80% SonarCloud requirement",
47-
"parameters": {}
48-
},
49-
{
50-
"path": "/manifest",
51-
"method": "GET",
52-
"description": "Get server manifest with endpoint descriptions",
53-
"parameters": {}
54-
},
55-
{
56-
"path": "/health",
57-
"method": "GET",
58-
"description": "Health check endpoint",
59-
"parameters": {}
60-
}
61-
],
62-
"startup": {
63-
"command": "./tools/mcp/start_mcp_server.sh",
64-
"working_directory": ".",
65-
"environment": {},
66-
"timeout": 30
67-
},
68-
"authentication": {
69-
"type": "none"
70-
},
71-
"health_check": {
72-
"endpoint": "/health",
73-
"interval": 60,
74-
"timeout": 10
75-
}
76-
}
77-
]
2+
"mcpServers": {
3+
"roslyn-analyzers-dev": {
4+
"type": "local",
5+
"command": "bash",
6+
"args": [ "-lc", "./tools/mcp/start_mcp_server.sh" ],
7+
"env": {},
8+
"tools": [ "search_helpers", "build_strict", "run_tests", "run_dogfood", "analyze_coverage" ]
9+
}
7810
}
79-
}
11+
}

0 commit comments

Comments
 (0)