@@ -2,46 +2,56 @@ import type { MCPServerConfig } from "../types/mcp";
22
33/**
44 * IDs for well-known preset MCP servers.
5- * These must stay in sync with the card components in the frontend.
65 */
76export const PRESET_SERVER_IDS = {
87 GITHUB : "f12980ac-f80c-47e0-b4ac-181a54122d61" ,
98 AZURE_DEVOPS : "483d49a4-0902-415a-a987-832a21bd3d63" ,
109 JIRA : "0f03a50c-219b-46e9-9ce3-54f925c44479" ,
1110} as const ;
1211
12+ /** Default config for the GitHub preset MCP server. */
13+ export const GITHUB_PRESET_CONFIG = {
14+ id : PRESET_SERVER_IDS . GITHUB ,
15+ name : "GitHub" ,
16+ transport : "streamableHttp" ,
17+ url : "https://api.githubcopilot.com/mcp/" ,
18+ description : "GitHub MCP Server" ,
19+ toolWhitelist : [ ] ,
20+ enabled : false ,
21+ } satisfies MCPServerConfig ;
22+
23+ /** Default config for the Azure DevOps preset MCP server. */
24+ export const AZURE_DEVOPS_PRESET_CONFIG = {
25+ id : PRESET_SERVER_IDS . AZURE_DEVOPS ,
26+ name : "Azure_DevOps" , // MCP server names cannot contain spaces
27+ transport : "stdio" ,
28+ command : "npx" ,
29+ // TODO: need to be able to customize this last parameter
30+ // https://github.com/SSWConsulting/SSW.YakShaver.Desktop/issues/547
31+ args : [ "-y" , "@azure-devops/mcp" , "ssw2" ] ,
32+ description : "Azure DevOps MCP Server" ,
33+ toolWhitelist : [ ] ,
34+ enabled : false ,
35+ } satisfies MCPServerConfig ;
36+
37+ /** Default config for the Jira preset MCP server. */
38+ export const JIRA_PRESET_CONFIG = {
39+ id : PRESET_SERVER_IDS . JIRA ,
40+ name : "Jira" ,
41+ transport : "streamableHttp" ,
42+ url : "https://mcp.atlassian.com/v1/mcp" ,
43+ description : "Atlassian MCP Server" ,
44+ toolWhitelist : [ ] ,
45+ enabled : false ,
46+ } satisfies MCPServerConfig ;
47+
1348/**
14- * Default configs for preset MCP servers .
49+ * All preset MCP server configs .
1550 * Included in listAvailableServers() even before the user connects.
1651 * Once a user saves a server with the same ID, the stored version takes precedence.
1752 */
1853export const PRESET_MCP_SERVERS : readonly MCPServerConfig [ ] = [
19- {
20- id : PRESET_SERVER_IDS . GITHUB ,
21- name : "GitHub" ,
22- transport : "streamableHttp" ,
23- url : "https://api.githubcopilot.com/mcp/" ,
24- description : "GitHub MCP Server" ,
25- toolWhitelist : [ ] ,
26- enabled : false ,
27- } ,
28- {
29- id : PRESET_SERVER_IDS . AZURE_DEVOPS ,
30- name : "Azure_DevOps" ,
31- transport : "stdio" ,
32- command : "npx" ,
33- args : [ "-y" , "@azure-devops/mcp" , "ssw2" ] ,
34- description : "Azure DevOps MCP Server" ,
35- toolWhitelist : [ ] ,
36- enabled : false ,
37- } ,
38- {
39- id : PRESET_SERVER_IDS . JIRA ,
40- name : "Jira" ,
41- transport : "streamableHttp" ,
42- url : "https://mcp.atlassian.com/v1/mcp" ,
43- description : "Atlassian MCP Server" ,
44- toolWhitelist : [ ] ,
45- enabled : false ,
46- } ,
47- ] as MCPServerConfig [ ] ;
54+ GITHUB_PRESET_CONFIG ,
55+ AZURE_DEVOPS_PRESET_CONFIG ,
56+ JIRA_PRESET_CONFIG ,
57+ ] ;
0 commit comments