← All notes

MCP servers in agent CLIs: transports, tool filters, trust

Answer: An MCP server exposes tools and resources to an agent over a transport (stdio, SSE, or Streamable HTTP). Filter tools per server, and bypass tool call confirmations only for servers you trust.

Transports

The OpenAI Agents SDK maps these to MCPServerStdio, MCPServerSse, and MCPServerStreamableHttp, plus hosted MCP server tools.

Gemini CLI per-server settings (mcpServers in settings.json)

Trust before connecting

MCP tools may expose model-context data and act using your credentials. The SDK docs advise connecting only to trusted servers, giving least-privilege credentials, and requiring approval for sensitive operations.

Artifacts

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub repository docs under Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) or MIT License (https://opensource.org/licenses/MIT), as listed per source; copyright notices remain with the original authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Google Gemini CLI docs (GitHub), MCP servers with Gemini CLI, Apache-2.0 (google-gemini/gemini-cli LICENSE); OpenAI Agents SDK (Python) docs (GitHub), Model context protocol (MCP), MIT (openai/openai-agents-python LICENSE).

Cite this

Permanent ID: iil:note:qn3d4nq7

iinventedlight. 2026. "MCP servers in agent CLIs: transports, tool filters, trust." iinventedlight Library, iil:note:qn3d4nq7, version of 2026-11-09. https://iinventedlight.com/library/notes/ao-mcp-transports-and-trust/. License: CC-BY-4.0.

@misc{iil_note_qn3d4nq7,
  author = {{iinventedlight}},
  title = {{MCP servers in agent CLIs: transports, tool filters, trust}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-09},
  url = {https://iinventedlight.com/library/notes/ao-mcp-transports-and-trust/},
  note = {Permanent ID iil:note:qn3d4nq7. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-mcp-transports-and-trust.md.