初步接入Python执行的MCP
This commit is contained in:
parent
d58510e29c
commit
a15f2c6f53
@ -67,21 +67,21 @@ public class McpServerList
|
|||||||
"bing-cn-mcp"
|
"bing-cn-mcp"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// servers.Add("mcp-python-interpreter", new StdioMcpServer()
|
servers.Add("mcp-python-interpreter", new StdioMcpServer()
|
||||||
// {
|
{
|
||||||
// Name = "mcp-python-interpreter",
|
Name = "mcp-python-interpreter",
|
||||||
// Type = "stdio",
|
Type = "stdio",
|
||||||
// Command = "uvx",
|
Command = "uvx",
|
||||||
// Args = new List<string>()
|
Args = new List<string>()
|
||||||
// {
|
{
|
||||||
// "--native-tls",
|
"--native-tls",
|
||||||
// "mcp-python-interpreter",
|
"mcp-python-interpreter",
|
||||||
// "--dir",
|
"--dir",
|
||||||
// "D:\\01_Project\\20250305_LinkTool\\20250420_AiDemoProject\\TestData",
|
"D:\\01_Project\\20250305_LinkTool\\20250420_AiDemoProject\\TestData",
|
||||||
// "--python-path",
|
"--python-path",
|
||||||
// "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\custom\\python.exe"
|
"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\custom\\python.exe"
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public McpServer GetServer(string name)
|
public McpServer GetServer(string name)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user