MCPcopy Create free account
hub / github.com/cursor/community-plugins / defineMetadataSchema

Function defineMetadataSchema

apps/cursor/src/actions/safe-action.ts:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 return DEFAULT_SERVER_ERROR_MESSAGE;
21 },
22 defineMetadataSchema() {
23 return z.object({
24 actionName: z.string(),
25 });
26 },
27}).use(async ({ next, metadata }) => {
28 const result = await next();
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected