Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

_error

modules.mcp.native_server._error

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Called by (1)
SymbolFileResolved by
build_mcp_servernative_server.pysame file
Inside (1)
SymbolFileResolved by
native_servernative_server.pysame file
modules.mcp.native_server._errorbackend/app/modules/mcp/native_server.py, lines 53–58Open source
def _error(exc: Exception) -> dict[str, Any]:    if isinstance(exc, ModeUnavailable):        return {"error": "mode_unavailable", "detail": exc.reason}    if isinstance(exc, RepositoryNotFound):        return {"error": "repository_not_found", "detail": str(exc)}    raise exc

What the index recorded

Signature
def _error(exc: Exception) -> dict[str, Any]:
File
backend/app/modules/mcp/native_server.py
Lines
53–58
Parser
python-ast
Git blob
0927865cd82a674fcaaa8c119faa660d8e20a47f
Call sites
2 named, 0 resolved, 2 left unlinked

Read it on GitHub at this commit