> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Six Roles and Who Owns What

> Explains six distinct MCP deployment roles, ownership responsibilities, and practices to enforce separation of duties, governance, security, and safe deployments.

Alan's MCP server passed every integration test, and yet it failed its first compliance review.

The reason was simple: Alan both implemented the server and approved it himself.

Automated tests validate behavior; compliance reviews validate who approved the behavior. To enforce separation of duties, MCP deployments define six distinct roles. Each responsibility should have a single accountable owner so that implementation, review, and governance remain independent.

Which responsibilities you hold determines your obligations when something goes wrong.

Summary of the six roles

* Server developer
* Host (client) developer
* Platform and DevOps
* Security engineer
* Governance and compliance
* End user

A quick reference table

| Role | Primary responsibilities | Example outcomes |
| - | - | - |
| Server developer | Implement tool behavior, validate inputs, provide clear descriptions, return structured errors | Tool does what it promises; predictable failures |
| Host (client) developer | Design consent UX, translate tool definitions, enforce user approvals | Users understand what they approve; prevents unauthorized runs |
| Platform & DevOps | Deploy, scale, manage transport and credentials, ensure observability | Stable, secure runtime and traceability |
| Security engineer | Pre-production review, policy definition, monitoring | Permissions and abuse detection enforced by an independent reviewer |
| Governance & compliance | Approve server inventory, define audit and data rules | Clear allowed/blocked tools and audit trails |
| End user | Supervise agent actions and approve sensitive operations | Humans act as final check for write-capable operations |

Server developer (Alan)

* Tool behavior: Implement the tool to do exactly what its description promises. If a tool advertised as "fetches calendar events" deletes them instead, that is a compliance failure for the server owner.
* Input validation: Treat all caller inputs as untrusted. Validate types, lengths, required fields, and ranges. Fail safely instead of crashing.
* Clear descriptions: The tool description is the primary authoritative text the model sees. Ensure the description, schema, and examples are precise and consistent.
* Error handling: Return execution failures as structured results the model can understand and handle. Avoid protocol-level crashes that terminate the connection or the conversation.

