No tools, no resources listed in MCP Servers in Cline
I created the echo mcp server as documented by FastMCP like this :
from fastmcp import FastMCP
mcp = FastMCP("Echo")
@mcp.resource("echo://{message}")
def echo_resource(message: str) -> str:
"""Echo a message as a resource"""
return f"Resource echo: {message}"
@mcp.tool()
def echo_tool(message: str) -> str:
"""Echo a message as a tool"""
return f"Tool echo: {message}"
@mcp.prompt()
def echo_prompt(message: str) -> str:
"""Create an echo prompt"""
return f"Please process this message: {message}"
if __name__ == "__main__":
# Initialize and run the server
mcp.run(transport='stdio')
And configured it in the Cline configurations as:
"echo": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"/Users/david/workspace/agent/oss",
"run",
"echo.py"
]
}
On the MCP Server list of Cline, there isn't any tools listed(However the tools works in conversation). The message shows:
[01/14/25 11:26:56] INFO Processing request of type server.py:432 ListToolsRequest INFO Processing request of type server.py:432 ListResourcesRequest INFO Processing request of type server.py:432 ListResourceTemplatesRequest
For official File and Sqlite MCP Server, there is tools and resources listed. How could I make the tool listed in the MCP Servers?
I also have this issue. The MCP server is running properly, but it keeps showing the above prompt, which prevents me from accessing the tool list. Have you solved this problem?
mcp = FastMCP("Server Name", log_level="ERROR") It defaults to info and spits that logging out to the tool window.
I'm going to close this bc it relates to FastMCP 1 and I'm not sure whether it still applies - if you have an MRE please reopen