mcp-gsheets 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +12 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26494,6 +26494,13 @@ function parseJsonInput(input, propertyName) {
26494
26494
  return input;
26495
26495
  }
26496
26496
 
26497
+ // src/utils/tool-schema.ts
26498
+ function toInputSchema(schema) {
26499
+ const jsonSchema = external_exports.toJSONSchema(schema, { io: "input" });
26500
+ delete jsonSchema.$schema;
26501
+ return jsonSchema;
26502
+ }
26503
+
26497
26504
  // src/tools/format-cells.ts
26498
26505
  var colorSchema = external_exports.object({
26499
26506
  red: external_exports.number().min(0).max(1).optional(),
@@ -26545,11 +26552,7 @@ var formatCellsInputSchema = external_exports.object({
26545
26552
  var formatCellsTool = {
26546
26553
  name: "sheets_format_cells",
26547
26554
  description: "Format cells in a Google Sheet (colors, fonts, alignment, number formats)",
26548
- inputSchema: {
26549
- type: "object",
26550
- properties: formatCellsInputSchema.shape,
26551
- required: ["spreadsheetId", "range", "format"]
26552
- }
26555
+ inputSchema: toInputSchema(formatCellsInputSchema)
26553
26556
  };
26554
26557
  async function formatCellsHandler(input) {
26555
26558
  try {
@@ -26659,11 +26662,7 @@ var updateBordersInputSchema = external_exports.object({
26659
26662
  var updateBordersTool = {
26660
26663
  name: "sheets_update_borders",
26661
26664
  description: "Update borders of cells in a Google Sheet",
26662
- inputSchema: {
26663
- type: "object",
26664
- properties: updateBordersInputSchema.shape,
26665
- required: ["spreadsheetId", "range", "borders"]
26666
- }
26665
+ inputSchema: toInputSchema(updateBordersInputSchema)
26667
26666
  };
26668
26667
  async function updateBordersHandler(input) {
26669
26668
  try {
@@ -26741,20 +26740,12 @@ var unmergeCellsInputSchema = external_exports.object({
26741
26740
  var mergeCellsTool = {
26742
26741
  name: "sheets_merge_cells",
26743
26742
  description: "Merge cells in a Google Sheet",
26744
- inputSchema: {
26745
- type: "object",
26746
- properties: mergeCellsInputSchema.shape,
26747
- required: ["spreadsheetId", "range", "mergeType"]
26748
- }
26743
+ inputSchema: toInputSchema(mergeCellsInputSchema)
26749
26744
  };
26750
26745
  var unmergeCellsTool = {
26751
26746
  name: "sheets_unmerge_cells",
26752
26747
  description: "Unmerge cells in a Google Sheet",
26753
- inputSchema: {
26754
- type: "object",
26755
- properties: unmergeCellsInputSchema.shape,
26756
- required: ["spreadsheetId", "range"]
26757
- }
26748
+ inputSchema: toInputSchema(unmergeCellsInputSchema)
26758
26749
  };
26759
26750
  async function mergeCellsHandler(input) {
26760
26751
  try {
@@ -26907,11 +26898,7 @@ var addConditionalFormattingInputSchema = external_exports.object({
26907
26898
  var addConditionalFormattingTool = {
26908
26899
  name: "sheets_add_conditional_formatting",
26909
26900
  description: "Add conditional formatting rules to a Google Sheet",
26910
- inputSchema: {
26911
- type: "object",
26912
- properties: addConditionalFormattingInputSchema.shape,
26913
- required: ["spreadsheetId", "rules"]
26914
- }
26901
+ inputSchema: toInputSchema(addConditionalFormattingInputSchema)
26915
26902
  };
26916
26903
  async function addConditionalFormattingHandler(input) {
26917
26904
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-gsheets",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "mcpName": "io.github.freema/mcp-gsheets",
5
5
  "description": "Model Context Protocol (MCP) server for Google Sheets API integration",
6
6
  "author": "freema",