MCP server authorization usually stops at one question: is this agent allowed to connect? That is not enough once an agent can delete files, send emails or pay a fee on your behalf. In this tutorial you will build a human-in-the-loop MCP confirmation gateway in Python: a small local proxy that sits in front of any MCP server, lets safe read-only tools run, and stops every delete, send or spend call until a real person approves the exact action in an MCP Elicitation form.
It is a practical final-year or mini project for BTech, MCA and MTech students who want to work on AI agent safety with real code. You will learn the Model Context Protocol, policy-based authorization, MCP Elicitation, hash-chained audit logs and async testing. The complete project is free on GitHub under the MIT License, with 105 offline pytest tests, a demo server and ready-to-use policy files.
Table of Contents
What You Will Build: An MCP Server Authorization Gateway
The project is called hitl-gateway (human in the loop). It is an MCP server and an MCP client at the same time. Your agent host connects to the gateway; the gateway connects to the real server and copies its tools, with the same names, descriptions and input schemas, so the agent does not notice any difference until something risky happens. Here is what it does:
- Classifies every tool as
read,write,delete,send,spendorunknown, using MCP tool annotations and the tool name. - Applies a TOML policy: each category is
allow,confirmordeny, with wildcard rules for single tools. - Enforces hard limits that no click can override: maximum spend per call, a session budget, allowed email domains and protected paths such as
records/*or.env. - Asks the user through an MCP Elicitation form before risky calls. The user must type a short code such as
DEL-55B3that is tied to the exact arguments, and must retype the amount for payments. - Writes a tamper-evident audit log: JSON Lines with a SHA-256 hash chain and redacted secrets, plus an
audit verifycommand. - Fails closed: if the client cannot show forms, risky calls return an error and nothing runs.

Because it works as a proxy, you get MCP server authorization for servers you did not write and cannot change. For the demo you also get campus-desk, a small simulated MCP server for a student project team with files, an email outbox and a fee wallet. Nothing in it is real: no email leaves your machine and no money moves, so you can safely try every case.
Why MCP Server Authorization Needs a Human in the Loop Now
Late November 2026 brought three announcements that point the same way. On 24 November 2026 Anthropic published MCP servers can now ship skills, run tasks, and more with Claude, announcing that Tasks and Elicitation are generally available in Claude and Claude Code. The post explains that some actions need a user’s sign-off, “like spending money or deleting data”, and gives real examples.
Supabase confirms costs before creating a paid project, Railway asks before removing a service, and GitHub makes users type a repository’s name before an agent deletes it. The New Stack’s coverage (24 November 2026) describes the same pattern: servers mostly use Elicitation to get a user’s approval before something that costs money or cannot easily be undone. In other words, Elicitation is now a practical building block for MCP server authorization at the level of single actions.
The same day, Google made the Google Workspace MCP servers and the Workspace CLI generally available. Alongside centralised agent access and automatic DLP, admins can now set human-in-the-loop confirmation rules that prompt users to confirm sensitive actions in third-party AI tools, and admin audit logs record agent actions and user confirmations.
On 25 November 2026 the AWS Security Blog published Secure agentic access to AWS with Enterprise-Managed Authorization. AWS Sign-In now supports Enterprise-Managed Authorization (EMA), an MCP extension that uses the Identity Assertion JWT Authorization Grant (ID-JAG), so a company’s identity provider such as Okta can authorise AI agents to use the AWS MCP Server. The post points out that signing in to an AI application does not automatically grant access to AWS resources, and recommends least-privilege IAM roles to reduce the impact of unintended actions.
Put together, these tell you how MCP server authorization works in practice. It has layers, and each layer answers a different question:
| Layer | Question it answers | Example |
|---|---|---|
| Identity and OAuth (MCP Authorization spec, EMA / ID-JAG) | Who is this agent, and may it reach this server? | AWS Sign-In token mapped to an IAM role |
| Permissions on the server | Which operations may this token perform? | IAM policy, Workspace admin controls |
| Action-level confirmation (this project) | Should this exact call, with these arguments, run right now? | “Delete notes/os-deadlock.md? Type DEL-55B3” |
| Audit | What happened, and can we prove it? | Hash-chained log of every decision |
The first two layers are the job of the server owner and your identity provider (see the MCP Authorization specification). The third layer is what you build here. It works with any MCP server, including small local ones that have no confirmations of their own, which makes it a great learning project and a useful tool.
Features, Tech Stack and Prerequisites
| Item | Details |
|---|---|
| Language | Python 3.11 or newer (uses the built-in tomllib) |
| MCP library | Official MCP Python SDK, mcp>=2.3,<3 (MCPServer, Client, Resolve, Elicit) |
| Protocol versions | 2025-11-25 (standalone elicitation/create) and 2026-07-28 (InputRequiredResult round trip), both tested |
| Policy | TOML file: category defaults, wildcard rules, spend limits, email domains, protected paths |
| Audit | JSON Lines, SHA-256 hash chain, secret redaction, verify and tail commands |
| Tests | pytest + pytest-asyncio, 105 offline tests, including a real stdio end-to-end run |
| OS | Windows, macOS or Linux; no API keys, no paid services, no internet needed after install |
You should know basic Python, functions and classes, and have a rough idea of what an MCP server is. If MCP is new to you, start with our guide to building an MCP server in Python, then come back.
Project File Structure
MCP-Confirmation-Gateway-Human-in-the-Loop-Python/
├── hitl_gateway/
│ ├── gateway.py # proxy tools, Resolve/Elicit confirmation, forwarding
│ ├── policy.py # TOML policy, classification, hard limits, decisions
│ ├── confirm.py # confirmation forms + argument-bound challenge codes
│ ├── audit.py # hash-chained JSON Lines audit log + verify
│ ├── redact.py # secret redaction, readable argument rendering
│ ├── campus_desk.py # simulated downstream MCP server (files, outbox, wallet)
│ ├── cli.py # serve | demo | explain | audit verify | audit tail
│ └── __main__.py
├── examples/
│ ├── policy.toml # default policy with comments
│ ├── strict-policy.toml # exam-week profile: no spending at all
│ └── mcp-client-config.json # how to plug it into an MCP client
├── tests/ # 105 pytest tests
├── docs/screenshots/
├── .github/workflows/tests.yml
├── pyproject.toml
└── README.md
How the MCP Server Authorization Gateway Works
Follow one call from start to finish. The agent wants to delete a note, so it calls delete_file on the gateway. The gateway checks the policy, asks the user, and only then talks to the real server:

- Mirror: at start-up the gateway calls
tools/liston the downstream server and registers one proxy tool for each tool, keeping the original input schema. - Classify and decide: the policy turns the tool and its arguments into a decision:
allow,confirmordeny, plus a reason. - Ask: for
confirm, a resolver returns anElicitrequest. The SDK sends the form in whatever way the negotiated protocol version expects. - Check: the tool body checks that the user accepted, typed the right code, ticked “understood” and (for payments) typed the right amount. It also re-runs the policy, in case the budget changed while the form was open.
- Forward and log: only then are the exact same arguments forwarded downstream. Every outcome (allowed, approved, declined, cancelled, mismatch, denied) goes into the audit log.
The rule of thumb for this MCP server authorization design: limits deny, humans confirm. A payment above the per-call limit is refused before anybody sees a form, because a tired user clicking “Accept” at midnight should not be able to override a hard rule.
Step-by-Step Build
Step 1: Set Up the Project
git clone https://github.com/GetProjectsIdea/MCP-Confirmation-Gateway-Human-in-the-Loop-Python.git
cd MCP-Confirmation-Gateway-Human-in-the-Loop-Python
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
This installs the official MCP Python SDK, pytest and the mcp-hitl-gateway command. There are no API keys to configure.
Step 2: Write the MCP Server Authorization Policy
The policy file is where your MCP server authorization rules live. It is plain TOML, so you, your project guide or a system admin can read it at a glance. Categories get a default action, explicit rules win over defaults, and limits are always hard denials:
# Human-in-the-loop MCP gateway policy (same as the built-in default).
# Actions: "allow" (run at once), "confirm" (ask the user with a form), "deny" (refuse).
[defaults]
read = "allow"
write = "confirm"
delete = "confirm"
send = "confirm"
spend = "confirm"
unknown = "confirm" # fail safe: unclassified tools always need a human
[limits]
max_spend_per_call = 2000 # above this: deny, even if the user would click yes
session_spend_budget = 5000 # total approved spend per gateway session
allowed_email_domains = ["college.edu.in"]
protected_paths = ["records/*", "*.db", ".env"]
# Explicit rules are checked first. Patterns use shell-style wildcards.
[[rules]]
tool = "wipe_*"
action = "deny"
reason = "bulk wipes are never allowed through an agent"
[[rules]]
tool = "sync_*"
category = "send"
Notice unknown = "confirm". If the gateway cannot work out what a tool does, a human has to look at it. This “fail safe” default is the most important line in the file.
Step 3: Classify Every Tool
MCP tools can carry annotations such as readOnlyHint, destructiveHint and openWorldHint (see the MCP tools specification). They are useful, but they are hints written by the server author. So the gateway also looks at the tool name, and a name that clearly deletes, sends or spends always wins over an annotation that claims to be read-only:
def classify(self, tool: types.Tool) -> tuple[Category, str]:
"""Return (category, why) for a downstream tool, before looking at arguments."""
for rule in self.rules:
if rule.category and rule.matches(tool.name):
return rule.category, f"rule '{rule.tool}'"
name = re.sub(r"([a-z])([A-Z])", r"\1_\2", tool.name).lower().replace("-", "_").replace(".", "_")
ann = tool.annotations
by_name = next((cat for cat, rx in NAME_HINTS if rx.search(name)), None)
# Names that clearly delete/spend/send win: an annotation saying "read only" must
# not be enough to wave through a tool called delete_everything.
if by_name in ("spend", "delete", "send"):
return by_name, f"tool name suggests '{by_name}'"
if self.trust_annotations and ann is not None:
if ann.destructive_hint:
return "delete", "destructiveHint annotation"
if ann.read_only_hint:
return "read", "readOnlyHint annotation"
if ann.open_world_hint:
return "send", "openWorldHint annotation"
if by_name:
return by_name, f"tool name suggests '{by_name}'"
return "unknown", "no annotation or name hint"
For an extra-careful setup, trust_annotations = false in the policy makes the gateway ignore annotations completely and rely on names and explicit rules.
Step 4: Turn Arguments into a Decision
Classification only looks at the tool. The decision also looks at the arguments, which is where real MCP server authorization rules live. Paths are normalised first, so records/../records/marks.csv cannot sneak past a records/* rule, and email domains are matched exactly so college.edu.in.evil.com is refused:
# Hard limits always beat a human click: they are "deny", never "confirm".
paths = [_norm_path(p) for f in lim.path_fields for p in _as_list(args.get(f))]
for p in paths:
for pattern in lim.protected_paths:
if fnmatch.fnmatchcase(p, _norm_path(pattern)) or fnmatch.fnmatchcase(PurePosixPath(p).name, pattern):
return Decision(tool.name, category, "deny", f"path '{p}' is protected by '{pattern}'")
recipients = tuple(r.lower() for f in lim.recipient_fields for r in _as_list(args.get(f)))
if recipients and lim.allowed_email_domains and category in ("send", "write", "unknown"):
allowed = [d.lower().lstrip("@") for d in lim.allowed_email_domains]
for r in recipients:
domain = r.rsplit("@", 1)[-1] if "@" in r else ""
if not domain or not any(domain == d or domain.endswith("." + d) for d in allowed):
return Decision(tool.name, category, "deny", f"recipient '{r}' is outside the allowed domains {allowed}", recipients=recipients)
amount = None
if category == "spend":
amounts = [n for f in lim.amount_fields if (n := _number(args.get(f))) is not None]
amount = max(amounts) if amounts else None
if amount is None:
return Decision(tool.name, category, "confirm" if action != "deny" else "deny", "spend tool without a readable amount: a human must check it")
if amount < 0:
return Decision(tool.name, category, "deny", "negative amounts are not allowed", amount=amount)
if lim.max_spend_per_call is not None and amount > float(lim.max_spend_per_call):
return Decision(tool.name, category, "deny", f"amount {amount:g} is above max_spend_per_call {float(lim.max_spend_per_call):g}", amount=amount)
if lim.session_spend_budget is not None and spent_so_far + amount > float(lim.session_spend_budget):
return Decision(tool.name, category, "deny", f"session budget {float(lim.session_spend_budget):g} would be exceeded (already approved {spent_so_far:g})", amount=amount)
if action == "confirm" and lim.auto_approve_spend_below is not None and amount < float(lim.auto_approve_spend_below):
return Decision(tool.name, category, "allow", f"small spend below {float(lim.auto_approve_spend_below):g}", amount=amount)
Step 5: Bind the Confirmation to the Exact Arguments
A plain “Are you sure? Yes/No” box is easy to click without reading. Following the GitHub example from the Claude announcement (type the repository name before deleting it), the gateway asks the user to type a short code. The code is a hash of the tool name, the exact arguments and a random per-run salt, so an approval for one file can never approve deleting another:
class ConfirmAction(BaseModel):
"""Shown before delete / send / write / unknown actions."""
confirm_code: str = Field(description="Type the confirmation code shown in the message")
understood: bool = Field(default=False, description="I have read the details and I want this exact action to run")
class ConfirmSpend(BaseModel):
"""Shown before a spend action: the user must also retype the amount."""
confirm_code: str = Field(description="Type the confirmation code shown in the message")
amount: float = Field(description="Type the exact amount that will be spent")
understood: bool = Field(default=False, description="I approve spending this amount")
def challenge(tool: str, args: dict[str, Any], category: str, salt: str) -> str:
"""Short code tied to tool + exact arguments (+ a per-process salt).
Deterministic for the same call, so the form renders identically when the
framework re-runs the resolver, but different for any other arguments.
"""
digest = hashlib.sha256(f"{salt}|{tool}|{canonical(args)}".encode()).hexdigest()
return f"{PREFIX.get(category, 'RUN')}-{digest[:4].upper()}"
The forms only use simple fields (text, number, true/false) because the MCP Elicitation specification limits form schemas to flat, primitive properties that any client can render.
Step 6: Build the Proxy Tool with Resolve and Elicit
This is the heart of the MCP server authorization gateway. The MCP Python SDK lets a tool parameter be filled by a resolver using Annotated[..., Resolve(fn)]. If the resolver returns Elicit(message, Form), the SDK asks the user and injects the answer. If it returns None, nothing is asked. If it raises ToolError, the call is refused. Our resolver runs the policy:
def ask(ctx: Context) -> Elicit[BaseModel] | None:
# The resolver reads the same arguments the tool body will forward:
# known properties only, explicit nulls dropped (see collect()).
raw = (ctx.request_context.params or {}).get("arguments") or {}
args = {k: v for k, v in raw.items() if k in props and v is not None}
d = gw.policy.decide(tool, args, gw.spent)
if d.action == "deny":
gw.audit.record("call", tool.name, "denied", category=d.category, reason=d.reason, args=args)
raise ToolError(f"NOT EXECUTED: blocked by gateway policy: {d.reason}")
if d.action == "allow":
return None
code = challenge(tool.name, args, d.category, gw.salt)
return Elicit(message(d, args, code, gw.downstream_name), form_for(d))
The proxy tool body then checks the answer and forwards the call. Because the downstream server can have any arguments, the gateway builds the function signature at runtime with inspect.Signature and then advertises the downstream JSON schema unchanged:
async def proxy(**kw: Any) -> types.CallToolResult:
conf = kw.get("hitl_confirmation")
args = collect(kw)
d = gw.policy.decide(tool, args, gw.spent)
if d.action == "deny": # re-check: the budget may have moved since the form was shown
gw.audit.record("call", tool.name, "denied", category=d.category, reason=d.reason, args=args)
return _text(f"NOT EXECUTED: blocked by gateway policy: {d.reason}", {"executed": False, "outcome": "denied", "reason": d.reason}, True)
outcome = "allowed"
if d.action == "confirm":
if not isinstance(conf, AcceptedElicitation):
action = getattr(conf, "action", "cancel")
outcome = "declined" if action == "decline" else "cancelled"
gw.audit.record("call", tool.name, outcome, category=d.category, args=args)
return _text(f"NOT EXECUTED: the user {outcome} '{tool.name}'.", {"executed": False, "outcome": outcome})
form = conf.data
expected = challenge(tool.name, args, d.category, gw.salt)
problems = []
if form is None or not same_code(form.confirm_code, expected):
problems.append("confirmation code did not match")
if form is not None and not form.understood:
problems.append("'understood' was not ticked")
if isinstance(form, ConfirmSpend) and d.amount is not None and abs(form.amount - d.amount) > 1e-9:
problems.append(f"typed amount {form.amount:g} differs from {d.amount:g}")
if problems:
gw.audit.record("call", tool.name, "mismatch", category=d.category, problems=problems, args=args)
return _text("NOT EXECUTED: " + "; ".join(problems) + ".", {"executed": False, "outcome": "mismatch", "problems": problems})
outcome = "approved"
Two details matter for security. First, the body re-runs the policy, so a session budget that was used up by another call while the form was open still blocks this one. Second, a declined or mismatched call returns a clear NOT EXECUTED message, and the gateway’s instructions tell the agent not to retry with different wording but to explain what was blocked.
Step 7: Keep a Tamper-Evident Audit Log
Google’s Workspace update stresses audit logs that record agent actions and user confirmations. Ours is a simple version of the same idea that you can explain in a viva. Each JSON line stores the hash of the previous line, so editing, deleting or reordering any line breaks the chain:
def record(self, event: str, tool: str, outcome: str, **details: Any) -> dict[str, Any]:
with self._lock:
entry: dict[str, Any] = {
"seq": len(self.entries) + 1,
"ts": self._clock().isoformat(timespec="seconds"),
"event": event,
"tool": tool,
"outcome": outcome,
**{k: shorten(redact(v, k), 300) for k, v in details.items()},
"prev": self._last,
}
entry["hash"] = _digest(entry)
self._last = entry["hash"]
self.entries.append(entry)
if self.path:
self.path.parent.mkdir(parents=True, exist_ok=True)
with self.path.open("a", encoding="utf-8") as fh:
fh.write(json.dumps(entry, ensure_ascii=False) + "\n")
return entry
Arguments pass through redact() first, which masks keys like password, api_key, access_token or otp, and values that look like real credentials, so secrets never reach the log file.
Step 8: The Demo Server
campus_desk.py is a normal MCP server built with MCPServer. It has read-only tools (list_files, read_file, wallet_balance) and risky ones (write_file, delete_file, send_email, pay_fee), all simulated in memory. You can swap it for any stdio MCP server by changing the command after --.
Running and Testing the MCP Server Authorization Gateway
Run the scripted demo first to see MCP server authorization decisions in action. A simulated user answers each confirmation form so you can see every outcome in one go:
mcp-hitl-gateway demo --audit demo-audit.jsonl
mcp-hitl-gateway explain # allow / confirm / deny per tool
mcp-hitl-gateway audit verify demo-audit.jsonl

To protect a real agent session, start the gateway in front of the server. Everything after -- is the downstream command; add the same command to your MCP client’s configuration (an example is in examples/mcp-client-config.json):
mcp-hitl-gateway serve --policy examples/policy.toml \
--audit hitl-audit.jsonl --name campus-desk \
-- python -m hitl_gateway campus-desk
Your client needs to support form elicitation for risky calls to go through. Read-only tools work in every client; risky ones fail safely in clients without form support.
Then run the tests. They are fully offline and run each gateway test on both MCP protocol versions, plus one test that starts the agent, gateway and server as three separate processes over stdio:
pytest -q
105 passed in 5.06s

| Test file | What it proves |
|---|---|
test_policy.py | Classification, rules, protected paths (including .. tricks), email domains, spend limits, invalid policy files |
test_confirm.py | Codes are stable for the same call and different for any other call, salt or tool |
test_audit.py | Hash chain, edit/delete/reorder detection, redaction, reopening an existing log |
test_gateway.py | Mirrored schemas, approve, wrong code, unticked box, decline, cancel, stolen code, budgets, fail-closed clients, odd argument names |
test_cli.py | Demo, explain, audit commands and a real stdio end-to-end run |
Reading the Audit Log
Good MCP server authorization is auditable. explain prints the policy decision for each tool, and the audit log shows every call with its outcome. If someone edits a line later, for example changing approved to declined, audit verify reports the exact line:

In a project report this is a nice talking point: the log does not stop a person with file access from deleting the whole file, but it makes silent edits detectable. For stronger guarantees you could send each hash to a separate system, which is listed in the future scope below.
MCP Server Authorization: Security Notes and Limitations
- Defence in depth, not a replacement: this kind of MCP server authorization adds a check on top of the real server’s own authentication and permissions. Keep least-privilege credentials on the server side too, as the AWS post recommends.
- The form must reach a person: a client that auto-accepts forms defeats the purpose. Use clients that show elicitation forms to the user.
- Tool list is read once: the gateway does not yet refresh when the downstream server changes its tools.
- Explicit nulls are dropped before forwarding, which matches how optional arguments usually work.
- Everything stays local: no telemetry, no network calls except to the downstream server you start.
Troubleshooting
- “elicitation capability” error on a delete: your client does not support form elicitation. This is the fail-closed behaviour; use a client with form support.
- A safe tool asks for confirmation: the gateway could not classify it. Add a rule such as
tool = "get_report"withcategory = "read". - “outside the allowed domains”: add the domain to
allowed_email_domains; subdomains are allowed automatically. - Code never matches: codes change when arguments change and when the gateway restarts. Type the code from the current form.
- policy error, exit code 2: a typo in the TOML file, such as
read = "sometimes". Valid actions are allow, confirm and deny.
Learning Outcomes and Viva Questions
After this MCP server authorization project you can explain how MCP tools, annotations and Elicitation work, design a policy engine, bind an approval to exact data with hashing, build tamper-evident logs and test async protocol code. Be ready for questions like these:
- What is the difference between OAuth-based MCP authorization and action-level confirmation?
- Why does a dangerous tool name win over a
readOnlyHintannotation? - Why are spend limits a “deny” and not a “confirm”?
- How does the confirmation code stop an approval from being reused for another file?
- What happens when the client does not support elicitation, and why is that the safe choice?
- How does a hash chain detect an edited audit line, and what can it not detect?
Future Scope and Ideas to Extend
- Roles: different policies for a student, a team lead and a project guide.
- URL-mode elicitation: send approvals to a phone or a second person for two-person control of payments.
- HTTP transport with OAuth: run the gateway as a remote server and combine it with the MCP Authorization flow.
- Live tool refresh: handle
tools/list_changedfrom the downstream server. - Audit anchoring: publish every hundredth hash to a separate store so deleting the whole log is detectable.
- Dashboard: show approvals and denials in a small web UI, for example as an MCP Apps view.
FAQ
What is MCP server authorization?
MCP server authorization is how an MCP server decides what a connecting AI agent may do. The MCP Authorization specification covers identity and OAuth tokens: who the agent is and whether it may reach the server. This project adds action-level authorization on top: whether one specific tool call, with its exact arguments, may run right now.
What is MCP Elicitation?
Elicitation lets an MCP server pause a tool call and ask the user for input through a form or a link, then continue. Anthropic announced Elicitation as generally available in Claude and Claude Code on 24 November 2026, with examples such as confirming costs or making users type a repository name before deleting it.
Does the gateway replace OAuth or IAM permissions?
No. It is an extra safety layer. Keep proper identity and least-privilege permissions on the real server. The gateway makes sure a human approves risky actions and that every decision is logged.
Which MCP servers can I put behind the gateway?
Any MCP server that runs over stdio. The gateway mirrors its tools with the same names and input schemas. The repo includes a simulated campus-desk server so you can test safely.
What happens if my MCP client does not support Elicitation?
Read-only tools keep working. Tools that need confirmation fail with an error, so nothing risky runs. This is called failing closed.
Can I submit this as my final-year project?
Yes. The code is MIT licensed. Add one feature from the future scope list, explain the policy and the hash chain in your report, and run the 105 tests during your demo. The source is on GitHub.
Download the Source Code
The complete project (gateway, policy engine, confirmation forms, audit log, demo server, example policies, 105 tests, CI and screenshots) is on GitHub: GetProjectsIdea/MCP-Confirmation-Gateway-Human-in-the-Loop-Python. It is released under the MIT License, so you can use it as an MCP server authorization starter for coursework, college projects and your own agents.
Related Projects on GetProjects
- How to build an MCP server in Python: Skills over MCP, Tasks and Elicitation with the official SDK
- MCP Apps in Antigravity with Python and HTML: an interactive student dashboard returned by an MCP tool
- Claude Code skills and plugins pack in Python: SKILL.md playbooks with a validator
- Google Antigravity orchestrator in Python: a local planner/executor pair with hand-back
- Hardened LLM gateway in Python: rate limits, guardrails and logging for model calls
- AI coding agent security scanner: audit agent configuration files for risky settings
References
- Anthropic: MCP servers can now ship skills, run tasks, and more with Claude (24 Nov 2026)
- The New Stack: As MCP turns two, Claude gets Skills over MCP and better support for long-running tasks (24 Nov 2026)
- Google Workspace Updates: MCP servers, CLI, standardized usage tiers, and admin policies (24 Nov 2026)
- AWS Security Blog: Secure agentic access to AWS with Enterprise-Managed Authorization (25 Nov 2026)
- MCP specification: Authorization and Elicitation (version 2025-11-25)
- MCP specification: Tools and tool annotations
Conclusion
You have built a complete MCP server authorization layer that keeps a human in the loop: a Python gateway that mirrors any MCP server, lets safe tools run, asks for a typed confirmation before deletes, emails and payments, enforces hard limits and records everything in a tamper-evident log. Clone the repository, run mcp-hitl-gateway demo, write your own policy, and turn it into a strong final-year project. Happy coding!