Skip to content

Expose isProjectTrusted, so extensions can utilize trust decision Pi made #5523

@dangooddd

Description

@dangooddd

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...

Metadata

Metadata

Assignees

Labels

inprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions