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>
);
}








