Skip to content

Commit c9d76f7

Browse files
committed
Update based on feedback
1 parent 2a728b9 commit c9d76f7

5 files changed

Lines changed: 234 additions & 90 deletions

File tree

src/ModelContextProtocol/Protocol/Messages/RequestId.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public RequestId(long value)
3636

3737
/// <inheritdoc />
3838
public override string ToString() =>
39-
_id is string stringValue ? $"\"{stringValue}\"" :
39+
_id is string stringValue ? stringValue :
4040
_id is long longValue ? longValue.ToString(CultureInfo.InvariantCulture) :
4141
string.Empty;
4242

src/ModelContextProtocol/Shared/McpJsonRpcEndpoint.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using ModelContextProtocol.Logging;
44
using ModelContextProtocol.Protocol.Messages;
55
using ModelContextProtocol.Protocol.Transport;
6+
using ModelContextProtocol.Server;
67
using ModelContextProtocol.Utils;
78
using System.Diagnostics.CodeAnalysis;
89

@@ -69,7 +70,7 @@ protected void StartSession(ITransport sessionTransport, CancellationToken fullS
6970
}
7071

7172
_sessionCts = CancellationTokenSource.CreateLinkedTokenSource(fullSessionCancellationToken);
72-
_session = new McpSession(sessionTransport, EndpointName, _requestHandlers, _notificationHandlers, _logger);
73+
_session = new McpSession(this is IMcpServer, sessionTransport, EndpointName, _requestHandlers, _notificationHandlers, _logger);
7374
MessageProcessingTask = _session.ProcessMessagesAsync(_sessionCts.Token);
7475
}
7576

0 commit comments

Comments
 (0)