mayurrawte

MCP Scope Inspector

Component 1

About

An expandable accordion list that breaks down an OAuth-style MCP permission scope string into resources and permissions with optional human-readable descriptions, for consent/authorization screens.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds MCP Scope Inspector to your project and fits it to your theme.

Code

How MCP Scope Inspector is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { McpScopeInspector } from "@/components/ui/mcp-scope-inspector";

const descriptions: Record<string, string> = {
  "repo:read": "List and read repository contents",
  "repo:write": "Create and modify files",
};

export default function McpScopeInspectorDemo() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center p-8">
      <div className="w-full max-w-md">
        <McpScopeInspector
          scopes="repo:read repo:write"
          descriptions={descriptions}
        />
      </div>
    </div>
  );
}

Dependencies

More by mayurrawte

View all
  • Skeleton

    Skeleton

    2
  • Feedback Buttons

    Feedback Buttons

    1
  • MCP Resource Browser

    MCP Resource Browser

  • Tooltip

    Tooltip

  • MCP App Frame

    MCP App Frame

  • Accordion

    Accordion

  • Counter

    Counter

  • Dropdown Menu

    Dropdown Menu