get_component
Retrieve a specific security component by its ID to access detailed information for threat modeling and security analysis.
Instructions
Get a specific component by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component_id | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:129-134 (handler)MCP tool handler for 'get_component'. Creates API client context, calls client.get_component, and returns result as string.@mcp.tool() async def get_component(component_id: str) -> str: """Get a specific component by ID""" async with create_client_from_env() as client: result = await client.get_component(component_id) return str(result)
- API client helper that performs authenticated HTTP GET request to fetch the specific component by ID from the Devici API.async def get_component(self, component_id: str) -> Dict[str, Any]: """Get specific component by ID.""" return await self._make_request("GET", f"/components/{component_id}")