Code: Select all
builder.Services.AddMcpServer().WithStdioServerTransport().WithToolsFromAssembly();
< /code>
Ich kann das Projekt mit Visual Studio -Code mit: < /p>
gut ausführen{
"servers": {
"TestMcp": {
"type": "stdio",
"command": "dotnet",
"args": [
"run",
"--project",
"/Path/To/My/Project/Project.csproj"
]
}
}
}
< /ul>
Ich erhalte diesen Fehler: < /p>
Code: Select all
MCP error -1: Connection closed
< /code>
Protokollierung zeigt, dass die App beginnt und sogar Drucke: < /p>
Application started...
< /code>
SO STDIN /STDOut sind technisch gesehen -aber MCP trennt sofort, wenn ich von Rider gestartet wird.Console.OpenStandardInput()< /code>,
Console.OpenStandardOutput()
[*] Die Streams mit console.out.out.flush () - immer noch nein
Luck
[*] Einstellen "Typ": "stdio" in .mcp.json - scheinen in
rider