feat: add clear buttons for request history and server notifications
fixes #780
This commit is contained in:
parent
377211061b
commit
801ae28ecb
1 changed files with 105 additions and 3 deletions
|
|
@ -653,11 +653,16 @@ export function useConnection({
|
|||
setServerCapabilities(null);
|
||||
};
|
||||
|
||||
const clearRequestHistory = () => {
|
||||
setRequestHistory([]);
|
||||
};
|
||||
|
||||
return {
|
||||
connectionStatus,
|
||||
serverCapabilities,
|
||||
mcpClient,
|
||||
requestHistory,
|
||||
clearRequestHistory,
|
||||
makeRequest,
|
||||
sendNotification,
|
||||
handleCompletion,
|
||||
|
|
|
|||
Loading…
Reference in a new issue