MCPNEW
McpScopeInspector
Expandable scope tree with human-readable descriptions.
Available in
reactangularvuePreview
Live previewreal component
Install
TerminalBash
npx mcp-elements add mcp-scope-inspectorUsage
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} />
}mcp-scope-inspector.component.tsTS
import { Component } from '@angular/core'
import { McpeMcpScopeInspectorComponent } from '@mcp-elements/angular'
@Component({
selector: 'app-scope-inspector-example',
standalone: true,
imports: [McpeMcpScopeInspectorComponent],
template: `<mcpe-mcp-scope-inspector scopes="repo:read repo:write" [descriptions]="descriptions" />`,
})
export class ScopeInspectorExampleComponent {
descriptions: Record<string, string> = {
'repo:read': 'List and read repository contents',
'repo:write': 'Create and modify files',
}
}mcp-scope-inspector.vueVue
<script setup lang="ts">
import { McpeMcpScopeInspector } from '@mcp-elements/vue'
const descriptions: Record<string, string> = {
'repo:read': 'List and read repository contents',
'repo:write': 'Create and modify files',
}
</script>
<template>
<McpeMcpScopeInspector scopes="repo:read repo:write" :descriptions="descriptions" />
</template>Props
| Prop | Type | Default | Description |
|---|---|---|---|
scopes * | string | ScopeDescriptor[] | — | Space-separated scope string (e.g. "repo:read repo:write") or pre-parsed ScopeDescriptor[] |
descriptions | Record<string, string> | — | Human-readable descriptions keyed by raw scope or resource |
className | string | — | Additional CSS classes |