MCP Server to call some generic APIs
Added a quick echo tool from https://devblogs.microsoft.com/dotnet/build-a-model-context-protocol-mcp-server-in-csharp/
Steps to build:
-
dotnet restore
-
dotnet build
-
Create a file mcp.json in your .vscode folder with below contents: { "inputs": [], "servers": { "GenericMCP": { "type": "stdio", "command": "dotnet", "args": [ "run", "--project", "C:\full\path\GenericMCP\GenericMCP.csproj" ] } } }
-
click start inside your json file to start the tool
-
check in your Github copilot whether Agent mode is enabled and make sure it shows the tool
-
type something like this is chat window: Run ReverseEcho with SuuperMCPServer
-
You will be prompted for confirmation post which you should see:
Added CallAPI

