Skip to content

Question: How to get a resource argument containing "/" ? #436

@Gelembjuk

Description

@Gelembjuk

I want to make the resource like

@mcp.resource("folder://{path}") def folder_contents(path: str) -> list[str]:

The path should be something like xxx/. or xxx/abc/zzz/

With the @mcp.resource("folder://{path}") it doesn't work. Is there a way to implement it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready for workEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions