MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / pushHistory

Function pushHistory

client/src/lib/hooks/useConnection.ts:191–199  ·  view source on GitHub ↗
(request: object, response?: object)

Source from the content-addressed store, hash-verified

189 }, [oauthScope, sseUrl]);
190
191 const pushHistory = (request: object, response?: object) => {
192 setRequestHistory((prev) => [
193 ...prev,
194 {
195 request: JSON.stringify(request),
196 response: response !== undefined ? JSON.stringify(response) : undefined,
197 },
198 ]);
199 };
200
201 const makeRequest = async <T extends AnySchema>(
202 request: ClientRequest,

Callers 4

makeRequestFunction · 0.85
sendNotificationFunction · 0.85
connectFunction · 0.85
emitTaskStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected