MCPNEW

McpScopeInspector

Expandable scope tree with human-readable descriptions.

Available inreactangularvue

Preview

Live previewreal component

Install

TerminalBash
npx mcp-elements add mcp-scope-inspector

Usage

mcp-scope-inspector-example.tsxTSX
import { McpScopeInspector } from '@mcp-elements/react'

const descriptions = {
  'repo:read': 'List and read repository contents',
  'repo:write': 'Create and modify files',
}

export function Example() {
  return <McpScopeInspector scopes="repo:read repo:write" descriptions={descriptions} />
}

Props

PropTypeDefaultDescription
scopes *string | ScopeDescriptor[]Space-separated scope string (e.g. "repo:read repo:write") or pre-parsed ScopeDescriptor[]
descriptionsRecord<string, string>Human-readable descriptions keyed by raw scope or resource
classNamestringAdditional CSS classes