What do you want to change?
As I can see right now, Pi allows extensions to resolve trust decisions, but builtin settingsManager.isProjectTrusted() is not exposed. So plugins can't really utilize trust decision.
Why?
I am building MCP extension for my personal usage, and want to use trust model to decide whether to load project local mcp.json, or not. It seems that I can read global trust storage, but that will not provide information about temporary trusting
How? (optional)
As I understand the codebase, it should not be hard to create new field in ExtensionContext struct. Maybe I am wrong and it is not worth it...
What do you want to change?
As I can see right now, Pi allows extensions to resolve trust decisions, but builtin
settingsManager.isProjectTrusted()is not exposed. So plugins can't really utilize trust decision.Why?
I am building MCP extension for my personal usage, and want to use trust model to decide whether to load project local mcp.json, or not. It seems that I can read global trust storage, but that will not provide information about temporary trusting
How? (optional)
As I understand the codebase, it should not be hard to create new field in ExtensionContext struct. Maybe I am wrong and it is not worth it...