Skip to content

Commit 69ee55a

Browse files
committed
add list call
1 parent 2217062 commit 69ee55a

File tree

1 file changed

+2
-2
lines changed
  • model-deployment/mcp-servers/stateful-python-example-server

1 file changed

+2
-2
lines changed

model-deployment/mcp-servers/stateful-python-example-server/inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def listTools(url, mcpSessionId):
7878
MCP_SESSION_ID: mcpSessionId
7979
}
8080

81-
request_body = json.dumps({"method":"notifications/initialized","jsonrpc":"2.0"})
81+
request_body = json.dumps({"method":"tools/list","params":{"_meta":{"progressToken":1}},"jsonrpc":"2.0","id":1})
8282
response = requests.request("POST", url, headers=request_headers, data=request_body, auth=get_auth(), verify=False)
8383
print("Listing available tools")
84-
print(response)
84+
print(response.content)
8585

8686

8787
def callTools(url, mcpSessionId):

0 commit comments

Comments
 (0)