凯莉·埃尔顿。McpServers
提供有用开发工具的模型上下文协议(MCP)服务器。
本地运行
先决条件
- .NET 9.0 SDK
- Visual Studio代码或支持MCP的兼容编辑器
构建并运行
# Build the project
dotnet build
# Run the server
dotnet run --project KellyElton.McpServers配置
服务器可以通过以下方式配置 appsettings.json 或 appsettings.Development.json 文件夹。
可用工具
- dotnet_test -跑步
dotnet test在给定的项目、解决方案或目录上
MCP客户端配置
选项1:自动启动服务器
要让Claude Desktop自动启动服务器,请将以下内容添加到MCP配置文件中:
{
"mcpServers": {
"kellyElton-mcpServers": {
"command": "dotnet",
"args": ["run", "--project", "C:\\path\\to\\KellyElton.McpServers\\KellyElton.McpServers"],
"env": {
"ASPNETCORE_URLS": "http://localhost:3000"
}
}
}`
}替换 C:\\path\\to\\KellyElton.McpServers\\KellyElton.McpServers 了解项目的实际路径。
选项2:连接到已运行的服务器
如果您已经手动运行服务器,请使用以下配置:
{
"mcpServers": {
"kellyElton-mcpServers": {
"url": "http://localhost:3000"
}
}
}