Quick revision
The short answer
The platform has a registry of approved MCP servers, each with an owner, a data classification and a list of allowed clients. Servers are hosted centrally or inside their owning services, but always behind a gateway that handles authentication, rate limits and audit, and tools act with user-delegated tokens so every call has the user's permissions rather than a shared super account. Tool names and schemas are versioned with announced deprecations and tested against the main clients before changes, and teams get templates based on Spring AI or the MCP Java SDK plus a security review for every new server.
What to remember
In this answer, we designed an MCP platform for thirty systems. A registry records owners, data classification and allowed clients; servers run centrally or with their owners behind a gateway that handles authentication, rate limits and audit; user-delegated tokens keep every call within the user's permissions; tool schemas are versioned, deprecated with notice and tested against the main clients; and templates plus security reviews help teams build new servers correctly.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The platform has a registry of approved MCP servers, each with an owner, a data classification and a list of allowed clients. Servers are hosted centrally or inside their owning services, but always behind a gateway that handles authentication, rate limits and audit, and tools act with user-delegated tokens so every call has the user's permissions rather than a shared super account. Tool names and schemas are versioned with announced deprecations and tested against the main clients before changes, and teams get templates based on Spring AI or the MCP Java SDK plus a security review for every new server.
Why this question is asked
Exposing one system through MCP is a small project. Exposing thirty is a platform, and without one the company gets thirty different security models, servers nobody owns, and assistants that break whenever a schema changes. Interviewers ask this design question to see whether we can apply the usual platform thinking, registries, gateways, identity and change management, to a new kind of integration. In this answer, we will design the registry, choose hosting, put a gateway in front, work out identity, plan schema changes and make it easy for teams to build servers correctly.
1A Quick Recap of What We Are Building
Each of the thirty systems, such as HR, tickets, CRM, the data warehouse and the build system, will get an MCP server: a small service that exposes tools, resources and prompts over MCP. The clients are AI assistants inside the company: a chat assistant, coding assistants and agent services built by product teams. The platform is everything that lets these servers be found, used securely and changed safely.
2A Registry of Approved Servers
The registry is the catalogue. For each server it records the owning team and an on-call contact, the data classification of what the tools return (public, internal, confidential, restricted), the endpoint and current tool versions, and the allowed clients, meaning which assistants may connect. A server holding restricted HR data might be allowed only for the HR assistant, while the public documentation server is open to all.
Clients discover servers through the registry rather than through URLs passed around in chat. A server that is not in the registry is not reachable through the gateway, so the registry becomes the place where approval actually takes effect.
| Server | Owner | Classification | Allowed clients |
|---|---|---|---|
| docs-search | Developer Experience | internal | all assistants |
| crm-accounts | Sales Platform | confidential | sales assistant, support agent |
| hr-records | People Systems | restricted | HR assistant only |
3Hosting and the Gateway
There are two hosting models, and we can allow both. Central hosting runs MCP servers on a shared platform, which suits systems whose teams do not want to operate another service and works well for thin adapters over existing APIs. Owner hosting puts the MCP server inside, or next to, the owning service, which suits teams with complex domains who want to evolve tools with their APIs.
Either way, all client traffic goes through an MCP gateway. The gateway validates tokens, checks the registry for whether this client may reach this server, applies rate limits per user and per client, and writes an audit record of every tool call: who, which client, which tool, which arguments in redacted form and how much data came back. Putting these concerns in one place means thirty server teams do not each reimplement them.
- AI assistants (MCP clients)chat, coding, product agents
- MCP gatewayauthentication, registry check, rate limits, audit
- Registryowners, classification, allowed clients, versions
- MCP serverscentral or inside owning services
- Systems of recordHR, CRM, tickets, warehouse and 26 more
5 layers, from the top down. Step through them one at a time.
4Identity: Delegated Tokens, Not a Super Account
The most dangerous shortcut would be a single powerful account that every server uses to call its system. Then any user of any assistant could, through the right prompt, reach data far beyond their own rights, and the audit trail would only show the shared account.
Instead, tools act with user-delegated tokens. The user signs in to the assistant, the assistant obtains an access token for that user through the MCP authorization flow, which is based on OAuth, and the gateway or server exchanges it for a token the backend accepts, keeping the user's identity and scopes. The CRM then applies exactly the permissions it applies in its own UI. Purely automated agents get their own narrowly scoped identities, registered like any service account.
5Change Management for Tool Schemas
Tool names, descriptions and parameter schemas are a contract with clients, and clients often cache the tool list. A renamed parameter can silently break an assistant, and even a changed description can change how models use a tool. So we version them. Compatible changes, such as a new optional parameter, can go out with a minor version. Breaking changes create a new tool name or version, the old one is marked deprecated in the registry, consumers are notified, and both stay available for an agreed period, for example 90 days.
Before any change is released, the platform runs a contract test suite against the main clients: it connects with each client's MCP library, lists tools, checks the schema, and runs a small evaluation of typical prompts to confirm models still choose and call the tool correctly.
6Templates and Security Reviews
To make the right way the easy way, the platform provides a server template, a Spring Boot project with the Spring AI MCP server starter or the plain MCP Java SDK, already wired for token validation, structured logging, result size limits, health checks and contract tests. A team builds a new server by adding typed tool methods.
Each new server, and each new tool on an existing server, goes through a short security review before entering the registry: what data it returns, whether it performs actions, how it checks permissions, and whether its descriptions are clear and free of hidden instructions. Action tools that change data get extra scrutiny and often need approval flows.
7Follow-up questions
How do you handle third-party MCP servers from vendors?
They go through the same registry and review, connect only through the gateway, and get least-privilege credentials. We pin their approved tool descriptions and alert when they change, because a vendor server can change its tools without our release process.
Who pays for and runs the gateway?
The AI platform team, as shared infrastructure, the same way an API gateway is run. Its cost is small compared with thirty teams each building authentication, rate limiting and audit.
How do you measure whether the platform is working?
Time for a team to ship a new server, number of tool calls and active users per server, incidents and blocked calls, and how many schema changes broke a client. Unused servers are candidates for retirement.
8Conclusion
In this answer, we designed an MCP platform for thirty systems. A registry records owners, data classification and allowed clients; servers run centrally or with their owners behind a gateway that handles authentication, rate limits and audit; user-delegated tokens keep every call within the user's permissions; tool schemas are versioned, deprecated with notice and tested against the main clients; and templates plus security reviews help teams build new servers correctly.
Open with
I would build it like any integration platform. First, a registry of approved MCP servers: each entry has an owning team, the data classification of what it returns, its versions and which clients may connect, so the HR server is reachable only from the HR assistant, for example.
Then, if they want more
Hosting can be central for thin adapters, or inside the owning service for complex domains, but all traffic goes through an MCP gateway that validates tokens, checks the registry, rate limits per user and client, and writes an audit record of every tool call. For identity, no shared super account.
The user signs in to the assistant, which gets a delegated token through the OAuth-based MCP authorization flow, and that is exchanged for a backend token, so each system applies the user's own permissions and the audit shows the real person.
For change management, tool names and schemas are a contract that clients cache, so additive changes go out as minor versions, breaking changes get a new tool version with the old one deprecated for something like 90 days, and every change runs contract tests and a small evaluation against our main clients.
Finally, I would give teams a Spring AI or MCP Java SDK template with security, logging and limits built in, and require a short security review before a server or tool enters the registry.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring AI reference
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your company wants to expose 30 internal systems to AI assistants through MCP. Design...": https://scrivio-interview-library.netlify.app/spring-boot/ai-agents-and-mcp/77076f9349/