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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ codeunit 8350 "MCP Config"
end;

/// <summary>
/// Allows create, update and delete tools for the specified MCP configuration.
/// Allows create, update and delete tools for the specified MCP configuration. Disallowing this will make the tools read-only.
/// </summary>
/// <param name="ConfigId">The SystemId (GUID) of the configuration.</param>
/// <param name="Allow">True to allow create, update and delete tools, false to disallow.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@ page 8351 "MCP Config Card"
Caption = 'General';
field(Name; Rec.Name)
{
ToolTip = 'Specifies the name of the MCP configuration.';
Editable = not IsDefault;
}
field(Description; Rec.Description)
{
ToolTip = 'Specifies the description of the MCP configuration.';
Editable = not IsDefault;
MultiLine = true;
}
field(Active; Rec.Active)
{
ToolTip = 'Specifies whether the MCP configuration is active.';
Editable = not IsDefault;

trigger OnValidate()
Expand All @@ -46,8 +44,6 @@ page 8351 "MCP Config Card"
}
field(EnableDynamicToolMode; Rec.EnableDynamicToolMode)
{
Caption = 'Dynamic Tool Mode';
ToolTip = 'Specifies whether to enable dynamic tool mode for this MCP configuration. When enabled, clients can search for tools within the configuration dynamically.';
Editable = not IsDefault;

trigger OnValidate()
Expand All @@ -60,8 +56,6 @@ page 8351 "MCP Config Card"
}
field(DiscoverReadOnlyObjects; Rec.DiscoverReadOnlyObjects)
{
Caption = 'Discover Additional Objects';
ToolTip = 'Specifies whether to allow discovery of read-only objects not defined in the configuration. Only supported with dynamic tool mode.';
Editable = not IsDefault and Rec.EnableDynamicToolMode;

trigger OnValidate()
Expand All @@ -71,9 +65,6 @@ page 8351 "MCP Config Card"
}
field(AllowProdChanges; Rec.AllowProdChanges)
{
Caption = 'Allow Create/Update/Delete Tools';
ToolTip = 'Specifies whether to allow create, update and delete tools for this MCP configuration.';

trigger OnValidate()
begin
if not Rec.AllowProdChanges then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,11 @@ page 8350 "MCP Config List"
{
repeater(Control1)
{
field(Name; Rec.Name)
{
ToolTip = 'Specifies the name of the MCP configuration.';
}
field(Description; Rec.Description)
{
ToolTip = 'Specifies the description of the MCP configuration.';
}
field(Active; Rec.Active)
{
ToolTip = 'Specifies whether the MCP configuration is active.';
}
field(Name; Rec.Name) { }
field(Description; Rec.Description) { }
field(Active; Rec.Active) { }
field(EnableDynamicToolMode; Rec.EnableDynamicToolMode) { }
field(DiscoverReadOnlyObjects; Rec.DiscoverReadOnlyObjects) { }
}
}
}
Expand Down Expand Up @@ -72,6 +65,15 @@ page 8350 "MCP Config List"
}
}

views
{
view(ActiveConfigurations)
{
Caption = 'Active configurations';
Filters = where(Active = const(true));
}
}

#if not CLEAN28
trigger OnOpenPage()
var
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ page 8352 "MCP Config Tool List"
repeater(Control1)
{
ShowCaption = false;
field("Object Type"; Rec."Object Type")
{
ToolTip = 'Specifies the type of the object.';
}
field("Object Type"; Rec."Object Type") { }
field("Object Id"; Rec."Object Id")
{
ToolTip = 'Specifies the ID of the object.';

trigger OnLookup(var Text: Text): Boolean
var
Expand Down Expand Up @@ -66,29 +62,22 @@ page 8352 "MCP Config Tool List"
Editable = false;
ToolTip = 'Specifies the name of the object.';
}
field("Allow Read"; Rec."Allow Read")
{
ToolTip = 'Specifies whether read operations are allowed for this tool.';
}
field("Allow Read"; Rec."Allow Read") { }
field("Allow Create"; Rec."Allow Create")
{
Editable = AllowCreateEditable and (IsSandbox or AllowCreateUpdateDeleteTools);
ToolTip = 'Specifies whether create operations are allowed for this tool.';
}
field("Allow Modify"; Rec."Allow Modify")
{
Editable = AllowModifyEditable and (IsSandbox or AllowCreateUpdateDeleteTools);
ToolTip = 'Specifies whether modify operations are allowed for this tool.';
}
field("Allow Delete"; Rec."Allow Delete")
{
Editable = AllowDeleteEditable and (IsSandbox or AllowCreateUpdateDeleteTools);
ToolTip = 'Specifies whether delete operations are allowed for this tool.';
}
field("Allow Bound Actions"; Rec."Allow Bound Actions")
{
Editable = IsSandbox or AllowCreateUpdateDeleteTools;
ToolTip = 'Specifies whether bound actions are allowed for this tool.';
}
}
}
Expand Down
Loading