Concept

MCP is a protocol that connects AI applications to external data and tools. It is neither a model nor a database. Typically, the host application manages clients, which communicate with MCP servers.

Building Blocks

Check supported capabilities against the server, client, and negotiated specification version.

Design Example: Operations Documentation Assistant

  1. Expose document search and detailed reading as separate tools.
  2. Return document IDs, titles, modification dates, and sources in search results.
  3. Validate tenant and user access on the server.
  4. Separate write permissions from read permissions.
  5. Include the target ID, expected version, and request ID in change requests to reduce incorrect and duplicate execution.

Tool Contracts

Specify input schemas, required fields, pagination, error formats, timeouts, and retry eligibility. Do not combine arbitrary SQL execution and administrative changes in a single tool.

Security Review

Treat tool results and external documents as untrusted input. Prevent instructions in external text from changing the host's authorization policy, and manage credentials on the tool server. Authentication does not grant access to every resource.

Official References

Powered by Fruition