Skip to content

Static manifest with non-array tools lints garbage instead of failing fast #25

Description

@royalpinto007

Problem

A static manifest with "tools": "MCP001" (string) passes normalization and lints garbage (iterating characters) instead of failing fast, likely reporting a green audit.

Where

src/static/manifest.ts (tools: manifest.tools ?? []) + src/rules/permissions.ts (iterates target.tools).

Acceptance

Add a failing test first asserting normalize({tools: "MCP001"}, ...) throws. Then fix.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions