vaquarkhan commented on issue #1036:
URL: https://github.com/apache/burr/issues/1036#issuecomment-7069296664

   Nice sketch, @YongGoose . Two things before the PR:
   
   Put the ../separator check in LocalBackend, not mcp.py. The paths are built 
there (os.path.join(self.path, project_id, app_id, ...)) and the REST routes 
pass IDs in unchecked, so /api/v0 on the same port would stay exposed. Same for 
the Host check: the SDK 421s /mcp, but /api/v0/.../apps serves the same state 
with no TrustedHostMiddleware. Happy to send both as a small separate PR.
   
   Why is inspect the safe default and annotate the risky one? inspect returns 
prompts and end-user text from state; annotate writes a note. And 
max_chars=None is an escape hatch the model can use once it reads an injected 
value. A server-side cap (BURR_MCP_MAX_CHARS) and inspect under BURR_MCP_GROUPS 
too would keep the laptop case easy and make remote defensible.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to