com.IvanMurzak.Brutal.MCP.RakNet 0.1.0

dotnet add package com.IvanMurzak.Brutal.MCP.RakNet --version 0.1.0
                    
NuGet\Install-Package com.IvanMurzak.Brutal.MCP.RakNet -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="com.IvanMurzak.Brutal.MCP.RakNet" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="com.IvanMurzak.Brutal.MCP.RakNet" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="com.IvanMurzak.Brutal.MCP.RakNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add com.IvanMurzak.Brutal.MCP.RakNet --version 0.1.0
                    
#r "nuget: com.IvanMurzak.Brutal.MCP.RakNet, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package com.IvanMurzak.Brutal.MCP.RakNet@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=com.IvanMurzak.Brutal.MCP.RakNet&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=com.IvanMurzak.Brutal.MCP.RakNet&version=0.1.0
                    
Install as a Cake Tool

Brutal-MCP RakNet

com.IvanMurzak.Brutal.MCP.RakNet — Brutal-MCP extension for Ahwoo.BRUTAL.RakNet (namespace Brutal.RakNetApi). Lets an AI agent inspect the game's RakNet peers and connections, simulate a bad network and close connections. It never calls Receive: reads cannot steal the game's packets.

Setup

dotnet add package com.IvanMurzak.Brutal.MCP.RakNet

Register the peer once after Startup (a static field of type RakPeerInstance, RakPeerInstance? or a collection of them is found without registering, and always reflects the field's current value):

BrutalMcp.Register(peer, "Server");

RakPeerInstance is a struct wrapping a native pointer: Register stores a copy, and the registry compares copies by value (registering the same peer again renames it instead of adding a second entry). Unregister it (BrutalMcp.Unregister(peer)) before Dispose() / DestroyInstance, otherwise a later query reads a freed peer.

RQL

Source Content
network Name Active Guid BoundAddress ConnectionCount MaxIncomingConnections MaxPeers NetworkSimulatorActive Connections; calls ApplyNetworkSimulator(packetLoss, minExtraPing, variance), CloseConnection(address, notify)
connections Peer Address Ip Guid State AveragePing LastPing LowestPing Statistics (byte counters per second / total, packet loss, send and resend buffers); call Close(notify)
connections | select Address State AveragePing Statistics.PacketlossLastSecond
network | call ApplyNetworkSimulator(0.1, 50, 20)
network | call CloseConnection("127.0.0.1:60001")

ApplyNetworkSimulator is for development: it only has an effect when the RakNet native library was built with the simulator (NetworkSimulatorActive tells).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 61 10/17/2026