Model Context Protocol (MCP)

Topic 1 of 4 in MCP, security & enterprise25 min readAdvancedFree course

Overview

An enterprise AI agent rarely operates in isolation. It may need to retrieve customer records, query inventory databases, search internal documentation, inspect support tickets, or initiate business workflows.

In earlier lessons, you created tools using the @tool decorator and connected them directly to agents. Although this approach works well, integrating dozens of independently maintained services can create considerable engineering overhead.

Each service may have a different API, authentication mechanism, request format, and response structure. Without a common integration standard, every agent application must implement and maintain its own adapters.

The Model Context Protocol (MCP) addresses this integration problem.

MCP is an open protocol that enables AI applications to discover and interact with capabilities provided by external systems through standardized interfaces.

Instead of manually implementing every integration inside LangGraph, you can connect to an MCP server, discover its available tools, and make approved capabilities accessible to your agent.

For example, an enterprise assistant could connect to:

  • An inventory MCP server for product availability.
  • A customer relationship management MCP server for customer information.
  • A documentation MCP server for internal policies.
  • A support MCP server for ticket management.
  • A finance MCP server for approved financial operations.

LangGraph remains responsible for orchestration, state management, routing, execution control, and human intervention. MCP provides the communication layer between the agent application and external capabilities.

This lesson builds on the previous lesson, Unit, integration and regression testing, by introducing integrations whose behavior must be tested across application and service boundaries.

It also establishes the technical foundation for this chapter’s hands-on project: building a secure MCP-enabled enterprise assistant.

MCP Concepts and Architecture

Hosts, Clients, and Servers

MCP architecture consists of three principal participants.

MCP host: The application that coordinates model interactions, manages MCP connections, and decides how external capabilities are used. Your LangGraph application acts as the host.

MCP client: The protocol implementation responsible for communicating with an MCP server. It handles requests, responses, capability discovery, and transport details.

MCP server: A service that exposes capabilities to connected clients. Internally, it may communicate with databases, REST APIs, filesystems, or other enterprise systems.

In LangChain 1.x, MCPAdapter bridges the underlying MCP client and the LangChain tool interface.

The following architecture illustrates how LangGraph accesses independent enterprise services.

MCP Concepts and Architecture diagram: User to LangGraph Host; LangGraph Host to Language Model; Language Model to LangGraph Host; LangGraph Host to MCP Adapter; MCP Adapter to Inventory Server; MCP Adapter to CRM Server; MCP Adapter to Documentation Server; Inventory Server to Database; CRM Server to Enterprise API; Documentation Server to Knowledge Base.

The model does not directly establish database connections or send MCP requests. It proposes tool calls, while the host application controls their execution.

This separation allows backend teams to maintain integrations independently of agent developers.

MCP Primitives

MCP servers can expose three principal server-side primitives.

Primitive Purpose Enterprise example
Tools Execute operations with arguments Retrieve an order
Resources Provide addressable contextual data Read a policy document
Prompts Provide reusable interaction templates Generate a support response template

Tools are particularly important for agentic applications because they allow models to request external operations.

Resources are identified by URIs and can provide documents, records, configuration information, or other contextual data. Prompts provide reusable templates that applications can retrieve and incorporate into model interactions.

Discovering tools with list_tools() does not automatically import resources or prompts. Those primitives require separate handling.

MCP and REST APIs

MCP does not replace existing REST APIs or databases. It provides an additional interface designed for AI applications.

Characteristic Direct REST integration MCP integration
Capability discovery Application-specific Standardized tool discovery
Tool definitions Manually constructed Discovered from server
Communication HTTP endpoints MCP protocol messages
Agent integration Custom wrappers MCP tool adaptation
Backend reuse Through API clients Through MCP-compatible hosts
Authorization Application-specific Still requires explicit enforcement

An MCP server might expose a tool named get_order_status, internally call an existing order-management REST endpoint, and return a normalized response.

The enterprise API remains the underlying business service.

Transport Mechanisms

A transport determines how MCP protocol messages travel between client and server.

The two principal standard transports are:

  • Standard input/output (stdio): Communication through the input and output streams of a local subprocess.
  • Streamable HTTP: Communication through an HTTP endpoint, suitable for independently deployed services.

For local development, stdio avoids the need to expose a network endpoint. For remote enterprise integrations, Streamable HTTP supports conventional network infrastructure, authentication, gateways, and deployment scaling.

FastMCP also supports in-process connections, which are useful for integration testing without opening network sockets or starting subprocesses.

The July 28, 2026 MCP specification introduced a stateless protocol lifecycle, replacing the mandatory initialization handshake used by earlier revisions with optional server/discover requests and per-request protocol metadata. Compatibility with older servers remains important.

See the official MCP specification update for the protocol changes.

Installing and Configuring MCP Support

The examples use Python 3.11 or newer, LangGraph 1.x, LangChain 1.x, FastMCP, and the current LangChain MCP integration.

Create an isolated Python environment and install the dependencies.

Terminal
python -m venv .venv
source .venv/bin/activate

pip install "langgraph>=1,<2" "langchain[mcp]>=1.4,<2" langchain-openai fastmcp

On Windows PowerShell, activate the environment using .venv\Scripts\Activate.ps1.

Configure your model provider credentials:

Terminal
export OPENAI_API_KEY="your-api-key"

The model-free examples do not require an OpenAI API key.

Note: The langchain.mcp namespace is a beta integration introduced in LangChain 1.4. New applications should use MCPAdapter rather than the older MultiServerMCPClient integration. Pin tested dependency versions before production deployment.

The examples follow the published LangChain MCP API documentation. They have not been executed against a live model in this lesson-authoring environment; generated answers are illustrative and require access to the configured model.

Creating an MCP Server

Exposing Enterprise Capabilities

To understand MCP integration thoroughly, start by creating a server whose implementation you control.

The following example exposes inventory operations through an MCP server. It uses SQLite to simulate a database-backed enterprise service.

Save this file as inventory_server.py.

Python
import sqlite3
from contextlib import closing

from fastmcp import FastMCP

mcp = FastMCP("Enterprise Inventory")

PRODUCTS = [
    ("LAPTOP-001", 12),
    ("MONITOR-002", 35),
    ("KEYBOARD-003", 80),
]

@mcp.tool
def get_stock(sku: str) -> str:
    """Retrieve the available stock for a product SKU."""
    with closing(sqlite3.connect(":memory:")) as conn:
        conn.execute(
            "CREATE TABLE inventory (sku TEXT PRIMARY KEY, quantity INTEGER)"
        )

        conn.executemany(
            "INSERT INTO inventory VALUES (?, ?)",
            PRODUCTS,
        )

        row = conn.execute(
            "SELECT quantity FROM inventory WHERE sku = ?",
            (sku.upper(),),
        ).fetchone()

    if row is None:
        return "Product not found"

    return f"{sku.upper()} has {row[0]} units available"

@mcp.tool
def list_products() -> list[str]:
    """List the available product SKUs."""
    return [sku for sku, quantity in PRODUCTS]

@mcp.tool
def preview_restock(sku: str, quantity: int) -> str:
    """Preview a restocking request without modifying inventory."""
    if quantity <= 0:
        raise ValueError("Quantity must be positive")

    if sku not in {product[0] for product in PRODUCTS}:
        raise ValueError("Unknown product")

    return f"Preview: restock {sku} with {quantity} units"

if __name__ == "__main__":
    mcp.run(transport="stdio")

FastMCP uses the decorated functions, type annotations, and docstrings to construct tool definitions.

The get_stock tool exposes a narrow database operation rather than unrestricted SQL execution. Its parameterized query keeps the supplied SKU separate from the SQL statement.

The in-memory database is recreated during each lookup for demonstration purposes. A production implementation would use persistent storage, appropriate connection management, and database-level permissions.

Notice that preview_restock performs no mutation. Separating preview operations from actual business transactions is a useful design pattern for enterprise agents.

Running the Server

You do not need to manually start the server when connecting through a local script path. The MCP client launches the subprocess.

For an HTTP deployment, you can instead run:

Terminal
fastmcp run inventory_server.py --transport http --host 127.0.0.1 --port 8000

The default MCP endpoint is available under /mcp.

Use this local HTTP configuration for development only. Remote deployments require authentication, encrypted transport, and appropriate network restrictions.

Discovering and Invoking MCP Tools

Understanding Tool Discovery

MCP defines a standardized tools/list operation for retrieving the tools a server advertises.

A tool definition typically contains information such as:

  • A unique tool name within the server.
  • A description of the operation.
  • An input schema describing accepted arguments.
  • Optional output schemas and behavioral annotations.

MCPAdapter.list_tools() discovers the server’s catalog and converts it into LangChain-compatible tool objects.

These objects expose familiar properties such as name, description, args, and metadata.

The following program discovers the inventory tools and invokes one directly, without using a language model.

Save it as discover_tools.py in the same directory.

Python
import asyncio
from pathlib import Path

from langchain.mcp import MCPAdapter

async def main():
    async with MCPAdapter(Path("inventory_server.py")) as adapter:
        tools = await adapter.list_tools()

        for tool in tools:
            print("Name:", tool.name)
            print("Description:", tool.description)
            print("Arguments:", tool.args)
            print()

        registry = {tool.name: tool for tool in tools}

        result = await registry["get_stock"].ainvoke(
            {
                "name": "get_stock",
                "args": {"sku": "LAPTOP-001"},
                "id": "call-001",
                "type": "tool_call",
            }
        )

        print("Status:", result.status)
        print("Result:", result.content)

if __name__ == "__main__":
    asyncio.run(main())

Run the program:

Terminal
python discover_tools.py

Expected output, with schemas and content formatting abbreviated:

Text
Name: get_stock
Description: Retrieve the available stock for a product SKU.
Arguments: {'sku': {...}}

Name: list_products
...

Name: preview_restock
...

Status: success
Result: LAPTOP-001 has 12 units available

The actual result content may be represented as a list of standardized content blocks.

Passing a complete tool-call dictionary, including its identifier, produces a ToolMessage. The identifier correlates the result with the original request.

Internally, the adapter translates the LangChain invocation into an MCP tools/call request and converts the server response into the corresponding LangChain result.

This direct invocation technique is particularly useful for deterministic integration tests because it removes model variability.

Understanding Tool Results

An MCP tool response may include text, multimodal content, structured data, or an execution error.

When adapted into a ToolMessage:

Property Responsibility
content Information visible to the model
tool_call_id Correlation with the original tool call
artifact Additional application-consumable data
status Successful or failed execution

When MCP tools return structured content, the adapter can expose that data through message.artifact["structured_content"].

Do not assume every tool returns a plain string. Applications processing structured results should inspect the message and validate its contents.

Server-reported tool errors can become error-status messages, whereas connection or transport failures may raise exceptions. These conditions require different recovery strategies.

The current MCP tool result documentation describes these mappings.

Connecting MCP Servers to an Agent

Using the High-Level Agent API

Once discovered, MCP tools can be supplied to create_agent like locally defined LangChain tools.

This is the simplest way to construct an agent that can interact with external MCP capabilities.

The following example creates a read-only inventory assistant.

Save it as inventory_agent.py.

Python
import asyncio
from pathlib import Path

from langchain.agents import create_agent
from langchain.chat_models import init_chat_model
from langchain.messages import HumanMessage
from langchain.mcp import MCPAdapter

async def main():
    async with MCPAdapter(Path("inventory_server.py")) as adapter:
        discovered_tools = await adapter.list_tools()

        tools = [
            tool
            for tool in discovered_tools
            if tool.name in {"get_stock", "list_products"}
        ]

        model = init_chat_model("openai:gpt-5.4-mini")

        agent = create_agent(
            model=model,
            tools=tools,
            system_prompt=(
                "You are an enterprise inventory assistant. "
                "Use inventory tools for factual answers. "
                "Do not invent quantities or product identifiers."
            ),
        )

        result = await agent.ainvoke(
            {
                "messages": [
                    HumanMessage(
                        content="Compare laptop and monitor availability."
                    )
                ]
            },
            config={"recursion_limit": 15},
        )

        print(result["messages"][-1].content)

if __name__ == "__main__":
    asyncio.run(main())

A representative answer is:

Text
LAPTOP-001: 12 units available.
MONITOR-002: 35 units available.

Monitors have 23 more units available than laptops.

The agent may first list products and then retrieve their quantities. The precise sequence depends on the model’s decisions.

How the Execution Loop Works

During execution, the model receives tool schemas alongside the conversation. It can generate an AIMessage containing one or more requested tool calls.

The host executes those calls through the adapted MCP tools and adds the returned ToolMessage objects to conversation state.

The model then receives the results and determines whether additional information is necessary.

The following diagram illustrates this execution cycle.

Connecting MCP Servers to an Agent diagram: START to Model Node; Model Node to Tool calls?; Tool calls? to Permission Check (Yes); Permission Check to MCP Tool Execution (Allowed); Permission Check to Reject Execution (Denied); MCP Tool Execution to Tool Results; Tool Results to Model Node; Reject Execution to END; Tool calls? to END (No).

The MCP server executes external operations. The model interprets their results, while the application remains responsible for determining which operations are permitted.

Connecting Multiple Servers

For enterprise systems, a single agent may need capabilities from several MCP servers.

The configuration format supports multiple named server entries under mcpServers.

This example combines the local inventory server with the public LangChain documentation MCP server.

Python
import asyncio
import sys
from pathlib import Path

from langchain.mcp import MCPAdapter

async def main():
    config = {
        "mcpServers": {
            "inventory": {
                "command": sys.executable,
                "args": [
                    str(Path("inventory_server.py").resolve())
                ],
            },
            "docs": {
                "url": "https://docs.langchain.com/mcp",
            },
        }
    }

    async with MCPAdapter(config) as adapter:
        tools = await adapter.list_tools()

        for tool in tools:
            print(tool.name)

if __name__ == "__main__":
    asyncio.run(main())

Expected output includes names similar to:

Text
inventory_get_stock
inventory_list_products
inventory_preview_restock
docs_search_docs_by_lang_chain
...

The multi-server configuration namespaces tool names using server identifiers. This prevents naming collisions between services exposing similarly named operations.

The documentation endpoint is public, and this example requires network access. Its tool catalog may change independently of your application.

See MCP connections for connection lifecycle, configuration, and deployment patterns.

Discovering and Invoking MCP Tools in LangGraph

Building a Custom StateGraph

Although create_agent simplifies development, enterprise applications frequently require explicit execution boundaries, permission checks, routing, and error handling.

A custom StateGraph gives you control over these responsibilities.

The integration procedure is straightforward:

  1. Discover MCP tools.
  2. Filter the discovered catalog.
  3. Bind approved tools to the model.
  4. Construct a ToolNode using the same approved tools.
  5. Route model-generated tool calls to that node.
  6. Return tool results to the model until execution completes.

The following complete example implements a role-scoped LangGraph assistant with an additional execution-time tool-name check.

Save it as inventory_graph.py.

Python
import asyncio
from pathlib import Path

from langchain.chat_models import init_chat_model
from langchain.messages import HumanMessage, SystemMessage
from langchain.mcp import MCPAdapter
from langgraph.graph import StateGraph, MessagesState, START, END
from langgraph.prebuilt import ToolNode, tools_condition

ROLE_PERMISSIONS = {
    "viewer": {"get_stock", "list_products"},
    "planner": {
        "get_stock",
        "list_products",
        "preview_restock",
    },
}

def build_graph(discovered_tools, role):
    if role not in ROLE_PERMISSIONS:
        raise PermissionError("Unknown role")

    allowed_names = ROLE_PERMISSIONS[role]

    approved_tools = [
        tool
        for tool in discovered_tools
        if tool.name in allowed_names
    ]

    if not approved_tools:
        raise RuntimeError("No authorized tools available")

    executable_names = {tool.name for tool in approved_tools}

    model = init_chat_model("openai:gpt-5.4-mini")
    model_with_tools = model.bind_tools(approved_tools)

    tool_executor = ToolNode(approved_tools)

    async def assistant(state: MessagesState):
        response = await model_with_tools.ainvoke(
            [
                SystemMessage(
                    content=(
                        "You are an inventory assistant. "
                        "Use authorized tools for inventory questions. "
                        "Do not claim that previews modify inventory."
                    )
                ),
                *state["messages"],
            ]
        )

        return {"messages": [response]}

    async def execute_tools(state: MessagesState):
        last_message = state["messages"][-1]

        for call in last_message.tool_calls:
            if call["name"] not in executable_names:
                raise PermissionError(
                    f"Unauthorized tool: {call['name']}"
                )

        return await tool_executor.ainvoke(state)

    builder = StateGraph(MessagesState)

    builder.add_node("assistant", assistant)
    builder.add_node("tools", execute_tools)

    builder.add_edge(START, "assistant")

    builder.add_conditional_edges(
        "assistant",
        tools_condition,
        {
            "tools": "tools",
            END: END,
        },
    )

    builder.add_edge("tools", "assistant")

    return builder.compile()

async def main():
    # Simulated role from a trusted application layer.
    role = "viewer"

    async with MCPAdapter(Path("inventory_server.py")) as adapter:
        tools = await adapter.list_tools()

        graph = build_graph(tools, role)

        result = await graph.ainvoke(
            {
                "messages": [
                    HumanMessage(
                        content="Check stock for MONITOR-002."
                    )
                ]
            },
            config={"recursion_limit": 12},
        )

        for message in result["messages"]:
            print(type(message).__name__, message.content)

if __name__ == "__main__":
    asyncio.run(main())

A representative execution trace is:

Text
HumanMessage Check stock for MONITOR-002.
AIMessage ...
ToolMessage MONITOR-002 has 35 units available
AIMessage MONITOR-002 currently has 35 units available.

Understanding the Graph Internally

MessagesState maintains the conversation and uses the message reducer to incorporate new messages.

The assistant node calls the model with the approved tool schemas. If the resulting message contains tool calls, tools_condition routes execution to the tools node.

The execution wrapper checks every requested tool against the permitted registry before delegating to ToolNode.

ToolNode handles tool invocation and result-message creation. Returning its output adds tool responses to graph state, allowing the assistant node to continue reasoning.

The recursion limit prevents an indefinitely repeating model-tool cycle.

Because MCP operations involve external communication, the example uses asynchronous nodes and graph.ainvoke().

Managing Connection Lifecycles

The adapter context manages the underlying client connection. Adapted tools retain access to that client and can reopen connections when invoked outside the discovery context.

Keeping discovery and execution within the same async with block, as these examples do, provides a simple lifecycle and supports connection reuse.

Production applications should choose connection scopes deliberately. Avoid sharing user-specific authenticated connections across unrelated requests.

For checkpointed workflows, reconstruct approved tools and connections when resuming execution. Do not attempt to serialize live MCP clients into graph state.

Filtering and Permissions

Discovery Is Not Authorization

An MCP server may advertise twenty tools even though a particular user is permitted to use only three.

Discovery identifies available capabilities. Authorization determines whether a particular principal may execute those capabilities.

These are separate concerns.

Consider the following enterprise permission matrix.

Tool Viewer Planner Administrator
get_stock Allowed Allowed Allowed
list_products Allowed Allowed Allowed
preview_restock Denied Allowed Allowed
execute_restock Denied Denied Allowed with approval
delete_product Denied Denied Allowed with approval

The last two tools represent hypothetical production capabilities not implemented in the demonstration server.

A secure architecture applies permission checks at multiple levels:

  • Discovery filtering: Remove tools the user should not access.
  • Model binding: Expose only approved tool schemas.
  • Execution enforcement: Reject unauthorized tool calls before execution.
  • Server authorization: Independently verify the caller’s identity and permissions.
  • Backend authorization: Restrict access to underlying records and operations.

The custom graph demonstrates the first three controls. It deliberately does not implement production authentication or server-side role enforcement, which are covered in the following lesson.

Tip: Use explicit allowlists and deny unknown tools by default. A denylist can accidentally authorize newly introduced server capabilities.

Tool Metadata and Behavioral Hints

MCP tools may include annotations describing characteristics such as whether an operation is read-only, destructive, or idempotent.

LangChain exposes available annotations through the MCP namespace in tool metadata.

For example, the read-only hint can be inspected using:

(tool.metadata or {}).get("mcp", {}).get("tool", {}).get("annotations", {}).get("read_only_hint")

These annotations help classify capabilities and identify operations requiring approval.

However, annotations are supplied by the server and may be missing or incorrect. They must not be treated as independently verified authorization policies.

A destructive operation should require explicit permission and, where appropriate, a human approval workflow implemented using LangGraph interrupts and checkpointing.

Filtering in Multi-Tenant Applications

In a multi-tenant application, permissions depend on more than a user’s role.

Two users with the same role might belong to different organizations and must not access each other’s data.

A production host should derive identity, tenant membership, and permissions from authenticated application context, rather than accepting them from user messages or model-generated arguments.

LangGraph runtime context provides an appropriate interface for passing trusted request information to graph nodes.

The MCP server must still enforce resource-level authorization. Restricting a tool named get_customer does not establish which customers the caller may access.

Production Integration Considerations

Reliability and Operational Boundaries

External MCP services introduce network latency, service availability dependencies, and potentially uncertain execution outcomes.

Set request deadlines and graph execution budgets. Retry temporary failures only when the operation is safe to repeat or protected by an idempotency mechanism.

A timed-out write operation may already have succeeded on the server. Automatically retrying it could duplicate a transaction.

Also distinguish mandatory services from optional integrations. An unavailable documentation server might permit degraded functionality, whereas an unavailable authorization service should prevent protected operations.

Common Mistakes

Mistake Correct approach
Exposing every discovered tool Apply explicit permission filtering
Binding filtered tools but executing the full catalog Use the same approved executable registry
Using synchronous invocation for async MCP tools Use asynchronous graph and tool invocation
Trusting read-only annotations automatically Verify capabilities through trusted policy
Allowing the model to select its own role Resolve roles from authenticated context
Retrying every failed transaction Consider idempotency and uncertain outcomes
Treating tool descriptions as trusted instructions Treat external metadata as untrusted data

Testing MCP Integrations

Apply the testing practices from the previous lesson at several boundaries.

Unit-test role filtering independently of the MCP connection. Integration-test discovery, tool schemas, valid arguments, invalid arguments, and returned data against a controlled server.

Include negative tests for forbidden tool names, unknown roles, unavailable services, and unexpected changes to the discovered catalog.

In-process FastMCP servers are especially useful for deterministic integration tests. Reserve model-dependent tests for evaluating tool selection, multi-step reasoning, and final-answer quality.

For production deployments, review changes to tool schemas and descriptions before making newly advertised capabilities available. Record execution outcomes without unnecessarily logging sensitive arguments or returned records.

The next lesson, Authentication, authorization and secrets, extends this architecture by establishing trusted identities, authenticated MCP connections, server-enforced permissions, credential isolation, and secure secret management. Those mechanisms turn the role-scoped demonstration into a foundation suitable for the chapter’s secure enterprise assistant project.

Exercise

Build a Role-Based MCP Inventory Assistant

Build an MCP-enabled inventory assistant that discovers tools from an in-process MCP server. Implement two roles, viewer and manager, where viewers can check inventory and managers can additionally update stock. Ensure unauthorized tools are excluded from the agent's tool catalog, reject unknown roles, and verify the permission policy before invoking the agent.

Python
import asyncio

from fastmcp import FastMCP
from langchain.agents import create_agent
from langchain.chat_models import init_chat_model
from langchain.messages import HumanMessage
from langchain.mcp import MCPAdapter

server = FastMCP("Inventory")

inventory = {"LAPTOP-001": 15, "MONITOR-002": 30}


@server.tool
def get_stock(sku: str) -> str:
    """Return the available quantity for a product."""
    return f"{sku}: {inventory.get(sku, 0)} units"


@server.tool
def update_stock(sku: str, quantity: int) -> str:
    """Replace the available quantity for a product."""
    if quantity < 0:
        raise ValueError("Quantity cannot be negative")

    inventory[sku] = quantity
    return f"{sku} updated to {quantity} units"


ROLE_PERMISSIONS = {
    "viewer": {"get_stock"},
    "manager": {"get_stock", "update_stock"},
}


def filter_tools(tools, role):
    # TODO: Reject unknown roles.
    # TODO: Return only explicitly permitted tools.
    raise NotImplementedError


async def main():
    async with MCPAdapter(server) as adapter:
        # TODO: Discover the MCP tools.
        # TODO: Verify viewer and manager permissions.
        # TODO: Initialize the chat model.
        # TODO: Create and invoke a viewer agent.
        pass


if __name__ == "__main__":
    asyncio.run(main())

Summary

  • MCP standardizes how AI applications discover and invoke capabilities exposed by external systems.
  • MCP servers can expose tools, resources, and reusable prompts through a common protocol.
  • MCPAdapter converts discovered MCP tools into LangChain-compatible tools usable by agents and LangGraph ToolNode.
  • Asynchronous execution allows LangGraph applications to communicate efficiently with MCP servers.
  • MCP tool results can contain model-visible content, structured artifacts, and execution status information.
  • Tool allowlists must restrict both model-visible capabilities and executable tools.
  • Production MCP integrations require server-side authorization, trusted connections, validated data, and controlled execution.