Skip to content

MCP tool naming scheme #8174

@mrud

Description

@mrud

What version of Codex is running?

0.73.0

What subscription do you have?

Enterprise

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

I added the google workspace mcp via https://github.com/gemini-cli-extensions/workspace and now I am getting:

■ {
  "error": {
    "message": "Invalid 'tools[48].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.",
    "type": "invalid_request_error",
    "param": "tools[48].name",
    "code": "invalid_value"
  }
}

https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names explicitly lists dots as allowed.

  • google-workspace
    • Status: enabled
calendar.respondToEvent, calendar.updateEvent, chat.findDmByEmail, chat.findSpaceByName, chat.getMessages, chat.listSpaces, chat.listThreads, chat.sendDm, chat.sendMessage,
chat.setUpSpace, docs.appendText, docs.create, docs.extractIdFromUrl, docs.find, docs.getText, docs.insertText, docs.move, docs.replaceText, drive.downloadFile, drive.findFolder,
drive.search, gmail.createDraft, gmail.get, gmail.listLabels, gmail.modify, gmail.search, gmail.send, gmail.sendDraft, people.getMe, people.getUserProfile, sheets.find,
sheets.getMetadata, sheets.getRange, sheets.getText, slides.find, slides.getMetadata, slides.getText, time.getCurrentDate, time.getCurrentTime, time.getTimeZone
    • Resources: (none)
    • Resource templates: (none)

What steps can reproduce the bug?

git clone https://github.com/gemini-cli-extensions/workspace
cd workspace && npm install && npm build && codex mcp add gsuite -- node $PWD/workspace-server/dist/index.js
echo fail || codex exec

What is the expected behavior?

  1. tools can have dots in their name
  2. the cli shows which mcp server exposes the missing tool

Additional information

No response

Metadata

Metadata

Assignees

Labels

CLIIssues related to the Codex CLIbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions