---
title: MCP explained: connect AI agents to tools without handing over your business keys
description: Understand Model Context Protocol hosts, clients, servers, tools and resources, then connect a read-only documentation MCP server to Codex.
date: 2026-11-22
url: https://caminhosolo.com.br/en/2026/11/mcp-connect-ai-coding-agents-tools/
tags: [tools, model-context-protocol, ai-agents, codex, opencode, automation]
---


> **In brief · TL;DR:** **MCP (Model Context Protocol)** is an open protocol that standardises how AI applications connect to external tools, information and prompt templates. A server may provide document search, access to business data or actions, depending on its permissions. MCP expands an agent's reach, but does not automatically make it trustworthy. Start with a **read-only** documentation server.

## 01 — The discovery

A coding agent can inspect your project but may need current documentation, a service record or information from another application. Traditionally, each tool pair might need its own special integration.

**MCP aims to standardise that connection.** An AI application can communicate with servers that publish a discoverable set of capabilities rather than relying on custom interfaces for every use case.

The [Model Context Protocol specification](https://modelcontextprotocol.io/specification/) defines several roles:

- **Host:** the AI application, such as a coding environment or editor.
- **MCP client:** the host component that communicates with one server.
- **MCP server:** a program exposing capabilities for a particular system.
- **Tool:** an invocable operation, such as searching documentation or modifying a record when authorised.
- **Resource:** accessible information, such as documentation or structured data.
- **Prompt:** a reusable interaction template supplied by the server.

A simplified view:

```text
Person → AI agent (host)
                  |
              MCP client
                  |
              MCP server
                  |
         tools / resources / prompts
```

**MCP is not the model's intelligence**, and it does not replace the surrounding agent harness. It offers a standard interface for capabilities the harness may choose to use. Nor is it identical to a *skill*: skills usually organise instructions for work, while MCP servers expose functions and information. [Official architecture](https://modelcontextprotocol.io/docs/learn/architecture).

### Why a solo business should care

Imagine a seller checking order status in a service. An authorised MCP server could make that information available to an agent. Other tools might send messages, edit the order or delete a record. **"MCP connected" does not tell you which actions are available or safe.**

Before installing a connector, ask whether you need to retrieve data, search documentation or perform an external action. For predictable workflows, a native integration or API may still be simpler.

MCP servers can run **locally**, started as processes, or **remotely**, reached over a network transport. Deployment affects authentication, data exposure, maintenance and reliability. [Server concepts](https://modelcontextprotocol.io/docs/learn/server-concepts).

### Trust boundaries matter

A server with access to private code, business documents or production data expands the attack surface. Ask five questions:

1. **Who publishes and maintains it?** Official project or unknown package?
2. **What information leaves the environment?** Even search queries may contain private context.
3. **What can it change?** Prefer read-only capabilities for a first exercise.
4. **Where are credentials kept?** Use the host's supported secure authentication rather than committing keys.
5. **Can you audit calls?** Check tool invocations, outputs and approval flows where supported.

Information returned through a server may contain **prompt injection**: text trying to instruct the agent to ignore its real task. Treat external content as data, not as authority to relax permissions. The [MCP specification](https://modelcontextprotocol.io/specification/) documents security and consent considerations.

## 02 — The Solo verdict

**Learn MCP to understand how coding agents access systems beyond their own project folders.** It is useful for documentation search, external APIs and business tools.

**Do not begin by enabling write access to production systems.** Connect a trusted documentation source first, inspect available capabilities and observe a real retrieval. When an existing integration already solves the task, adding another MCP server may only introduce cost and complexity.

## 03 — The workbench: connect documentation to Codex

**Goal:** let Codex retrieve **public OpenAI developer documentation** through OpenAI's official read-only MCP server. You need an **installed and authenticated Codex CLI**, a practice directory and an internet connection.

Inspect configured servers before changing anything:

```bash
codex mcp list
```

If the `openaiDeveloperDocs` server is not present, the [official quickstart](https://developers.openai.com/learn/docs-mcp) documents:

```bash
codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp
codex mcp list
```

**Actual side effect:** `add` updates the Codex MCP configuration, typically `~/.codex/config.toml`. It does not install a local model or create an API account. `list` inspects the registered servers. The provider describes this particular MCP endpoint as **documentation-only**: it cannot call the OpenAI API on your behalf. [Official documentation](https://developers.openai.com/learn/docs-mcp).

Inside a practice project, ask Codex:

> "Use the official documentation MCP server, when available, to explain the difference between an MCP resource and an MCP tool. Include documentation links. Do not edit files or configure other servers."

**Expected outcome:** the agent retrieves relevant documentation using the configured server. A successful `list` command alone is not proof of an actual MCP tool call. If the request fails, review CLI version, connectivity and configuration before treating the setup as working.

### What about OpenCode?

[OpenCode's MCP documentation](https://opencode.ai/docs/mcp-servers) provides `opencode mcp list` to inspect configured servers and `opencode mcp add <name> --url <address>` for remote registration. **Check the documentation for your installed version**, as configuration layouts and permissions may change.

You can begin with `opencode mcp list` without installing a second MCP server.

**Next:** once you understand where an agent works (worktree) and how it reaches other systems (MCP), deciding when a multi-agent orchestrator like **OmO Slim** helps becomes easier.

**Sources:** [MCP introduction](https://modelcontextprotocol.io/introduction), [architecture](https://modelcontextprotocol.io/docs/learn/architecture), [OpenAI Docs MCP](https://developers.openai.com/learn/docs-mcp), [OpenCode MCP](https://opencode.ai/docs/mcp-servers). Guided documentation-based setup; no claim of an executed integration test.

