Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No tools, no resources listed in MCP Servers in Cline #81

Open
davideuler opened this issue Jan 14, 2025 · 0 comments
Open

No tools, no resources listed in MCP Servers in Cline #81

davideuler opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@davideuler
Copy link

davideuler commented Jan 14, 2025

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

@github-actions github-actions bot added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant