How Nyxs talks to Google Workspace's remote MCP servers (Gmail, Calendar, Drive…) and shows their confirmations. Use when changing src/lib/mcp.ts's requests to a *.googleapis.com MCP server, src/lib/mcpElicitation.ts, a connector's "Allow once / Don't allow" question, or when a Google connector answers "Header missing", "Header mismatch" or "requires user confirmation".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Nyxs Google Connectors?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nyxs-code-nyxs-google-connectors)
---
name: nyxs-google-connectors
description: How Nyxs talks to Google Workspace's remote MCP servers (Gmail, Calendar, Drive…) and shows their confirmations. Use when changing src/lib/mcp.ts's requests to a *.googleapis.com MCP server, src/lib/mcpElicitation.ts, a connector's "Allow once / Don't allow" question, or when a Google connector answers "Header missing", "Header mismatch" or "requires user confirmation".
---
# Google's Workspace MCP servers
Gmail, Calendar and the other Workspace connectors are remote MCP servers
(`gmailmcp.googleapis.com`, `calendarmcp…`; `isGoogleWorkspaceMcp`). Guide:
https://developers.google.com/workspace/guides/mcp-elicitation
## What every tools call needs
From `workspaceHeaders` and `workspaceMcpMeta` (`src/lib/mcpElicitation.ts`), added in
`McpHttpClient.send` (`src/lib/mcp.ts`) for `tools/*` methods:
- Headers `MCP-Protocol-Version: 2026-07-28`, `Mcp-Method: <method>`, and on `tools/call`
`Mcp-Name: <tool>`. Missing → "Header missing"; not matching the body → "Header mismatch"
(-32020).
- **`Accept-Language: <app language>`** (`getLanguage()`): Google writes the confirmation question
and its choices in it; without it, everything comes in English.
- `params._meta` with `clientCapabilities.elicitation.form`: a client that doesn't say it can
show a form gets "This action requires user confirmation, which this client does not support",
and mail it didn't send hidden.
## Confirmations
A call that needs approval answers `resultType: "input_required"` with an `elicitation/create`
form: one `approval_choice` field whose `title` is the question, `enum` the codes and
`enumNames` the labels, plus a Markdown `message` preview. Nyxs asks it in the chat's question
card (`askMcpApproval`) and repeats the same call with the answer (`answerInputRequests`).
- Show the server's choices as it sends them; **don't replace them with Nyxs' own labels**. The
codes are `ALLOW_ONCE`, `DENY_ONCE`, `ALLOW_TOOL_ALWAYS`, `ALLOW_RESOURCE_ALWAYS`,
`ALLOW_AUDIENCE_ALWAYS`, `ALLOW_OWNER_ALWAYS`, and each prompt offers a subset with wording that
depends on the resource ("for this email", "for these recipients"). The language comes from
`Accept-Language`.
- Dismissing the card declines; no chat to ask in cancels. Google treats both as "don't allow".
- The `message` preview may stay in English: the guide doesn't say it's localized.
## Tests
`src/lib/__tests__/mcpElicitation.test.ts` has a fake Workspace server that checks the headers
like Google does; extend it for any new header or flow. `localStorage` is stubbed there
(`vi.stubGlobal`) because the test runs in node.