MCPcopy Index your code
hub / github.com/Waishnav/devspace / toolWidgetDescriptorMeta

Function toolWidgetDescriptorMeta

src/server.ts:126–140  ·  view source on GitHub ↗
(
  config: ServerConfig,
  kind: ToolWidgetKind,
)

Source from the content-addressed store, hash-verified

124}
125
126function toolWidgetDescriptorMeta(
127 config: ServerConfig,
128 kind: ToolWidgetKind,
129): ToolWidgetDescriptorMeta {
130 if (!shouldAttachWidget(config.widgets, kind)) return { _meta: {} };
131
132 return {
133 _meta: {
134 ui: {
135 resourceUri: WORKSPACE_APP_URI,
136 visibility: ["model"],
137 },
138 },
139 };
140}
141
142interface ToolNames {
143 openWorkspace: "open_workspace";

Callers 2

createMcpServerFunction · 0.85

Calls 1

shouldAttachWidgetFunction · 0.85

Tested by

no test coverage detected