Codex CLI
For developers using the Codex CLI.
-
Open your terminal
-
Add the Valency MCP server, pinning the sign-in port:
codex mcp add valency-mcp --url https://labs.valency.io/mcp/ \-c mcp_oauth_callback_port=33418Codex detects that the server uses OAuth and starts sign-in straight away. Complete it when the browser opens, then return to the terminal.
-
If you ever need to sign in again — after a token expires, or if you clear credentials:
codex mcp login valency-mcp -c mcp_oauth_callback_port=33418 -
Start Codex:
codexRun
/mcpinside Codex to confirm Valency is listed with its tools. -
Start a new conversation and ask: "Search for papers about quantum computing" (more prompt ideas)
Success: You see paper results in your terminal. You can also explicitly invoke Valency tool calls.
Need help?
Section titled “Need help?”If something isn't working, check Troubleshooting for common fixes. See the FAQ for general questions, or report an issue if you're still stuck.