You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that this discussion would not be more appropriate as an issue in a specific repository
I have searched existing discussions to avoid duplicates
Discussion Topic
I'm very new to this but I have a MCP server I built that runs. However, I can not find the port that is opened for the MCP server in the interface, nor do I see a port that gets open when I do netstat. How are we suppose to know what port to configure to connect to the MCP server? Thank you in advanced.
This is my program:
using MCPServer.Tools;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
var builder = Host.CreateApplicationBuilder(args);
builder.Logging.AddConsole(consoleLogOptions =>
{
// Configure all logs to go to stderr
consoleLogOptions.LogToStandardErrorThreshold = LogLevel.Trace;
});
// Build Service
builder.Services
.AddMcpServer()
.WithStdioServerTransport()
.WithTools<ToolClass>()
.WithToolsFromAssembly();
// Build Host
var host = builder.Build();
// Run the server
await host.RunAsync();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Pre-submission Checklist
Discussion Topic
I'm very new to this but I have a MCP server I built that runs. However, I can not find the port that is opened for the MCP server in the interface, nor do I see a port that gets open when I do netstat. How are we suppose to know what port to configure to connect to the MCP server? Thank you in advanced.
This is my program:
Beta Was this translation helpful? Give feedback.
All reactions