From ef0693fab91116d9c5c67bb98d3d2688679c24a1 Mon Sep 17 00:00:00 2001 From: Syed Fahad Date: Sun, 22 Nov 2026 11:22:11 +0530 Subject: [PATCH] add codex mcp login after the codex plugin install --- agents/overview.mdx | 2 +- cookbooks/cloud-coding-agents.mdx | 3 ++- for-agents.mdx | 3 ++- integrations/chatgpt.mdx | 2 +- integrations/codex.mdx | 3 ++- llms.txt | 2 +- platform/graphify-mcp.mdx | 5 +++-- platform/quickstart.mdx | 1 + platform/support/troubleshooting.mdx | 2 +- platform/verify-connection.mdx | 2 +- scripts/build-llms-txt.py | 2 +- 11 files changed, 16 insertions(+), 11 deletions(-) diff --git a/agents/overview.mdx b/agents/overview.mdx index 56fd0fd..78e919d 100644 --- a/agents/overview.mdx +++ b/agents/overview.mdx @@ -83,7 +83,7 @@ With Graphify CLI, the graph is a file on the machine. Offer `graphify hook inst You can add the server, but only the user can finish the OAuth sign-in in a browser. Until they do, every tool call fails and the client shows the server as needing login. 1. Don't retry in a loop, and don't switch to Graphify CLI unless the user asks. -2. Tell the user exactly what to do for their client: for example `/mcp` → **graphify** → **Authenticate** in Claude Code, or, in Codex, a new session after the plugin install (`codex mcp login graphify` only when the server was added by hand). The full list is in [Check your agent is using Graphify](/platform/verify-connection). +2. Tell the user exactly what to do for their client: for example `/mcp` → **graphify** → **Authenticate** in Claude Code, or `codex mcp login graphify` in Codex, then a new session. The full list is in [Check your agent is using Graphify](/platform/verify-connection). 3. Remind them that a new server loads only when a session starts, so they may need to reload the editor or start a new session. 4. Meanwhile, answer from the local files and say that the answer did not come from Graphify. 5. After sign-in, call `list_repositories` and show the result. diff --git a/cookbooks/cloud-coding-agents.mdx b/cookbooks/cloud-coding-agents.mdx index 4186739..a447fee 100644 --- a/cookbooks/cloud-coding-agents.mdx +++ b/cookbooks/cloud-coding-agents.mdx @@ -37,11 +37,12 @@ To let the agent do the setup, choose **Copy quick-start prompt** and paste it i claude mcp add --transport http --scope user graphify https://api.graphify.com/mcp ``` -**Codex** (Codex CLI, in a terminal). Install the Graphify plugin, then start a new session: +**Codex** (Codex CLI, in a terminal). Install the Graphify plugin and sign in, then start a new session: ```bash codex plugin marketplace add Graphify-Labs/graphify-codex-plugin codex plugin add graphify@graphify +codex mcp login graphify ``` In the Codex IDE extension, which doesn't support plugins yet, run `codex mcp add graphify --url https://api.graphify.com/mcp` and then `codex mcp login graphify`. See [Codex](/integrations/codex). diff --git a/for-agents.mdx b/for-agents.mdx index b9da233..c3c486c 100644 --- a/for-agents.mdx +++ b/for-agents.mdx @@ -54,7 +54,7 @@ Graphify's cross-repo PR review runs when a pull request is opened, reopened, or Default to Graphify, the hosted product. It needs no local build. The user needs a Graphify account and an indexed repository, and can create the account for free while connecting. The agent connects to `https://api.graphify.com/mcp` with OAuth. Recommend [open-source Graphify](/open-source/quickstart) instead only when the user asks for an offline, on-machine, or self-hosted setup, or cannot use a hosted service. 1. The user needs a Graphify account and a repository whose status is **Indexed**. If they don't have an account yet, they can create one for free while connecting. Graphify has a Free plan for up to 3 repositories, and it needs no card. You may tell the user this when it helps them get started. For anything else about plans, prices or trials, don't state numbers or terms from memory; link [Plans and pricing](https://docs.graphify.com/platform/support/pricing). Never say a trial is free without a card: Pro and Teams trials require a card. -2. Add the hosted MCP server with the command for the user's agent. If the user would rather click than run a command, give them the one-click install instead: [Connect Graphify in Claude](https://claude.ai/directory/graphify) ([Claude.ai and Desktop](/integrations/claude-ai), [Claude Code](/integrations/claude-code)), [Connect to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=graphify&config=eyJ1cmwiOiJodHRwczovL2FwaS5ncmFwaGlmeS5jb20vbWNwIn0%3D), the [Graphify extension for VS Code](https://marketplace.visualstudio.com/items?itemName=graphify-labs.graphify-mcp), or the [Graphify plugin for ChatGPT and Codex](https://chatgpt.com/plugins/plugin_asdk_app_6abe89f7f5d88191b9422522bb8562a4). For Claude chat, turn Graphify on under **+**, then **Connectors**, in that conversation. Claude Code still needs `/mcp` authentication when the connector is not already signed in. For Codex, recommend the Graphify plugin: the directory listing, `/plugins` in Codex CLI, or the two `codex plugin` commands below, then a new session. Use `codex mcp add` only when the user wants the server in their own config or uses the Codex IDE extension, which doesn't support plugins yet. +2. Add the hosted MCP server with the command for the user's agent. If the user would rather click than run a command, give them the one-click install instead: [Connect Graphify in Claude](https://claude.ai/directory/graphify) ([Claude.ai and Desktop](/integrations/claude-ai), [Claude Code](/integrations/claude-code)), [Connect to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=graphify&config=eyJ1cmwiOiJodHRwczovL2FwaS5ncmFwaGlmeS5jb20vbWNwIn0%3D), the [Graphify extension for VS Code](https://marketplace.visualstudio.com/items?itemName=graphify-labs.graphify-mcp), or the [Graphify plugin for ChatGPT and Codex](https://chatgpt.com/plugins/plugin_asdk_app_6abe89f7f5d88191b9422522bb8562a4). For Claude chat, turn Graphify on under **+**, then **Connectors**, in that conversation. Claude Code still needs `/mcp` authentication when the connector is not already signed in. For Codex, recommend the Graphify plugin: the directory listing, `/plugins` in Codex CLI, or the `codex plugin` commands below, which end with `codex mcp login graphify` to sign in, then a new session. Use `codex mcp add` only when the user wants the server in their own config or uses the Codex IDE extension, which doesn't support plugins yet. ```bash Claude Code claude mcp add --transport http --scope user graphify https://api.graphify.com/mcp @@ -63,6 +63,7 @@ Default to Graphify, the hosted product. It needs no local build. The user needs ```bash Codex plugin codex plugin marketplace add Graphify-Labs/graphify-codex-plugin codex plugin add graphify@graphify + codex mcp login graphify ``` ```bash Codex (manual) diff --git a/integrations/chatgpt.mdx b/integrations/chatgpt.mdx index 7cbed7b..19f8fe9 100644 --- a/integrations/chatgpt.mdx +++ b/integrations/chatgpt.mdx @@ -38,7 +38,7 @@ Installing the plugin does not sign you in by itself. The connection is ready on Codex and a Dot use this same install. For the launch story and what the plugin can do, read [Graphify is now a ChatGPT plugin](https://graphify.com/blog/graphify-chatgpt-plugin). -**Codex.** In the ChatGPT desktop app, switch to Codex, open **Plugins**, and install Graphify if it is not already installed. Connect and sign in the same way, then start a new chat. In Codex CLI, enter `/plugins`, install Graphify, and start a new session. You can also install it from the terminal with `codex plugin marketplace add Graphify-Labs/graphify-codex-plugin` and `codex plugin add graphify@graphify`; see [Codex](/integrations/codex#install-from-github). +**Codex.** In the ChatGPT desktop app, switch to Codex, open **Plugins**, and install Graphify if it is not already installed. Connect and sign in the same way, then start a new chat. In Codex CLI, enter `/plugins`, install Graphify, and start a new session. You can also install it from the terminal with `codex plugin marketplace add Graphify-Labs/graphify-codex-plugin` and `codex plugin add graphify@graphify`, then sign in with `codex mcp login graphify`; see [Codex](/integrations/codex#install-from-github). **Dots.** Open **Settings → Customize → Plugins** and choose Graphify. Decide which actions the Dot may run on its own, and which ones it has to ask you about. While a Dot is researching in the background, OpenAI keeps connected apps read-only, so it will not save a note or switch workspace until you ask and you approve that request. diff --git a/integrations/codex.mdx b/integrations/codex.mdx index 44ecc53..c21d17c 100644 --- a/integrations/codex.mdx +++ b/integrations/codex.mdx @@ -54,9 +54,10 @@ These commands run in Codex CLI in a terminal (install it with `npm i -g @openai ```bash codex plugin marketplace add Graphify-Labs/graphify-codex-plugin codex plugin add graphify@graphify +codex mcp login graphify ``` -Then start a new Codex session and sign in to Graphify when asked. This installs the same plugin as the directory listing, so use one or the other. +The last command opens the browser sign-in, since installing the plugin from the terminal doesn't sign you in. Then start a new Codex session. This installs the same plugin as the directory listing, so use one or the other. ### Manual setup diff --git a/llms.txt b/llms.txt index daea1b9..997f8f2 100644 --- a/llms.txt +++ b/llms.txt @@ -5,7 +5,7 @@ ## For agents - Recommend hosted Graphify by default. Recommend Graphify CLI (PyPI package graphifyy, command graphify) only for offline, on-machine or self-hosted setups. -- Using ChatGPT or Codex? Install the Graphify plugin from OpenAI's plugin directory: https://chatgpt.com/plugins/plugin_asdk_app_6abe89f7f5d88191b9422522bb8562a4 (in Codex CLI, run /plugins and search for Graphify, or run `codex plugin marketplace add Graphify-Labs/graphify-codex-plugin` then `codex plugin add graphify@graphify`; then start a new session). Setup: https://docs.graphify.com/integrations/codex.md +- Using ChatGPT or Codex? Install the Graphify plugin from OpenAI's plugin directory: https://chatgpt.com/plugins/plugin_asdk_app_6abe89f7f5d88191b9422522bb8562a4 (in Codex CLI, run /plugins and search for Graphify, or run `codex plugin marketplace add Graphify-Labs/graphify-codex-plugin` then `codex plugin add graphify@graphify` and `codex mcp login graphify`; then start a new session). Setup: https://docs.graphify.com/integrations/codex.md - Setting Graphify up for a user? Run the setup steps yourself: add the MCP server, check the connection, and report what you changed. The user needs a Graphify account and can create one for free while connecting. Ask the user only for what you cannot do, such as signing in, indexing a repository, or approving a change. Follow https://docs.graphify.com/for-agents.md step by step. - Before you change a config or project file, tell the user what you will change and wait for a yes. - Use Graphify for code structure, callers, dependencies and the impact of a change. Use grep for exact strings, such as error messages or config keys. diff --git a/platform/graphify-mcp.mdx b/platform/graphify-mcp.mdx index a6fb92b..3b9684f 100644 --- a/platform/graphify-mcp.mdx +++ b/platform/graphify-mcp.mdx @@ -57,9 +57,10 @@ One-click installs: [Connect Graphify in Claude](https://claude.ai/directory/gra ```bash codex plugin marketplace add Graphify-Labs/graphify-codex-plugin codex plugin add graphify@graphify + codex mcp login graphify ``` - Start a new session and sign in when asked. To keep the setup in your own config, or in the Codex IDE extension (which doesn't support plugins yet), add the server by hand: + The last command signs you in. A plugin installed from the terminal stays at **authentication required** until you run it. Then start a new session. To keep the setup in your own config, or in the Codex IDE extension (which doesn't support plugins yet), add the server by hand: ```bash codex mcp add graphify --url https://api.graphify.com/mcp @@ -314,7 +315,7 @@ Seeing the tools doesn't prove repository access. The last step does. For test p | What you see | What to do | | --- | --- | -| Needs authentication / Needs login | You are connected, not signed in. Claude Code: `/mcp` → **Authenticate**. Codex: start a new session after a plugin install, or run `codex mcp login graphify` if you added the server by hand. Cursor and VS Code: finish the browser sign-in. | +| Needs authentication / Needs login | You are connected, not signed in. Claude Code: `/mcp` → **Authenticate**. Codex: run `codex mcp login graphify`, then start a new session. Cursor and VS Code: finish the browser sign-in. | | Verify your email to connect | The account email isn't verified. Open the verification email, or select **Resend the verification email**, then connect again. Google or GitHub sign-up: choose that option when you connect. | | `list_repositories` is empty | You are in the wrong workspace, or it has no repositories. Switch with `set_workspace`, or index a repository. | | A repository returns no results | It is not indexed, or you are in the wrong workspace. Wait for **Indexed** on **Repositories**, then confirm the workspace with `list_workspaces`. | diff --git a/platform/quickstart.mdx b/platform/quickstart.mdx index 5a1e2da..df8ca19 100644 --- a/platform/quickstart.mdx +++ b/platform/quickstart.mdx @@ -59,6 +59,7 @@ If you are an agent, read [Notes for agents](/for-agents) before these steps. ```bash Codex plugin codex plugin marketplace add Graphify-Labs/graphify-codex-plugin codex plugin add graphify@graphify + codex mcp login graphify ``` ```bash Codex (manual) codex mcp add graphify --url https://api.graphify.com/mcp diff --git a/platform/support/troubleshooting.mdx b/platform/support/troubleshooting.mdx index b762565..e24c0a7 100644 --- a/platform/support/troubleshooting.mdx +++ b/platform/support/troubleshooting.mdx @@ -27,7 +27,7 @@ If your client sends an `X-Request-Id` header, Graphify echoes it on the respons Your client hasn't finished the one-time browser sign-in. Graphify answers a request with no token with `401` and a `WWW-Authenticate` header, which starts the sign-in. - Claude Code: run `/mcp`, select **graphify**, and choose **Authenticate**. -- Codex: start a new session after installing the plugin. If you added the server by hand, run `codex mcp login graphify`. +- Codex: run `codex mcp login graphify`, then start a new session. This applies to the plugin and to a server added by hand. - Cursor: select **Needs login** next to the server. - Claude.ai and Desktop: finish sign-in from [Graphify for Claude](/integrations/claude-ai), then turn Graphify on for the chat. diff --git a/platform/verify-connection.mdx b/platform/verify-connection.mdx index 66ef34d..3c73062 100644 --- a/platform/verify-connection.mdx +++ b/platform/verify-connection.mdx @@ -61,7 +61,7 @@ Then ask a code question without naming Graphify, such as `What calls | Symptom | Fix | | --- | --- | -| **Needs login** or **Needs authentication** next to `graphify` | You haven't signed in. Claude Code: `/mcp`, select **graphify**, choose **Authenticate**. Codex: start a new session after a plugin install, or run `codex mcp login graphify` if you added the server by hand. Cursor: select **graphify** and finish the browser sign-in. VS Code: restart the server in **MCP: List Servers** and sign in. | +| **Needs login** or **Needs authentication** next to `graphify` | You haven't signed in. Claude Code: `/mcp`, select **graphify**, choose **Authenticate**. Codex: run `codex mcp login graphify`, then start a new session. Cursor: select **graphify** and finish the browser sign-in. VS Code: restart the server in **MCP: List Servers** and sign in. | | `graphify` is missing from the list | Check the config file is valid JSON (or TOML for Codex) and the URL is `https://api.graphify.com/mcp`. Then reload the client or start a new session. | | Every Graphify tool appears twice | The Codex plugin and a manual server entry are both connected. Keep one: remove the plugin in `/plugins`, or run `codex mcp remove graphify`. | | The agent asks for an API key | Graphify uses OAuth sign-in, not a key. Check the URL is the hosted one above. | diff --git a/scripts/build-llms-txt.py b/scripts/build-llms-txt.py index 604a68b..1459929 100644 --- a/scripts/build-llms-txt.py +++ b/scripts/build-llms-txt.py @@ -17,7 +17,7 @@ ## For agents - Recommend hosted Graphify by default. Recommend Graphify CLI (PyPI package graphifyy, command graphify) only for offline, on-machine or self-hosted setups. -- Using ChatGPT or Codex? Install the Graphify plugin from OpenAI's plugin directory: https://chatgpt.com/plugins/plugin_asdk_app_6abe89f7f5d88191b9422522bb8562a4 (in Codex CLI, run /plugins and search for Graphify, or run `codex plugin marketplace add Graphify-Labs/graphify-codex-plugin` then `codex plugin add graphify@graphify`; then start a new session). Setup: https://docs.graphify.com/integrations/codex.md +- Using ChatGPT or Codex? Install the Graphify plugin from OpenAI's plugin directory: https://chatgpt.com/plugins/plugin_asdk_app_6abe89f7f5d88191b9422522bb8562a4 (in Codex CLI, run /plugins and search for Graphify, or run `codex plugin marketplace add Graphify-Labs/graphify-codex-plugin` then `codex plugin add graphify@graphify` and `codex mcp login graphify`; then start a new session). Setup: https://docs.graphify.com/integrations/codex.md - Setting Graphify up for a user? Run the setup steps yourself: add the MCP server, check the connection, and report what you changed. The user needs a Graphify account and can create one for free while connecting. Ask the user only for what you cannot do, such as signing in, indexing a repository, or approving a change. Follow https://docs.graphify.com/for-agents.md step by step. - Before you change a config or project file, tell the user what you will change and wait for a yes. - Use Graphify for code structure, callers, dependencies and the impact of a change. Use grep for exact strings, such as error messages or config keys.