feat(network): add network diagnostics tool skeletons (draft) #71
+178
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related: #70
This is a DRAFT PR to introduce the initial addition of 3 network diagnostics tools in the MCP server.
What this draft includes
src/app/[transport]/route.ts(not the full logic yet):capture_network_trafficblock_resourcesanalyze_network_performancesrc/lib/network.tsWhy
Questions for reviewers
filter=all,include_body=false,max_body_size=100_000, and Redis‑only persistence ; acceptable?get_network_traffic/clear_network_trafficin the future to support this?Implementation plan
Plan after
Once capture/block/analyze are implemented and stable, I can maybe refactor helper logic into a structured module layout, consistent with
src/lib/resolvers/*:src/lib/network/capture.tssrc/lib/network/block.tssrc/lib/network/analyze.tssrc/lib/network/types.tsTesting plan
Future Docs plan
capture_network,block_resources, andanalyze_networkonce functionality is wired.https://www.onkernel.com/docs/reference/mcp-serverwith new tool descriptions and parametersStatus: Draft/WIP — seeking feedback on API shape, defaults, and the staged implementation before wiring up the backing logic.