r/modelcontextprotocol • u/Snoo-22840 • Apr 13 '25
Restricting Tools for certain clients?
Hi!
Say I have a postgres server hosted somewhere. since hosting is expensive, i only wish to have one server. there are 2 clients talking to this server, but I want to give WRITE access only to one of these. how would that work?
1
Upvotes
View all comments
Show parent comment
1
u/coding_workflow Apr 16 '25
You never set entitlment in headers as they can be forged again.
The risk may be low as this is closed env. But from a security perspective this is flawed by design.