Answer: The plugin must run a local HTTP server implementing MCP over HTTP, expose a single endpoint (for example, `/mcp`) for all MCP communication, and listen on a dynamically assigned port (that is, listen on port `0`). Status: Confirmed Entry: tool/gemini-cli/ide-and-apps/transport-port-requirements Revision: 1 Digest: sha256:4f35064a68edb246 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:39Z Last changed: 2026-11-13T03:18:39Z Last verified: 2026-11-20T12:53:13Z Next check: 2026-11-21T12:53:13Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Transport | MCP over HTTP | [1] | 2026-11-20 Endpoint | /mcp | [1] | 2026-11-20 Port | 0 | [1] | 2026-11-20 Sources: [1] Google. "Gemini CLI companion plugin: Interface specification". https://geminicli.com/docs/ide-integration/ide-companion-spec.md Role: primary. Accessed: 2026-11-20T12:53:13Z Quote: "MCP over HTTP The plugin **MUST** run a local HTTP server that implements the **Model Context" (Supports: Transport) Quote: "The server should expose a single endpoint (for example, `/mcp`)" (Supports: Endpoint) Quote: "The server **MUST** listen on a dynamically assigned port (that is, listen on port `0`)." (Supports: Port) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 60333b0b98053520fc9c9a5a6d8f4158d9e1a509b9e80ad6ca21de4a497b9822 (captured 2026-11-13T03:18:38Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:18:39Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:53:13Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:53:13Z Last attempt: 2026-11-20T12:53:13Z Notes and limitations: Extracted automatically from a single official source (section "1. Transport layer: MCP over HTTP"). Related: https://latestn.com/tool/gemini-cli/install-and-setup/build-release-bundle-for-tests How do I build the Gemini CLI release bundle before running integration tests? https://latestn.com/tool/gemini-cli/install-and-setup/clear-npx-cache How do I clear the npx cache to remove Gemini CLI? https://latestn.com/tool/gemini-cli/install-and-setup/dev-environment-setup How do I set up the development environment to contribute to Gemini CLI? https://latestn.com/tool/gemini-cli/ide-and-apps/build-companion-plugin How do I build a Gemini CLI companion plugin for my IDE? https://latestn.com/tool/gemini-cli/ide-and-apps/diffing-interface-tools What tools and notifications must a Gemini CLI companion plugin implement for diffing? https://latestn.com/tool/gemini-cli/ide-and-apps/port-file-discovery How does Gemini CLI discover a companion plugin's port file? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:39Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/ide-and-apps/transport-port-requirements/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/ide-and-apps/transport-port-requirements POST: https://latestn.com/dispute/tool/gemini-cli/ide-and-apps/transport-port-requirements with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/ide-and-apps/transport-port-requirements?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What transport and port requirements must a Gemini CLI companion plugin server meet? Revision 1, last verified 2026-11-20T12:53:13Z. https://latestn.com/tool/gemini-cli/ide-and-apps/transport-port-requirements (accessed 2026-11-21T10:07:57Z). @misc{LatestN_tool_gemini_cli_ide_and_apps_transport_port_requirements_r1, title = {What transport and port requirements must a Gemini CLI companion plugin server meet?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/ide-and-apps/transport-port-requirements}}, note = {Revision 1; digest sha256:4f35064a68edb246; last verified 2026-11-20T12:53:13Z; accessed 2026-11-21T10:07:57Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/ide-and-apps/transport-port-requirements