Skip to content

Commit a8338b3

Browse files
author
Michael Brunner
committed
Add Gemini CLI integration guide for MCP servers in documentation
1 parent d37fcb0 commit a8338b3

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

docs/img/console.gif

-415 KB
Loading

docs/img/mcp/gemini-mcp.gif

Lines changed: 3 additions & 0 deletions
Loading

docs/mcp.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,31 @@ To use the Cadwork Python API documentation as an MCP server, you need to config
7171

7272
[VS Code MCP Documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers){target=_blank}
7373

74-
## Usage
74+
??? note "Gemini CLI"
75+
Gemini CLI supports MCP servers natively through its command-line interface.
76+
77+
**Prerequisites**: Install the Gemini CLI first:
78+
79+
```bash
80+
npm install -g @google/gemini-cli@latest
81+
```
82+
83+
**Add the server**:
84+
85+
```bash
86+
gemini mcp add --transport http cadwork-pyapi https://pyapi.mcp.cadwork.dev/mcp
87+
```
88+
89+
**Verify the connection**:
90+
91+
```bash
92+
gemini mcp list
93+
```
94+
95+
Once added, the Cadwork Python API documentation will be automatically available when you interact with Gemini CLI.
96+
97+
<figure markdown="1">
98+
![Gemini MCP Demo](img/mcp/gemini-mcp.gif){width=600}
99+
</figure>
75100

76-
Once configured, prompt your request to your AI coding assistant and it will automatically query the Cadwork Python API documentation to help you write grounded scripts to our Cadwork Python API.
101+
[Gemini MCP Guide](https://geminicli.com/docs/tools/mcp-server){target=_blank}

0 commit comments

Comments
 (0)