mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
* Update projects to target net10 - Update TargetFramework in directory.build.props to net10.0 - Update framework dependency package versions to the 10.0 series * reader.EndOfStream isn't safe in async and unnecessary when using ReadLineAsync * Update npgsql to 10.0.1
695 lines
22 KiB
JSON
695 lines
22 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "PowerShell Interactive Session",
|
|
"type": "PowerShell",
|
|
"request": "launch",
|
|
"cwd": "${cwd}"
|
|
},
|
|
{
|
|
"name": "Debug Cosmos Databases List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"cosmos",
|
|
"database",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--account-name",
|
|
"${input:cosmosAccountName}",
|
|
"--retry-max-retries",
|
|
"0"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Cluster List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"cluster",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Cluster Get",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"cluster",
|
|
"get",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--cluster-name",
|
|
"${input:kustoClusterName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Database List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"database",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--cluster-name",
|
|
"${input:kustoClusterName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Activity logs",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/servers/Azure.Mcp.Server/src/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"monitor",
|
|
"activitylog",
|
|
"list",
|
|
"--hours",
|
|
"${input:hours}",
|
|
"--resource-name",
|
|
"${input:resourceName}",
|
|
"--resource-type",
|
|
"${input:resourceType}",
|
|
"--resource-group",
|
|
"${input:resourceGroup}",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--top",
|
|
"${input:top}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Databases List with Cluster URI",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"database",
|
|
"list",
|
|
"--cluster-uri",
|
|
"${input:kustoClusterUri}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Table List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"table",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--cluster-name",
|
|
"${input:kustoClusterName}",
|
|
"--database-name",
|
|
"${input:kustoDatabaseName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Table List with Cluster URI",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"table",
|
|
"list",
|
|
"--cluster-uri",
|
|
"${input:kustoClusterUri}",
|
|
"--database-name",
|
|
"${input:kustoDatabaseName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Table Schema",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"table",
|
|
"schema",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--cluster-name",
|
|
"${input:kustoClusterName}",
|
|
"--database-name",
|
|
"${input:kustoDatabaseName}",
|
|
"--table-name",
|
|
"${input:kustoTableName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Sample",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"sample",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--cluster-name",
|
|
"${input:kustoClusterName}",
|
|
"--database-name",
|
|
"${input:kustoDatabaseName}",
|
|
"--table-name",
|
|
"${input:kustoTableName}",
|
|
"--limit",
|
|
"1"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Query",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"query",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--cluster-name",
|
|
"${input:kustoClusterName}",
|
|
"--database-name",
|
|
"${input:kustoDatabaseName}",
|
|
"--query",
|
|
"${input:kustoQuery}",
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure Data Explorer Query with Cluster URI",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"kusto",
|
|
"query",
|
|
"--cluster-uri",
|
|
"${input:kustoClusterUri}",
|
|
"--database-name",
|
|
"${input:kustoDatabaseName}",
|
|
"--query",
|
|
"${input:kustoQuery}",
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Tools List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"tools",
|
|
"list",
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Monitor Table List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"monitor",
|
|
"table",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--resource-group",
|
|
"${input:resourceGroup}",
|
|
"--workspace",
|
|
"${input:workspace}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Storage Table List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"storage",
|
|
"table",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--account-name",
|
|
"${input:storageAccountName}",
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Applens Resource Diagnose",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/servers/Azure.Mcp.Server/src/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"applens",
|
|
"resource",
|
|
"diagnose",
|
|
"--resource-name",
|
|
"${input:resourceName}",
|
|
"--question",
|
|
"${input:question}",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--resource-group",
|
|
"${input:resourceGroup}",
|
|
"--resource-type",
|
|
"${input:resourceType}",
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug ACR Registry List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"acr",
|
|
"registry",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Monitor Log Query",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"monitor",
|
|
"log",
|
|
"query",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--workspace",
|
|
"${input:workspace}",
|
|
"--query",
|
|
"recent",
|
|
"--table-name",
|
|
"${input:monitorTableName}",
|
|
"--resource-group",
|
|
"${input:resourceGroup}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Launch MCP Server",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": [
|
|
"@modelcontextprotocol/inspector",
|
|
"./bin/Debug/net10.0/azmcp.exe",
|
|
"server",
|
|
"start"
|
|
],
|
|
"cwd": "${workspaceFolder}/src",
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"name": "Attach to MCP Server",
|
|
"type": "coreclr",
|
|
"request": "attach",
|
|
"processId": "${command:pickProcess}"
|
|
},
|
|
{
|
|
"name": "Start MCP Server from Command Line",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/servers/Azure.Mcp.Server/src/bin/Debug/net10.0/azmcp",
|
|
"args": [
|
|
"server",
|
|
"start",
|
|
"--mode",
|
|
"consolidated"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Cosmos Container Items Query",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"cosmos",
|
|
"database",
|
|
"container",
|
|
"item",
|
|
"query",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--account-name",
|
|
"${input:cosmosAccountName}",
|
|
"--database-name",
|
|
"${input:cosmosDatabaseName}",
|
|
"--container-name",
|
|
"${input:cosmosContainerName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Monitor TableType List",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"monitor",
|
|
"table-type",
|
|
"list",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--resource-group",
|
|
"${input:resourceGroup}",
|
|
"--workspace",
|
|
"${input:workspace}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug SQL Database Show",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/core/src/AzureMcp.Cli/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"sql",
|
|
"db",
|
|
"show",
|
|
"--subscription",
|
|
"${input:subscription}",
|
|
"--resource-group",
|
|
"${input:resourceGroup}",
|
|
"--server",
|
|
"${input:sqlServerName}",
|
|
"--database",
|
|
"${input:sqlDatabaseName}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Azure AI Search knowledge base retrieve",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/servers/Azure.Mcp.Server/src/bin/Debug/net10.0/azmcp.exe",
|
|
"args": [
|
|
"search",
|
|
"knowledge",
|
|
"base",
|
|
"retrieve",
|
|
"--service",
|
|
"${input:searchService}",
|
|
"--knowledge-base",
|
|
"${input:knowledgeBase}",
|
|
"--query",
|
|
"${input:searchRetrieveQuery}"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"stopAtEntry": false,
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Debug MCP Server",
|
|
"configurations": [
|
|
"Launch MCP Server",
|
|
"Attach to MCP Server"
|
|
]
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "subscription",
|
|
"type": "promptString",
|
|
"description": "Azure Subscription",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "cosmosAccountName",
|
|
"type": "promptString",
|
|
"description": "Cosmos DB Account Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "kustoClusterUri",
|
|
"type": "promptString",
|
|
"description": "Kusto Cluster URI (e.g. https://<cluster>.<region>.kusto.windows.net)",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "kustoClusterName",
|
|
"type": "promptString",
|
|
"description": "Kusto Cluster Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "kustoDatabaseName",
|
|
"type": "promptString",
|
|
"description": "Kusto Database Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "kustoTableName",
|
|
"type": "promptString",
|
|
"description": "Kusto Table Name"
|
|
},
|
|
{
|
|
"id": "kustoQuery",
|
|
"type": "promptString",
|
|
"description": "Kusto Query (KQL)"
|
|
},
|
|
{
|
|
"id": "storageAccountName",
|
|
"type": "promptString",
|
|
"description": "Storage Account Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "workspace",
|
|
"type": "promptString",
|
|
"description": "Log Analytics Workspace ID",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "cosmosDatabaseName",
|
|
"type": "promptString",
|
|
"description": "Cosmos DB Database Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "cosmosContainerName",
|
|
"type": "promptString",
|
|
"description": "Cosmos DB Container Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "resourceGroup",
|
|
"type": "promptString",
|
|
"description": "Azure Resource Group",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "monitorTableName",
|
|
"type": "promptString",
|
|
"description": "Monitor Table Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "sqlServerName",
|
|
"type": "promptString",
|
|
"description": "SQL Server Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "sqlDatabaseName",
|
|
"type": "promptString",
|
|
"description": "SQL Database Name",
|
|
"default": "testdb"
|
|
},
|
|
{
|
|
"id": "searchService",
|
|
"type": "promptString",
|
|
"description": "Azure AI Search Service Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "knowledgeBase",
|
|
"type": "promptString",
|
|
"description": "Knowledge Base Index Name",
|
|
"default": ""
|
|
},
|
|
{
|
|
"id": "searchRetrieveQuery",
|
|
"type": "promptString",
|
|
"description": "Knowledge base retrieval query",
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|