MCP Server
MCP
io.github.joelverhagen/Knapcode.SampleMcpServer
A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.
Install
nuget:[email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "nuget",
"registryBaseUrl": "https://api.nuget.org/v3/index.json",
"identifier": "Knapcode.SampleMcpServer",
"version": "0.7.0-beta",
"transport": {
"type": "stdio"
},
"packageArguments": [
{
"value": "mcp",
"type": "positional",
"valueHint": "mcp"
},
{
"value": "start",
"type": "positional",
"valueHint": "start"
}
],
"environmentVariables": [
{
"value": "{weather_choices}",
"variables": {
"weather_choices": {
"description": "Comma separated list of weather descriptions to randomly select.",
"isRequired": true
}
},
"name": "WEATHER_CHOICES"
}
]
}
]
}
mcp
model-context-protocol
nuget
By
Comments
Sign in to leave a comment