fastmcp icon indicating copy to clipboard operation
fastmcp copied to clipboard

No tools, no resources listed in MCP Servers in Cline

Open davideuler opened this issue 11 months ago • 2 comments

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

image

For official File and Sqlite MCP Server, there is tools and resources listed. How could I make the tool listed in the MCP Servers? image

davideuler avatar Jan 14 '25 03:01 davideuler

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?

astonish921 avatar Mar 07 '25 13:03 astonish921

mcp = FastMCP("Server Name", log_level="ERROR") It defaults to info and spits that logging out to the tool window.

Michaelzag avatar Mar 11 '25 13:03 Michaelzag

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

jlowin avatar May 29 '25 02:05 jlowin