client_server_formal
clientReady(tools) || serverCallingToolsList
server ; Server
tools ; ToolSet
state ; ServerState
clientInitializing(serverStateMap, tools) || serverNotInitialized
server ; Server
tools ; ToolSet
state ; ServerState
clientReady(tools) || serverNotInitialized
server ; Server
tools ; ToolSet
state ; ServerState
clientInitializing(serverStateMap, tools) || serverInitialized
server ; Server
tools ; ToolSet
state ; ServerState
clientReady(tools) || serverInitialized
server ; Server
tools ; ToolSet
state ; ServerState
clientProcessing(tools) || serverCallingToolsList
server ; Server
tools ; ToolSet
state ; ServerState
clientProcessing(tools) || serverNotRunning
server ; Server
tools ; ToolSet
clientInitializing(serverStateMap, tools) || serverInitializing
server ; Server
tools ; ToolSet
state ; ServerState
clientProcessing(tools) || serverInitialized
server ; Server
tools ; ToolSet
state ; ServerState
clientProcessing(tools) || serverInitializing
server ; Server
tools ; ToolSet
state ; ServerState
clientInitializing(serverStateMap, tools) || serverNotRunning
server ; Server
tools ; ToolSet
clientReady(tools) || serverNotRunning
server ; Server
tools ; ToolSet
clientProcessing(tools) || serverNotInitialized
server ; Server
tools ; ToolSet
state ; ServerState
clientReady(tools) || serverInitializing
server ; Server
tools ; ToolSet
state ; ServerState
clientCallingMCPServer(tools) || serverCallingToolsCall
server ; Server
tools ; ToolSet
state ; ServerState
clientInitializing(serverStateMap, tools) || serverCallingToolsList
server ; Server
tools ; ToolSet
state ; ServerState
Change:
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:
tau
Condition:
all in serverStateMap are initialized
Change:
tools
after
remains the same
Event:
start
Condition:
server
is a pre-registered MCP
server
and in not-running
state
& s and
server
match
Change:
serverStateMap' is serverStateMap with
server
changed to not-initialized,
tools
after
remains the same &
server
after
and
tools
after
remain the same,
state
after
is initial
state
Event:
inputPrompt
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
returnText
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
tau
Condition:
all in serverStateMap are initialized
Change:
tools
after
remains the same
Event:
initializeReq
Condition:
server
is a pre-registered MCP
server
and not-initialized & s and
server
match
Change:
serverStateMap' is serverStateMap with
server
changed to initializing,
tools
after
remains the same &
server
after
,
tools
after
, and
state
after
all remain the same
Event:
inputPrompt
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
returnText
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
initializeRes
Condition:
server
is a pre-registered MCP
server
and initializing & s and
server
match
Change:
serverStateMap' is serverStateMap with
server
changed to initialized,
tools
after
remains the same &
server
after
,
tools
after
, and
state
after
all remain the same
Event:
tau
Condition:
all in serverStateMap are initialized
Change:
tools
after
remains the same
Event:
tau
Condition:
all in serverStateMap are initialized
Change:
tools
after
remains the same
Event:
toolsListReq
Condition:
server
is a pre-registered MCP
server
and in initialized
state
& s and
server
match
Change:
serverStateMap' is serverStateMap with
server
changed to waiting for
tools
list,
tools
after
remains the same &
server
after
,
tools
after
, and
state
after
all remain the same
Event:
toolsListRes
Condition:
server
is a pre-registered MCP
server
and in initialized
state
& s and
server
match, and ts and
tools
match
Change:
serverStateMap' is serverStateMap with
server
changed to
tools
list complete,
tools
after
is
tools
with ts added &
server
after
,
tools
after
, and
state
after
all remain the same
Event:
inputPrompt
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
returnText
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
inputPrompt
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
returnText
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
tau
Condition:
all in serverStateMap are initialized
Change:
tools
after
remains the same
Event:
toolsCallReq
Condition:
tool is included in
tools
& s and
server
match
Change:
tools
after
remains the same &
server
after
and
tools
after
both remain the same,
state
after
is somehow updated (may not be updated)
Event:
toolsCallRes
Condition:
tool is included in
tools
& s and
server
match
Change:
tools
after
remains the same &
server
after
and
tools
after
both remain the same,
state
after
is somehow updated (may not be updated)
Event:
inputPrompt
Condition:
always transition possible
Change:
tools
after
remains the same
Event:
returnText
Condition:
always transition possible
Change:
tools
after
remains the same