Connect iyedy to Gemini CLI
Add iyedy to Gemini CLI as a remote MCP server and work with your architecture diagrams from your terminal. Gemini CLI reads your models, runs iyedy's checks and prepares changes. It never edits a model itself; you, or someone who can edit the diagram, apply each change in iyedy.
On this page
Gemini CLI has no way yet to introduce itself to iyedy by its address. You add iyedy to Gemini CLI's settings.json with iyedy's client ID for Gemini CLI, gemini-cli, and the scopes to ask for. There is no secret.
Before you start
- An iyedy account. Sign in once at app.iyedy.com with the identity you will use from Gemini CLI, and finish creating your account. Gemini CLI sees exactly the diagrams this account can read.
- A recent Gemini CLI, on a computer with a web browser. The sign-in comes back to Gemini CLI on this computer: it does not work over a remote shell or in a container without a browser.
- In an iyedy organisation (Team, Enterprise), access for MCP clients is off until an owner asks support@iyedy.com to turn it on, and Gemini CLI must be on the organisation's list of allowed clients (see In an iyedy organisation). Your personal workspace works right away.
Set up
- Add iyedy to settings.json
Open
~/.gemini/settings.jsonand add iyedy tomcpServers, exactly as here:{ "mcpServers": { "iyedy": { "httpUrl": "https://app.iyedy.com/mcp", "oauth": { "enabled": true, "clientId": "gemini-cli", "scopes": ["cartouche.read", "cartouche.graph", "cartouche.propose", "offline_access"] } } } }Save the file. Keep
httpUrl(noturl) and the four scopes: without them, Gemini CLI asks for scopes that iyedy does not give it, and the sign-in is refused. - Start the sign-in
Start Gemini CLI and type
/mcp auth iyedy. Your browser opens iyedy's sign-in page onauth.iyedy.com. - Sign in to iyedy
Sign in as you do in the app: e-mail and password, Google, or your organisation's single sign-on.
- Approve the access
Check that the page is on
auth.iyedy.comand that it names Gemini CLI, read what Gemini CLI asks for, then select Allow.On auth.iyedy.com · the access page for Gemini CLI The iyedy access page in the browser: the address bar shows auth.iyedy.com, the card says Gemini CLI wants to use your iyedy account, lists four permissions and ends with Deny and Allow.
- The address is auth.iyedy.com. Gemini CLI never sees your password.
- What Gemini CLI will be able to do: read your diagrams, search and analyse impact, preview changes and submit proposals, and stay connected while you are away. Nothing here edits, deletes or shares a diagram. Select Allow only when you are adding iyedy yourself; if this page opens while you are connecting another server, select Deny.
- Allow hands the sign-in back to Gemini CLI, which keeps it for you.
- Ask Gemini CLI
Type
/mcpto see iyedy connected with its tools, then try: “List my iyedy diagrams and explain how the claims platform is built.”You are done when Gemini CLI answers with the names of your own diagrams.
From your shell, the list of servers and their state:
$ gemini mcp listUse it
Name iyedy in your request when you want Gemini CLI to use your diagrams. Try:
- “What depends on the Claims API? Show me the impact across my diagrams.”
- “Run the checks on the Claims Platform diagram and summarise the findings.”
- “Compare the containers view of the Claims Platform with the services in this repository.”
- “Prepare a proposal that adds a Fraud Scoring service called by the Claims API.”
Gemini CLI may ask you to confirm a tool call before it runs it, depending on your settings.
What Gemini CLI can do
Gemini CLI picks the tools from your request. Reading tools never change anything. The two tools that store something only reach a proposal, never the model.
Read and analyse
Diagrams, views, versions, findings, dependencies across diagrams.
Propose a change
Preview a change, then submit it as a proposal that a person reviews in iyedy.
A proposal from Gemini CLI waits in iyedy, labelled with the app it came from, until someone who can edit the diagram applies or rejects it. A proposal nobody handles is deleted 30 days after it was made.
What Gemini CLI sees, what stays in iyedy
- It acts as you. Gemini CLI reaches the same workspaces, diagrams and roles as your iyedy account, never more. A diagram you cannot open does not exist for it.
- Up to a ceiling. Confidential on personal workspaces, Internal on Team and Enterprise. Restricted diagrams are never sent. Values that look like secrets are replaced before they leave iyedy.
- Nothing changes without a person. Gemini CLI can submit a proposal or withdraw its own; you, or someone who can edit the diagram, apply it in iyedy.
- Your data. iyedy does not use your diagrams to train AI models. What Gemini CLI does with what it reads is covered by the terms of the Google account or key it uses.
Full details: Assistants connected through MCP and the Privacy policy.
Disconnect
- In Gemini CLI. Remove iyedy from your settings:
$ gemini mcp remove --scope user iyedy$ gemini mcp remove \ --scope user \ iyedy
Gemini CLI keeps its sign-ins in ~/.gemini/mcp-oauth-tokens.json: delete iyedy's entry there to forget the sign-in too.
- On iyedy's side. There is no screen for this yet: write to support@iyedy.com. Support removes Gemini CLI's access, which also ends its renewals; an access already issued stays valid for the rest of its 15 minutes.
See Sign-in, permissions and disconnecting.
In an iyedy organisation
In Team and Enterprise, access for MCP clients stays off until an owner writes to support@iyedy.com. Gemini CLI connects only when the organisation's list of allowed clients names it: without a list, a Team organisation allows Claude and Claude Code only, and an Enterprise organisation none. The owner asks support to add Gemini CLI. Members then connect with their own iyedy account, under the organisation's ceiling and its single sign-on. See Claude and MCP for your organisation.
If it doesn't work
“No client ID provided and dynamic registration not supported”
The oauth block is missing or misspelt. iyedy never lets a client register itself: copy the block of step 1 again, with clientId, and save.
Gemini CLI reports invalid_scope at once, before any sign-in page
Gemini CLI asked for a scope iyedy does not give it. Keep exactly the four scopes of step 1.
“This organization does not allow Gemini CLI as an MCP client.”
Your iyedy organisation has not added Gemini CLI to its list of allowed clients. An owner asks support to add Gemini CLI. Your personal workspace still works.
More symptoms: Coding assistant troubleshooting.
Was this page helpful?Your answer is anonymous and counts only if you accepted measurement.
What went wrong?
Don't write personal data.