codex - 💡(How to fix) Fix Feature request: make MCP tools discoverable with aliases and @ completion

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

MCP adoption depends on low-friction daily use. If users need to remember exact server or tool names, they will fall back to natural language and lose explicit control. Aliases plus @ discovery give users both speed and intent without adding much syntax.

Code Example

[mcp.aliases]
gh = "github"
br = "browser"
node = "node_repl"
docs = "openai-docs"

---

@gh check PR #123
@br open localhost:3000 and take a screenshot
@node run this JavaScript snippet

---

@browser    open, inspect, click, and screenshot web pages
@github     inspect PRs, issues, CI, and review comments
@node       run JavaScript in a Node REPL

---

/mcp
/tools

---

browser      aliases: @br
github       aliases: @gh
node_repl    aliases: @node

---

Used @browser. Next time you can also write: @br open localhost:3000

---

## Codex aliases
@gh = github
@br = browser
@db = postgres-mcp

---

Unknown tool @githb. Did you mean @github or @gh?
RAW_BUFFERClick to expand / collapse

Feature request: make MCP tools discoverable with aliases and @ completion

Problem

Using MCP tools in Codex is powerful, but the current interaction model asks users to remember long or internal tool names. That slows down common workflows, especially for users who only need a few frequently used tools such as GitHub, Browser, Node REPL, database MCPs, or project-specific integrations.

Natural language routing helps, but it does not fully solve discoverability or user intent. When users want to explicitly choose a tool, the naming surface should be short, searchable, and easy to learn.

Proposal

Add a lightweight tool invocation UX around MCP servers, plugins, and skills:

  1. Support user-defined aliases
[mcp.aliases]
gh = "github"
br = "browser"
node = "node_repl"
docs = "openai-docs"

Then users can write:

@gh check PR #123
@br open localhost:3000 and take a screenshot
@node run this JavaScript snippet
  1. Make @ open a fuzzy-search picker

Typing @ should show available MCP servers, plugins, and skills. The picker should support fuzzy matching and show both the short name and what the tool does:

@browser    open, inspect, click, and screenshot web pages
@github     inspect PRs, issues, CI, and review comments
@node       run JavaScript in a Node REPL
  1. Add /mcp or /tools

Provide a quick command that lists active tools, aliases, and recommended invocation names:

/mcp
/tools

Example output:

browser      aliases: @br
github       aliases: @gh
node_repl    aliases: @node
  1. Prioritize recent tools

The @ picker should show recently used tools first. Most users repeatedly use only a small set of tools, so recency will make the feature feel much faster.

  1. Teach aliases after automatic routing

When Codex automatically selects a tool from natural language, it can occasionally provide a short hint:

Used @browser. Next time you can also write: @br open localhost:3000

This should be limited so it does not become noisy.

  1. Support project-level aliases

Allow teams to define shared aliases in project config or AGENTS.md, for example:

## Codex aliases
@gh = github
@br = browser
@db = postgres-mcp

This makes tool names consistent across a repo.

  1. Suggest corrections for unknown names

If the user types an unknown handle such as @githb, Codex should suggest likely matches:

Unknown tool @githb. Did you mean @github or @gh?

Expected behavior

  • @name means "prefer this tool/capability for the next request".
  • Plain natural language continues to let Codex choose automatically.
  • Users no longer need to memorize long MCP names.
  • Teams can create stable short names for their own MCP integrations.

Why this matters

MCP adoption depends on low-friction daily use. If users need to remember exact server or tool names, they will fall back to natural language and lose explicit control. Aliases plus @ discovery give users both speed and intent without adding much syntax.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • @name means "prefer this tool/capability for the next request".
  • Plain natural language continues to let Codex choose automatically.
  • Users no longer need to memorize long MCP names.
  • Teams can create stable short names for their own MCP integrations.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING