Skip to content

Commit 303bbf1

Browse files
committed
show-server-info
1 parent 48a2ae4 commit 303bbf1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,7 @@ async def get_server_info(self) -> ServerInfo:
185185
This method gathers details about the server, including its name, host, port,
186186
instructions, and various assets such as tools, resources, prompts, and resource templates.
187187
188-
Returns:
189-
dict: A dictionary containing the server's information:
190-
- name (str): The name of the server.
191-
- host (str): The host address of the server.
192-
- port (int): The port number the server is running on.
193-
- instructions (str): Instructions or guidelines related to the server.
194-
- assets (dict): A dictionary of server assets:
195-
- tools (list): A list of tools available on the server.
196-
- resources (list): A list of resources available on the server.
197-
- prompts (list): A list of prompts available on the server.
198-
- resource_templates (list): A list of resource templates available on the server.
188+
Returns: ServerInfo
199189
"""
200190
return ServerInfo(
201191
name=self.name,

0 commit comments

Comments
 (0)