INNER CODE UNIT · TypeScript

buildMcpServer

google/clasp · src/mcp/server.ts:71

export function buildMcpServer(auth: AuthInfo) {
  const server = new McpServer({
    name: 'Clasp',
    version: getVersion(),
  });

  server.tool(
    'push_files',
    'Pushes the local Apps Script project to the remote server.',
    {
      projectDir: z
        .string()
        .describe(
          'The local directory of the Apps Script project to push. Must contain a .clasp.json file containing the project info.',
        ),
    },
    {
      title: 'Push project files to Apps Script',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…