Skip to content

Inconsistent default version fallback across tools #42

@tiluckdave

Description

@tiluckdave

What happened?

hound_compare and hound_preinstall pick versions[versions.length - 1] (last), but hound_popular picks versions[0] (first). If the API changes sort order, one of these silently breaks.

What did you expect?

A shared getDefaultVersion(versions) utility is used by all three tools. Add a unit test for the helper.

Steps to reproduce

NA

Which tool?

Not tool-specific / general

Node.js version

NA

hound-mcp version

NA

MCP client

Other

Relevant logs or error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions