client_server_formal

clientReady(tools) || serverCallingToolsListserver ; Servertools ; ToolSetstate ; ServerStateclientInitializing(serverStateMap, tools) || serverNotInitializedserver ; Servertools ; ToolSetstate ; ServerStateclientReady(tools) || serverNotInitializedserver ; Servertools ; ToolSetstate ; ServerStateclientInitializing(serverStateMap, tools) || serverInitializedserver ; Servertools ; ToolSetstate ; ServerStateclientReady(tools) || serverInitializedserver ; Servertools ; ToolSetstate ; ServerStateclientProcessing(tools) || serverCallingToolsListserver ; Servertools ; ToolSetstate ; ServerStateclientProcessing(tools) || serverNotRunningserver ; Servertools ; ToolSetclientInitializing(serverStateMap, tools) || serverInitializingserver ; Servertools ; ToolSetstate ; ServerStateclientProcessing(tools) || serverInitializedserver ; Servertools ; ToolSetstate ; ServerStateclientProcessing(tools) || serverInitializingserver ; Servertools ; ToolSetstate ; ServerStateclientInitializing(serverStateMap, tools) || serverNotRunningserver ; Servertools ; ToolSetclientReady(tools) || serverNotRunningserver ; Servertools ; ToolSetclientProcessing(tools) || serverNotInitializedserver ; Servertools ; ToolSetstate ; ServerStateclientReady(tools) || serverInitializingserver ; Servertools ; ToolSetstate ; ServerStateclientCallingMCPServer(tools) || serverCallingToolsCallserver ; Servertools ; ToolSetstate ; ServerStateclientInitializing(serverStateMap, tools) || serverCallingToolsListserver ; Servertools ; ToolSetstate ; ServerStateChange:serverStateMap' = all pre-registered MCP are in not-running state, tools is empty set & server' is the name of this MCP server, tools is the set of tools provided by this MCP server Event: tauCondition:all in serverStateMap are initializedChange: toolsafterremains the same Event: startCondition: serveris a pre-registered MCPserverand in not-runningstate& s andservermatchChange:serverStateMap' is serverStateMap withserverchanged to not-initialized,toolsafterremains the same &serverafterandtoolsafterremain the same,stateafteris initialstate Event: inputPromptCondition:always transition possibleChange: toolsafterremains the same Event: returnTextCondition:always transition possibleChange: toolsafterremains the same Event: tauCondition:all in serverStateMap are initializedChange: toolsafterremains the same Event: initializeReqCondition: serveris a pre-registered MCPserverand not-initialized & s andservermatchChange:serverStateMap' is serverStateMap withserverchanged to initializing,toolsafterremains the same &serverafter,toolsafter, andstateafterall remain the same Event: inputPromptCondition:always transition possibleChange: toolsafterremains the same Event: returnTextCondition:always transition possibleChange: toolsafterremains the same Event: initializeResCondition: serveris a pre-registered MCPserverand initializing & s andservermatchChange:serverStateMap' is serverStateMap withserverchanged to initialized,toolsafterremains the same &serverafter,toolsafter, andstateafterall remain the same Event: tauCondition:all in serverStateMap are initializedChange: toolsafterremains the same Event: tauCondition:all in serverStateMap are initializedChange: toolsafterremains the same Event: toolsListReqCondition: serveris a pre-registered MCPserverand in initializedstate& s andservermatchChange:serverStateMap' is serverStateMap withserverchanged to waiting fortoolslist,toolsafterremains the same &serverafter,toolsafter, andstateafterall remain the same Event: toolsListResCondition: serveris a pre-registered MCPserverand in initializedstate& s andservermatch, and ts andtoolsmatchChange:serverStateMap' is serverStateMap withserverchanged totoolslist complete,toolsafteristoolswith ts added &serverafter,toolsafter, andstateafterall remain the same Event: inputPromptCondition:always transition possibleChange: toolsafterremains the same Event: returnTextCondition:always transition possibleChange: toolsafterremains the same Event: inputPromptCondition:always transition possibleChange: toolsafterremains the same Event: returnTextCondition:always transition possibleChange: toolsafterremains the same Event: tauCondition:all in serverStateMap are initializedChange: toolsafterremains the same Event: toolsCallReqCondition:tool is included intools& s andservermatchChange: toolsafterremains the same &serverafterandtoolsafterboth remain the same,stateafteris somehow updated (may not be updated) Event: toolsCallResCondition:tool is included intools& s andservermatchChange: toolsafterremains the same &serverafterandtoolsafterboth remain the same,stateafteris somehow updated (may not be updated) Event: inputPromptCondition:always transition possibleChange: toolsafterremains the same Event: returnTextCondition:always transition possibleChange: toolsafterremains the same