gogcli-mcp-gmail 2.0.4 → 2.0.6
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/dist/index.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/tests/tools/gmail-extra.test.ts +2 -19
package/dist/index.js
CHANGED
|
@@ -31090,7 +31090,7 @@ function registerGmailTools(server2) {
|
|
|
31090
31090
|
}
|
|
31091
31091
|
|
|
31092
31092
|
// ../gogcli-mcp/src/server.ts
|
|
31093
|
-
var VERSION = true ? "2.0.
|
|
31093
|
+
var VERSION = true ? "2.0.5" : "0.0.0";
|
|
31094
31094
|
function createServer(options) {
|
|
31095
31095
|
return new McpServer({
|
|
31096
31096
|
name: options?.name ?? "gogcli",
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.3",
|
|
4
4
|
"name": "gogcli-mcp-gmail",
|
|
5
5
|
"display_name": "gogcli (Gmail)",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.6",
|
|
7
7
|
"description": "Extended Gmail for Claude via gogcli — auth + full Gmail support (threads, labels, drafts, attachments, forward, autoreply, bulk operations)",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Chris Hall",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gogcli-mcp-gmail",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"mcpName": "io.github.chrischall/gogcli-mcp-gmail",
|
|
5
5
|
"description": "Extended Gmail MCP server via gogcli — auth + full Gmail support (threads, labels, drafts, attachments, forward, autoreply, bulk operations)",
|
|
6
6
|
"author": "Claude Code (AI) <https://www.anthropic.com/claude>",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
2
|
-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
2
|
import { registerExtraGmailTools } from '../../src/tools/gmail-extra.js';
|
|
4
3
|
import * as lib from '../../../gogcli-mcp/src/lib.js';
|
|
4
|
+
import { setupExtrasHandlers, toText, type ToolHandler } from '../../../gogcli-mcp/tests/helpers/extras-harness.js';
|
|
5
5
|
|
|
6
6
|
vi.mock('../../../gogcli-mcp/src/lib.js', async (importOriginal) => {
|
|
7
7
|
const actual = await importOriginal<typeof lib>();
|
|
@@ -11,29 +11,12 @@ vi.mock('../../../gogcli-mcp/src/lib.js', async (importOriginal) => {
|
|
|
11
11
|
};
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
type ToolHandler = (args: Record<string, unknown>) => Promise<{ content: Array<{ type: string; text: string }> }>;
|
|
15
|
-
|
|
16
|
-
function toText(text: string) {
|
|
17
|
-
return { content: [{ type: 'text', text }] };
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function setupHandlers(): Map<string, ToolHandler> {
|
|
21
|
-
const server = new McpServer({ name: 'test', version: '0.0.0' });
|
|
22
|
-
const handlers = new Map<string, ToolHandler>();
|
|
23
|
-
vi.spyOn(server, 'registerTool').mockImplementation((name, _config, cb) => {
|
|
24
|
-
handlers.set(name, cb as ToolHandler);
|
|
25
|
-
return undefined as never;
|
|
26
|
-
});
|
|
27
|
-
registerExtraGmailTools(server);
|
|
28
|
-
return handlers;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
14
|
let handlers: Map<string, ToolHandler>;
|
|
32
15
|
|
|
33
16
|
beforeEach(() => {
|
|
34
17
|
vi.clearAllMocks();
|
|
35
18
|
vi.mocked(lib.runOrDiagnose).mockResolvedValue(toText('{}'));
|
|
36
|
-
handlers =
|
|
19
|
+
handlers = setupExtrasHandlers(registerExtraGmailTools);
|
|
37
20
|
});
|
|
38
21
|
|
|
39
22
|
describe('gog_gmail_raw', () => {
|