MCPcopy Index your code
hub / github.com/callstack/agent-device / listMcpCommandMetadata

Function listMcpCommandMetadata

src/commands/command-metadata.ts:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19export function listMcpCommandMetadata(): AnyCommandMetadata[] {
20 return listMcpExposedCommandNames().map((name) => {
21 const metadata = findCommandMetadata(name);
22 if (!metadata) {
23 throw new Error(`Missing command metadata for MCP-exposed command: ${name}`);
24 }
25 return metadata;
26 });
27}
28
29export function listCommandMetadataNames(): CommandName[] {
30 return [...commandMetadataMap.keys()].sort();

Callers 2

listCommandToolsFunction · 0.90

Calls 2

findCommandMetadataFunction · 0.85

Tested by

no test coverage detected