gogcli-mcp-sheets 2.29.1 → 3.0.0
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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +17005 -18983
- package/manifest.json +1 -1
- package/mint.yaml +2 -2
- package/package.json +4 -4
- package/server.json +2 -2
- package/src/tools/sheets-extra.ts +120 -120
- package/tests/tools/sheets-extra.test.ts +5 -10
|
@@ -773,15 +773,10 @@ describe('gog_sheets_links_set', () => {
|
|
|
773
773
|
// so `@-` blocks until the 30 s timeout rather than reading anything. The
|
|
774
774
|
// description must steer callers away from it.
|
|
775
775
|
it('cellsJson description documents @file and rules out @- stdin', async () => {
|
|
776
|
-
const
|
|
777
|
-
const
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
configs.set(name, config as { inputSchema?: Record<string, { description?: string }> });
|
|
781
|
-
return undefined as never;
|
|
782
|
-
});
|
|
783
|
-
registerExtraSheetsTools(server);
|
|
784
|
-
const desc = configs.get('gog_sheets_links_set')?.inputSchema?.cellsJson?.description ?? '';
|
|
776
|
+
const harness = await setupHandlers();
|
|
777
|
+
const listed = (await harness.client.listTools()).tools.find((tool) => tool.name === 'gog_sheets_links_set');
|
|
778
|
+
const properties = listed?.inputSchema.properties as Record<string, { description?: string }> | undefined;
|
|
779
|
+
const desc = properties?.cellsJson?.description ?? '';
|
|
785
780
|
expect(desc).toMatch(/@file/);
|
|
786
781
|
expect(desc).toMatch(/@-/);
|
|
787
782
|
});
|
|
@@ -1747,7 +1742,7 @@ describe('gog_sheets_datasource_delete', () => {
|
|
|
1747
1742
|
// package (index.ts composes auth + base sheets + these extras), because a
|
|
1748
1743
|
// description may legitimately point at a tool another registrar supplies.
|
|
1749
1744
|
it('names only tools this package actually registers', async () => {
|
|
1750
|
-
const { McpServer } = await import('@modelcontextprotocol/
|
|
1745
|
+
const { McpServer } = await import('@modelcontextprotocol/server');
|
|
1751
1746
|
const server = new McpServer({ name: 'test', version: '0.0.0' });
|
|
1752
1747
|
const configs = new Map<string, { description?: string }>();
|
|
1753
1748
|
vi.spyOn(server, 'registerTool').mockImplementation((name, config) => {
|