test: expect the MCP view of BM answers
- viaMCP, includeBody and the material views (no body unless asked) - jz.bm.mcp-links: absolute url / *_url under MCP only - jz.bm.manage keyed per user for dispatched calls - bm_material and bm_materials in the pinned tool list Compile-only stubs; the tests fail on their assertions.
This commit is contained in:
@@ -20,9 +20,12 @@ const MiddlewareRealtimeAccess = "jz.bm.realtime-access"
|
||||
// here without importing that plugin.
|
||||
const presentationsOwnerGuard = "presentations.realtime-owner"
|
||||
|
||||
// Middlewares exports the realtime access guard.
|
||||
// Middlewares exports the realtime access guard and the MCP link rewriter.
|
||||
func (p *Plugin) Middlewares() map[string]pact.Middleware {
|
||||
return map[string]pact.Middleware{MiddlewareRealtimeAccess: p.realtimeAccess}
|
||||
return map[string]pact.Middleware{
|
||||
MiddlewareRealtimeAccess: p.realtimeAccess,
|
||||
MiddlewareMCPLinks: p.mcpLinks,
|
||||
}
|
||||
}
|
||||
|
||||
// realtimeAccess lets a chat-group member through, otherwise, when
|
||||
|
||||
Reference in New Issue
Block a user