Skip to content

tools/list returns head_file twice, no tail_file #54

@arbal

Description

@arbal

Great server, it had been working great but recent version has head_file listed twice in tools/list and no tail_file.

Looks like src/tools/tail_file.rs has the head_file metadata in it

src/tools/tail_file.rs#L10

// head_file
#[mcp_tool(
    name = "head_file",
    title="Head file",
    description = concat!("Reads and returns the last N lines of a text file.",
    "This is useful for quickly previewing file contents without loading the entire file into memory.",
    "If the file has fewer than N lines, the entire file will be returned.",
    "Only works within allowed directories."),
    destructive_hint = false,
    idempotent_hint = false,
    open_world_hint = false,
    read_only_hint = true
)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions