check_code_server
Check code-server (VSCode in browser) health via GET /healthz. Returns 'OK'. Default port 8080.
This record as markdown: /tools/aaronckj-mcp-nettools/check-code-server.md
What check_code_server does on Mcp Nettools
AI agents call check_code_server to retrieve information from Mcp Nettools without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
Why check_code_server is rated Low
This tool retrieves health status from a code-server instance via a read-only GET request. While code-server itself is an Execute-capable service, this specific tool merely queries its health endpoint and returns a simple status response. The action is non-destructive, non-modifying, and informational only.
From the tool's definition Tool performs a GET request to a health check endpoint (/healthz) that returns status information ('OK'). No modification, deletion, or execution of arbitrary code occurs.
Attacks that exploit this kind of access
The rule that runs check_code_server safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Mcp Nettools, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For check_code_server, this is the rule to start with:
check_code_server is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Mcp Nettools, apply this rule, and every check_code_server call is checked against it from then on.
Questions about check_code_server
Check code-server (VSCode in browser) health via GET /healthz. Returns 'OK'. Default port 8080. It is categorised as a Read tool in the Mcp Nettools MCP Server, which means it retrieves data without modifying state.
Register the Mcp Nettools MCP server in PolicyLayer and add a rule for check_code_server: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp Nettools. Nothing to install.
check_code_server is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the check_code_server rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for check_code_server. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
check_code_server is provided by the Mcp Nettools MCP server (aaronckj/mcp-nettools). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Mcp Nettools, and thousands of servers like it.
This server
Across the catalogue