Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dynamic resource not working in Claude desktop #263

Open
@Nriver

Description

@Nriver

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
use the demo server in quick start document

# server.py
from mcp.server.fastmcp import FastMCP

# Create an MCP server
mcp = FastMCP("Demo")

@mcp.resource("config://app")
def get_config() -> str:
    """Static configuration data"""
    return "App configuration here"

# dynamic resource
@mcp.resource("greeting://{name}")
def get_greeting(name: str) -> str:
    """Get a personalized greeting"""
    return f"Hello, {name}!"

Claude can not see the dynamic resource, only the static one works.

Expected behavior
Use dynamic resource in Claude

Screenshots

Image

Desktop (please complete the following information):

  • OS: windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions