Skip to content

Commit 2620ee9

Browse files
committed
修改头
1 parent 72dbf06 commit 2620ee9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/DotNetCampus.ModelContextProtocol.Ipc/Transports/Ipc/IpcServerTransport.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ namespace DotNetCampus.ModelContextProtocol.Transports.Ipc;
1313
/// </summary>
1414
public class IpcServerTransport : IServerTransport
1515
{
16-
private const ulong McpIpcHeader = 0x22CDFD581663B8F4;
16+
// System.Runtime.InteropServices.MemoryMarshal.Read<ulong>("Dncp.Mcp"u8).ToString("X")
17+
// 小端写入时,可在 IPC 传输序列中看到 Dncp.Mcp = DotNetCampus.ModelContextProtocol 的 ASCII 字符串。
18+
private const ulong McpIpcHeader = 0x70634D2E70636E44;
19+
1720
private readonly IServerTransportManager _manager;
1821
private readonly TaskCompletionSource _taskCompletionSource = new();
1922
private readonly IpcProvider _server;

0 commit comments

Comments
 (0)