MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / request

Function request

scripts/test_mcp_interactive.py:140–158  ·  view source on GitHub ↗
(
    process: subprocess.Popen[bytes],
    responses: "queue.Queue[dict[str, Any]]",
    request_id: int,
    method: str,
    params: dict[str, Any],
    timeout: float,
    accept_tool_error: bool = False,
)

Source from the content-addressed store, hash-verified

138
139
140def request(
141 process: subprocess.Popen[bytes],
142 responses: "queue.Queue[dict[str, Any]]",
143 request_id: int,
144 method: str,
145 params: dict[str, Any],
146 timeout: float,
147 accept_tool_error: bool = False,
148) -> dict[str, Any]:
149 send(
150 process,
151 {
152 "jsonrpc": "2.0",
153 "id": request_id,
154 "method": method,
155 "params": params,
156 },
157 )
158 return wait_response(process, responses, request_id, timeout, accept_tool_error)
159
160
161def grouped_search_qualified_name(

Callers 1

run_scenarioFunction · 0.85

Calls 2

sendFunction · 0.85
wait_responseFunction · 0.85

Tested by

no test coverage detected