Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Cellm/AddIn/UserInterface/Ribbon/RibbonToolGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@

public bool GetMcpEnabled(IRibbonControl control)
{
return false;

var account = CellmAddIn.Services.GetRequiredService<Account>();

Check warning on line 231 in src/Cellm/AddIn/UserInterface/Ribbon/RibbonToolGroup.cs

View workflow job for this annotation

GitHub Actions / Build

Unreachable code detected

Check warning on line 231 in src/Cellm/AddIn/UserInterface/Ribbon/RibbonToolGroup.cs

View workflow job for this annotation

GitHub Actions / Build

Unreachable code detected

return account.HasEntitlement(Entitlement.EnableModelContextProtocol);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Cellm/Models/Behaviors/ToolBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TRe
logger.LogDebug("MCP tools disabled");
}

if (request.Prompt.Options.Tools is not null && request.Prompt.Options.Tools.Any())
if (request.Prompt.Options.Tools?.Any() ?? false)
{
logger.LogDebug("Tools: {tools}", request.Prompt.Options.Tools);
}
Expand Down
Loading