![A graphic titled "Server Developer" showing server and model icons connected by lines, with a green check on a successful path and a mail/crash error on a failing path. A left-side checklist lists items like Behavior, Validation, Descriptions, and Errors.](https://mintcdn.com/kodekloud-c4ac6d9a/0UyWJzvxepsOrybu/images/Model-Context-Protocol-Associate-MCPA-Certification/Trust-Boundaries-and-Attacks/Six-Roles-and-Who-Owns-What/server-developer-success-error-paths.jpg?fit=max\&auto=format\&n=0UyWJzvxepsOrybu\&q=85\&s=4d30062666e504c4a0d3ce48d70b3aad)

Example of a tool description the model will read:

```text theme={null}
tools/list

"Fetches calendar events"
```

Host (client) developer

* Consent experience: Own the user-facing consent prompt — wording, specificity of choices, and clarity. Users must understand what they are approving.
* Translation of tool definitions: Present tool definitions in a way the host can enforce consent decisions and apply policy.

When a tool runs without user approval, that is a host problem. When a tool accepts malformed arguments and crashes, that is a server problem.

![A dark-themed UI mockup titled "Host Developer" showing two user icons (Host Developer and Alan) and a consent dialog asking to allow a tool call to "book\_meeting" on the "calendar" server to "create event," with buttons "Allow once," "Always allow," and "Deny." A green checkmark indicates consent.](https://mintcdn.com/kodekloud-c4ac6d9a/0UyWJzvxepsOrybu/images/Model-Context-Protocol-Associate-MCPA-Certification/Trust-Boundaries-and-Attacks/Six-Roles-and-Who-Owns-What/host-developer-consent-book-meeting-calendar.jpg?fit=max\&auto=format\&n=0UyWJzvxepsOrybu\&q=85\&s=8e2b2da1811a0928cff1a8a277254d42)

![A dark-themed slide titled "Host or Server Problem" showing two icons labeled "Host Developer" (with a "consent" tag) and "Server Developer" (with "behavior" and "validation" tags). Red warning boxes below read "Tool ran without approval" and "Malformed argument → crash."](https://mintcdn.com/kodekloud-c4ac6d9a/0UyWJzvxepsOrybu/images/Model-Context-Protocol-Associate-MCPA-Certification/Trust-Boundaries-and-Attacks/Six-Roles-and-Who-Owns-What/host-server-problem-consent-validation-crash.jpg?fit=max\&auto=format\&n=0UyWJzvxepsOrybu\&q=85\&s=a1fb98d049fb3f30f067b593fc71e2c9)

Platform and DevOps

* Deploy, scale, and choose the transport layer (local IPC, pipes, or HTTP).
* Hold and manage service credentials, TLS certificates, and routing.
* Keep systems running, instrumented, and observable for production use.

![A diagram titled "Platform and DevOps" showing a platform icon on the left branching out to three servers in the center. A laptop labeled "Host" appears on the right.](https://mintcdn.com/kodekloud-c4ac6d9a/0UyWJzvxepsOrybu/images/Model-Context-Protocol-Associate-MCPA-Certification/Trust-Boundaries-and-Attacks/Six-Roles-and-Who-Owns-What/platform-devops-servers-host-diagram.jpg?fit=max\&auto=format\&n=0UyWJzvxepsOrybu\&q=85\&s=fdeef68c29b16540f44fdc6e5edf20ec)

Security engineer

* Perform independent reviews of servers before they are trusted in production.
* Define and enforce permission and least-privilege policies.
* Monitor for misuse and suspicious activity; respond to incidents.

Separation of duties matters: someone other than the server author should perform security reviews — a second pair of eyes typically finds issues the implementer missed.

Governance and compliance

* Maintain the approved server inventory.
* Define and enforce audit requirements and data-handling rules.
* Own the policies that specify which tools or servers are allowed and under which conditions.

Operational considerations (applies across roles)

* Include a request ID with every call — a globally unique identifier (for example, a UUID defined in RFC 4122) for end-to-end tracing, alerting on destructive calls, and correlating authentication failures. See: [https://www.ietf.org/rfc/rfc4122.txt](https://www.ietf.org/rfc/rfc4122.txt)
* Alert on failed authentication and on attempts to call write-capable tools without explicit consent.
* Teach end users to supervise agents. Avoid blind approvals — clicking “Allow” without reading bypasses the final safety check.

Example agent commands users might be asked to approve:

```text theme={null}
/summarize-week
/plan-meeting
/draft-reply
```

Assign each responsibility to a distinct owner. Independence between implementation, security review, and governance reduces the risk of missed issues and improper approvals.

Recommended rollout order

1. Evaluate: Inventory existing servers and determine needs.
2. Pilot (read-only): Start with read-only pilots. Piloting write-capable tools against production data carries risk.
3. Govern: Establish no-entry policies and formally approve the server inventory before expanding access.
4. Scale (with human-in-the-loop): Require human review or explicit approval for every write-capable action.
5. Operate: Monitor, audit, and periodically review permissions and policy adherence.

![The image is a dark-themed flow diagram titled "Setup Order" showing five stages: Evaluate, Pilot, Govern, Scale, and Operate, each represented by a purple icon and connected by arrows. It visually maps a step-by-step process from evaluation to ongoing operation.](https://mintcdn.com/kodekloud-c4ac6d9a/0UyWJzvxepsOrybu/images/Model-Context-Protocol-Associate-MCPA-Certification/Trust-Boundaries-and-Attacks/Six-Roles-and-Who-Owns-What/setup-evaluate-pilot-govern-scale-operate.jpg?fit=max\&auto=format\&n=0UyWJzvxepsOrybu\&q=85\&s=aee6bfb9011240cc0bad208f98af8579)

What happened in Alan's team

* They started at scale with three servers already running and later tried to retrofit governance after failing the first compliance review.
* After the failure, responsibilities were separated: Alan kept server and host responsibilities, platform duties moved to the operations team, security was assigned to someone who did not implement the server, and governance assumed inventory approval.

That is the breakdown of the six roles and the ownership model. The following sections cover the use cases and deployment.

> [card] [Watch Video](https://learn.kodekloud.com/user/courses/model-context-protocol-associate-mcpa-certification/module/31dedbc5-6173-4700-b50e-7a581095c897/lesson/391bfe48-596f-4d59-8bd9-888cb0736db1)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.