@danwahl/gemini-cli-mcp 0.1.6 → 0.1.7

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -42,6 +42,11 @@ server.registerTool("cli", {
42
42
  .string()
43
43
  .optional()
44
44
  .describe("Resume a previous Gemini session by ID. The session ID is returned in the structured output of each call."),
45
+ timeout: z
46
+ .number()
47
+ .optional()
48
+ .default(120)
49
+ .describe("Timeout in seconds. Default: 120. Increase for complex multi-step tasks."),
45
50
  },
46
51
  outputSchema: {
47
52
  sessionId: z.string().nullable().describe("Gemini CLI session ID"),
@@ -53,8 +58,8 @@ server.registerTool("cli", {
53
58
  readOnlyHint: false,
54
59
  openWorldHint: true,
55
60
  },
56
- }, async ({ prompt, cwd, model, sessionId }) => {
57
- const timeoutMs = 120_000;
61
+ }, async ({ prompt, cwd, model, sessionId, timeout }) => {
62
+ const timeoutMs = (timeout ?? 120) * 1000;
58
63
  const result = await runGemini(prompt, cwd, model, timeoutMs, sessionId);
59
64
  if (result.isError) {
60
65
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danwahl/gemini-cli-mcp",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "MCP server that exposes Gemini CLI as a single tool for Claude Code",
6
6
  "license": "MIT",
7
7
  "repository": {