Skip to content

homelab_ntfyTopics with no topic always fails (/*/json) #109

Closed

Description

@TMHSDigital

Summary

homelab_ntfyTopics with no topic always fails. It requests /*/json, but ntfy has no wildcard "all topics" subscription.

Where

  • mcp-server/src/tools/ntfyTopics.ts:36-37 (const topicPath = args.topic || "*")
  • :42: only curl exit 7 is special-cased

Details

Stock ntfy topic names must match [-_A-Za-z0-9]{1,64}, so /*/json returns a 4xx. curl -f then exits 22, and the user sees Command exited with code 22. The schema says the tool "Lists all cached messages if omitted". This assumes stock ntfy behavior.

Steps to reproduce

  1. Call homelab_ntfyTopics {}.

Suggested fix

Choose one:

  • make topic required;
  • accept a comma-separated list of topics, which ntfy supports as /t1,t2/json, with an optional HOMELAB_NTFY_TOPICS default.

Either way, update the parameter description and map exit 22 to a helpful message.

Acceptance criteria

  • The default invocation either works or is rejected by the schema with a clear message
  • The description matches the behavior

Getting started

  • Relevant files: mcp-server/src/tools/ntfyTopics.ts
  • How to run tests: cd mcp-server && npm test

Filed by repo-audit/full-audit at 9cfe5e3. Severity: medium. Effort: S. audit-key: bug|mcp-server/src/tools/ntfyTopics.ts|topicPath

Activity

  1. added
    bug
    good first issue
    severity: medium
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions