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

Function onSubmit

apps/cursor/src/components/forms/edit-mcp.tsx:74–84  ·  view source on GitHub ↗
(values: z.infer<typeof formSchema>)

Source from the content-addressed store, hash-verified

72 });
73
74 const onSubmit = (values: z.infer<typeof formSchema>) => {
75 execute({
76 id: data.id,
77 company_id: values.company_id,
78 name: values.name,
79 description: values.description,
80 link: values.link,
81 logo: values.logo,
82 config: null,
83 });
84 };
85
86 const setLogo = (logo: string) => {
87 form.setValue("logo", logo);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected