lbarceloss/sniffer-with-mcp ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python MCP server that lets Claude or another agent query a live packet sniffer in real time.

I already have a Windows sniffer app that listens on two local ports, one for the live plaintext packet feed and one for simple query commands, so I want the Python side to talk to that app and expose useful MCP tools like getting the latest packets, filtering by direction or opcode, checking whether any packets were dropped, and looking up human readable opcode names. Please keep it simple and dependency free if possible, just standard Python and whatever MCP library is needed.

Also include the little decoder and opcode name generation helper from the source tree so the packet names stay in sync with the game server code. If anything is unclear, look up the current MCP docs online and make sensible choices. I want this to be easy to run locally with a config file example and clear instructions, so I can point Claude at the live capture and ask questions about what the server is doing.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab