Skip to content

Commit def96db

Browse files
a-bonuscursoragent
andcommitted
chore: apply Prettier formatting to sheets tools
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 222b4e6 commit def96db

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

src/tools/sheets/copyFormatting.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@ export function register(server: FastMCP) {
1515
.describe(
1616
'The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.'
1717
),
18-
sourceSheetName: z
19-
.string()
20-
.min(1)
21-
.describe('Source sheet/tab name (e.g., "Sheet1").'),
18+
sourceSheetName: z.string().min(1).describe('Source sheet/tab name (e.g., "Sheet1").'),
2219
sourceRange: z
2320
.string()
24-
.describe('A1 notation for the source range (e.g., "A1:D10"). Do not include the sheet name — use sourceSheetName instead.'),
21+
.describe(
22+
'A1 notation for the source range (e.g., "A1:D10"). Do not include the sheet name — use sourceSheetName instead.'
23+
),
2524
destinationSheetName: z
2625
.string()
2726
.min(1)
2827
.describe('Destination sheet/tab name (e.g., "Sheet2").'),
2928
destinationRange: z
3029
.string()
31-
.describe('A1 notation for the destination range (e.g., "A1:D10"). Do not include the sheet name — use destinationSheetName instead.'),
30+
.describe(
31+
'A1 notation for the destination range (e.g., "A1:D10"). Do not include the sheet name — use destinationSheetName instead.'
32+
),
3233
}),
3334
execute: async (args, { log }) => {
3435
const sheets = await getSheetsClient();

src/tools/sheets/deleteSheet.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ export function register(server: FastMCP) {
1717
sheetId: z
1818
.number()
1919
.int()
20-
.describe(
21-
'The numeric sheet ID to delete. Use getSpreadsheetInfo to find sheet IDs.'
22-
),
20+
.describe('The numeric sheet ID to delete. Use getSpreadsheetInfo to find sheet IDs.'),
2321
}),
2422
execute: async (args, { log }) => {
2523
const sheets = await getSheetsClient();
26-
log.info(
27-
`Deleting sheet ID ${args.sheetId} from spreadsheet ${args.spreadsheetId}`
28-
);
24+
log.info(`Deleting sheet ID ${args.sheetId} from spreadsheet ${args.spreadsheetId}`);
2925

3026
try {
3127
await sheets.spreadsheets.batchUpdate({

src/tools/sheets/duplicateSheet.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ export function register(server: FastMCP) {
1717
sheetId: z
1818
.number()
1919
.int()
20-
.describe(
21-
'The numeric sheet ID to duplicate. Use getSpreadsheetInfo to find sheet IDs.'
22-
),
20+
.describe('The numeric sheet ID to duplicate. Use getSpreadsheetInfo to find sheet IDs.'),
2321
newSheetName: z
2422
.string()
2523
.min(1)

src/tools/sheets/renameSheet.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ export function register(server: FastMCP) {
1717
sheetId: z
1818
.number()
1919
.int()
20-
.describe(
21-
'The numeric sheet ID to rename. Use getSpreadsheetInfo to find sheet IDs.'
22-
),
23-
newName: z
24-
.string()
25-
.min(1)
26-
.describe('The new name for the sheet.'),
20+
.describe('The numeric sheet ID to rename. Use getSpreadsheetInfo to find sheet IDs.'),
21+
newName: z.string().min(1).describe('The new name for the sheet.'),
2722
}),
2823
execute: async (args, { log }) => {
2924
const sheets = await getSheetsClient();

0 commit comments

Comments
 (0)