get_user
Returns the user account currently authenticated to the Intruder API.
Instructions
Get the current user of the Intruder API that we are authenticated as
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- intruder_mcp/server.py:24-27 (handler)The 'get_user' tool handler. It calls api.get_health() and returns the 'authenticated_as' field from the Health response, identifying the current authenticated Intruder API user.
async def get_user() -> str: """Get the current user of the Intruder API that we are authenticated as""" health = api.get_health() return health.authenticated_as - intruder_mcp/server.py:23-24 (registration)The tool is registered as an MCP tool using the @mcp.tool() decorator on the async function 'get_user'.
@mcp.tool() async def get_user() -> str: - intruder_mcp/api_client.py:25-26 (helper)The 'get_health' API client method called by get_user. It sends a GET request to /health/ and returns a Health object.
def get_health(self) -> Health: return Health(**self.client.get(f"{self.base_url}/health/").json()) - intruder_mcp/enums.py:191-193 (schema)The Health Pydantic model that defines the response schema. Contains 'status' (str) and 'authenticated_as' (str, email format) fields returned by the get_user tool.
class Health(BaseModel): status: str = Field(..., description="API health status") authenticated_as: str = Field(..., format="email")