@@ -1035,7 +1035,7 @@ def delete_instance_auth(
10351035 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response .text )
10361036 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
10371037
1038- def get_server_tools (
1038+ def get_tools (
10391039 self ,
10401040 server_name : McpServerName ,
10411041 * ,
@@ -1200,34 +1200,6 @@ def set_instance_auth(
12001200 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response .text )
12011201 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
12021202
1203- def get_tools (
1204- self , server_name : str , * , request_options : typing .Optional [RequestOptions ] = None
1205- ) -> HttpResponse [None ]:
1206- """
1207- Parameters
1208- ----------
1209- server_name : str
1210-
1211- request_options : typing.Optional[RequestOptions]
1212- Request-specific configuration.
1213-
1214- Returns
1215- -------
1216- HttpResponse[None]
1217- """
1218- _response = self ._client_wrapper .httpx_client .request (
1219- f"mcp-server/tools/{ jsonable_encoder (server_name )} " ,
1220- method = "GET" ,
1221- request_options = request_options ,
1222- )
1223- try :
1224- if 200 <= _response .status_code < 300 :
1225- return HttpResponse (response = _response , data = None )
1226- _response_json = _response .json ()
1227- except JSONDecodeError :
1228- raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response .text )
1229- raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
1230-
12311203 def get_oauth_url (self , * , request_options : typing .Optional [RequestOptions ] = None ) -> HttpResponse [None ]:
12321204 """
12331205 Parameters
@@ -2248,7 +2220,7 @@ async def delete_instance_auth(
22482220 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response .text )
22492221 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
22502222
2251- async def get_server_tools (
2223+ async def get_tools (
22522224 self ,
22532225 server_name : McpServerName ,
22542226 * ,
@@ -2413,34 +2385,6 @@ async def set_instance_auth(
24132385 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response .text )
24142386 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
24152387
2416- async def get_tools (
2417- self , server_name : str , * , request_options : typing .Optional [RequestOptions ] = None
2418- ) -> AsyncHttpResponse [None ]:
2419- """
2420- Parameters
2421- ----------
2422- server_name : str
2423-
2424- request_options : typing.Optional[RequestOptions]
2425- Request-specific configuration.
2426-
2427- Returns
2428- -------
2429- AsyncHttpResponse[None]
2430- """
2431- _response = await self ._client_wrapper .httpx_client .request (
2432- f"mcp-server/tools/{ jsonable_encoder (server_name )} " ,
2433- method = "GET" ,
2434- request_options = request_options ,
2435- )
2436- try :
2437- if 200 <= _response .status_code < 300 :
2438- return AsyncHttpResponse (response = _response , data = None )
2439- _response_json = _response .json ()
2440- except JSONDecodeError :
2441- raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response .text )
2442- raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
2443-
24442388 async def get_oauth_url (
24452389 self , * , request_options : typing .Optional [RequestOptions ] = None
24462390 ) -> AsyncHttpResponse [None ]:
0 commit comments