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

Skip to content

runtime error: index out of range [4] with length 3 #8

@jdriscoll98

Description

@jdriscoll98

Not sure what went wrong here , just tried to run a quick test and got this error

mcp > call read_file {"path": "~/.cursor/mcp.json"}
panic: runtime error: index out of range [4] with length 3

goroutine 1 [running]:
main.main.newShellCmd.func8(0x140000fa500?, {0x140000ae500, 0x4, 0x100931fe7?})
github.com/f/mcptools/cmd/mcptools/main.go:688 +0x14b4
github.com/spf13/cobra.(*Command).execute(0x140000ff808, {0x140000ae500, 0x4, 0x4})
github.com/spf13/[email protected]/command.go:1019 +0x810
github.com/spf13/cobra.(*Command).ExecuteC(0x140000fe008)
github.com/spf13/[email protected]/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1071
main.main()
github.com/f/mcptools/cmd/mcptools/main.go:64 +0x314

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions