AI & MCP Administration Guide

Modified on Mon, 30 Nov at 8:49 AM

This guide is for administrators who configure and operate the artificial-intelligence features of ManagementStudio: the built-in AI Analyst and the external MCP (Model Context Protocol) server that authorised AI clients connect to. It covers the global and per-project settings, the permissions that control access, testing before go-live, and troubleshooting.

Audience: Administrators configuring AI and MCP for their organisation. Related guides: The AI & MCP Overview explains the concepts; the AI Analyst User Guide is for end users; the AI Report Templates User Guide covers shared AI Reports.


TABLE OF CONTENTS


1. Overview

ManagementStudio provides two AI capabilities:

  • AI Analyst — ManagementStudio's own assistant, built into the desktop client: the AI Project Analyst page, the AI-powered grid filter and the AI Report Builder answer plain-English questions from ManagementStudio data. It can also produce Shared AI Reports, reusable report definitions that generate on demand — when a publisher publishes (or publishes changes) or presses Request Refresh — and never on a timer.
  • MCP Server — a per-project endpoint that external AI clients (for example Microsoft Copilot Studio) connect to using their own language model. ManagementStudio exposes tools such as searching, running saved reports and reading project documentation, and the client's model turns the results into natural language.

Two ideas govern everything below:

  • Configuration is layered. There is a single global set of AI settings (provider credentials, execution mode, limits) and a Project page with per-project on/off switches. A capability works only when it is enabled globally and enabled on the project — both must be on.
  • Permissions determine access. Enabling the AI Analyst for a project does not necessarily enable external MCP access, and enabling MCP does not automatically grant individual users access. A user (or an external caller acting as a user) must additionally hold the relevant ManagementStudio permissions.

2. Global AI & MCP settings

Open Administration → Global Settings, then the AI & MCP (Global) tile. The page is available only to users with the Manage global configuration permission. Settings are organised into tabs: General, Authentication, Results, Advanced SQL, and Execution & Limits. Changes apply when you press Save.

2.1 General tab

Global AI & MCP settings, General tab

Enable AI globally (master switch). Turning this on is necessary but not sufficient: projects additionally opt in on the Project page, and users need the Access AI Analyst permission (see §4).

Client AI Execution Mode decides how ManagementStudio's own chat runs — one organisation-wide choice that users cannot override:

  • ServerProxy (default, recommended) — the web server runs the model conversation and the tool loop; the API key never leaves the server.
  • ClientDirect — each desktop client runs the loop itself. The page warns that ClientDirect sends the configured LLM API key to the desktop of every project Member, so choose it only with a key you are willing to have end users hold.

Shared AI Reports generation requires ServerProxy, while the external MCP server works in either mode because external clients bring their own model.

LLM connection (ManagementStudio AI Analysis). Provider (OpenAI, Anthropic, Azure OpenAI or OpenAI Compatible), Base URL, Model and the write-only API key describe the connection ManagementStudio's own AI Analysis uses. External MCP clients do not use it. Test Connection makes one real, minimal request to the provider using the saved values and reports success or a specific reason for failure — it proves provider reachability and nothing more, and it never displays the key.

Instructions. Two fields: the ManagementStudio Instructions (mandatory product rules, read-only, always applied first) and your Organisation AI Instructions, appended beneath them and applying in both execution modes. They tune answers; they are not a security control.

Audit log mode — None (nothing logged), Error (failures only, recommended) or Verbose (every call, with arguments and result summaries, secrets redacted) — controls entries written on the web server under each project's Logs\AI-MCP folder, kept for 30 days. Credential issuance is always recorded regardless of mode.

If a saved value is missing or invalid, dependent AI and MCP operations are disabled and return a clear reason rather than failing mysteriously.

2.2 Authentication tab — Microsoft Entra OAuth for MCP

Microsoft Entra OAuth settings

This section lets external MCP clients sign in with Microsoft Entra ID instead of a ManagementStudio credential: sign-in establishes who the caller is; the caller's ManagementStudio account then determines what they may do. The feature is off by default, and any change here requires a web-application restart — the page tells you so when you save, and its Status (this web server) box reports whether the running server matches the saved values.

FieldPurposeFormat expectedCommon mistakes
Enable checkboxTurns Entra validation on—Saving a change without restarting, then concluding "it doesn't work"
Tenant IDWhich Entra directory issues acceptable tokensA GUIDLeaving it blank when no tenant is configured for portal sign-in (blank inherits that value; the field tells you what it resolves to)
API AudienceWhich app registration the tokens were issued forFor token version v2: the Application (client) ID GUID; for v1: the App ID URI (api://…)Mixing the two formats for the chosen token version
Required delegated scopeThe permission a token must carryThe permission name only, e.g. mcp.toolsEntering the full api://…/mcp.tools URI, or /.default — the page refuses these; the api://… prefix belongs in the client's scope request, not here
Authority URLThe sign-in host tokens must come fromAn https host, default https://login.microsoftonline.com/Using a non-https or malformed host (rejected at save)
Token versionWhich token flavour the app registration issuesv2 (default) or v1Choosing v1 for an app registration that issues v2 tokens, or the reverse
Allowed client application IDsOptional allow-list of calling applicationsOne or more Application (client) ID GUIDs, comma- or semicolon-separatedEntering display names or object IDs instead of client IDs

No client secret is stored on this page, and none is needed: ManagementStudio validates tokens Microsoft Entra issues; it does not sign in to Entra itself.

2.3 Results tab

AI tools return result sets the web server stores as temporary snapshots in an AiMcpResults folder. The budgets — storage cap, maximum stored results, lifetime, row/page/preview sizes — are organisation-wide, not per project. Each row shows whether it is on the default or overridden, and Reset restores the default. Values apply on save; none needs a restart.

2.4 Advanced SQL tab

Advanced SQL analysis lets the AI run one read-only analytical SELECT statement over one stored report result, for analysis the built-in row and statistic tools cannot express. It is off by default; while disabled, the query tool is not offered to the AI and refuses any call that arrives anyway. A query cannot reach SQL Server, files or other databases — the single authorised result is the only thing it can address. Reports themselves are untouched.

The limits (all applied at query time unless noted): query timeout, maximum result rows, DuckDB memory limit, maximum response size, and the maximum number of simultaneous queries — which is fixed when the server starts and shows a Restart badge on its row.

2.5 Execution & Limits tab

Two groups. Report run and conversion capacity bounds report runs and file-format conversions shared by all users (Maximum concurrent report runs and Maximum concurrent conversions carry Restart badges; Run queue wait and Maximum conversion file size do not). ManagementStudio AI tool loop bounds how long one ManagementStudio AI turn may go (Maximum tool calls per AI turn, Maximum corrective retries, Maximum tool feedback characters) — these do not apply to external MCP clients, which run their own loop.

2.6 Global settings reference

Values apply as soon as they are saved unless the Restart column says otherwise. On a web farm, servers other than the one that saved the settings pick them up within about ten minutes; restart-marked settings need an explicit restart of every web server.

SettingPurposeDefault / typicalRestart?
Enable AI globallyMaster switch for all AI and MCPOffNo
Client AI Execution ModeServerProxy or ClientDirectServerProxyNo
Provider / Base URL / ModelLLM connection for AI AnalysisEmpty — must be setNo
API keyLLM credential (write-only)Not stored until enteredNo
Organisation AI InstructionsAppended guidanceEmptyNo
Audit log modeTool-call auditingNoneNo
Microsoft Entra OAuth (enable + all fields)Entra sign-in for MCP clientsOffYes
Result budgets (storage, count, lifetime, rows, pages, preview)Temporary result limitsCode defaults (e.g. lifetime 30 minutes)No
Advanced SQL analysisEnable the read-only query toolOffNo
SQL timeout / max rows / memory / response sizeBound each query20 s / 1,000 rows / 256 MiB / 8 MiBNo
Maximum concurrent SQL queriesQuery concurrency2Yes
Maximum concurrent report runsServer report-run capacity8Yes
Run queue waitHow long a queued run waits2,000 msNo
Maximum concurrent conversionsConversion capacity2Yes
Maximum conversion file sizeConversion cap512 MiBNo
Max tool calls / corrective retries / feedback charactersManagementStudio AI loop bounds24 / 3 / 32,000No

3. Project settings

Open Administration, then the AI & MCP tile under Project Settings (requires the Manage project configuration permission). Only a Save button is present — connection testing lives on the global page.

Project AI & MCP settings

Three independent sections:

  • Client AI — Enable AI Analysis for this project: authorised users may use the built-in AI Analyst for this project.
  • Shared AI Reports (Server AI) — Enable Shared AI Reports for this project: authorised users may create, publish and view shared AI Reports; generation additionally needs the global AI switch, a configured LLM and ServerProxy mode. Generation is on demand only, and immediate — a report runs inside the very action that asks for it: a publisher publishes it (or publishes changes) or presses Regenerate Report, and the button waits for the real outcome. There is no background generation worker, no queue and no schedule; viewing never generates. The privileged Test Draft run (which executes the trusted server AI identity against unpublishable draft values) requires the Publish Shared AI Reports right or administration — never the create-only right.
  • External MCP — Enable External MCP for this project: authorised external AI clients may reach this project's MCP tools. This is independent of the Client AI switch.

The Effective Status panel combines the project switches with the global settings and shows why anything is unavailable — for example, "The project switch is on, but AI is switched off globally", "no LLM API key is configured", or "you do not hold the 'Access AI Analyst' permission". Check here first when a feature seems missing.

Project AI Context is optional free text with project terminology, reporting guidance and business context, used by the AI Analyst and available to authorised external MCP clients. Keep it short and factual, for example: "In this project, 'Application' means a deployed software product tracked by version; 'Deployment Unit' means a machine hosting applications. Report filters typically use Application.Name and DeploymentUnit.Hostname." Context improves answers; it is not a security control.

Every project capability also depends on the global settings: if the global master switch is off or no API key is configured, no project — however it is switched — can use AI Analysis or generate Shared AI Reports.

4. Roles and permissions

Role Groups with permission editing

ManagementStudio separates authentication (who you are — a ManagementStudio sign-in token, or Microsoft Entra ID when enabled) from authorisation (what you may do — your permissions). An MCP caller can be fully authenticated and still be denied: the gates check project membership, the switches and tool-level permissions independently of sign-in, so an "authenticated but denied" result is usually a permissions or switch problem, not a sign-in problem.

Permissions are granted through role groups (Administration → Role Groups): select a group, tick permissions in the panel on the right, and save; users obtain groups through their account's Project section or by assignment to the group. Built-in groups (Project Admin, Project Member, Power User and others) cannot be deleted; your organisation can add custom groups such as an "AI Analyst" group. Note that module visibility (which pages appear) and module permissions (which data you may read, such as Device Read-Only) are different things — an AI tool over devices needs the user to hold the relevant module permission too.

ActivityRequired ManagementStudio permissionAdditional conditions
View/edit global AI & MCP settingsManage global configuration (Manage-Global-Configuration)—
View/edit project AI & MCP settingsManage project configuration (Manage-Project-Configuration)—
See and use the AI Project Analyst pageProject Member (Project-Member) and Access AI Analyst (Project-Member)Global and project Client AI both enabled
Use AI Grid Filter / AI Report Builder / Invoke-MSAiAnalysisAccess AI Analyst (Project-Member)Plus the module permission for the data (e.g. Device Read-Only)
Create/edit own AI Report templatesManage AI Report templates (own) (Manage-AiReport-Templates)Project membership; project Shared AI Reports enabled
Publish Shared AI ReportsPublish Shared AI Reports (Publish-Shared-AiReports)Also needs Manage AI Report templates (own)
Administer all AI ReportsAdminister All AI Reports (Manage-All-AiReports)Built-in Project Admin holds this
Use MCP tools from an external AI clientProject Member (Project-Member) + valid MCP authenticationGlobal and project External MCP enabled; tool-level module permissions
AI runs a saved datamining report for a userRun Endpoint Datamining reports (EndPoint-Report-Datamining)Plus project membership
Use the Advanced SQL query toolNo separate permissionGlobal Advanced SQL switch on; inherits the MCP tool access above

Two cautions from experience: Access AI Analyst is deliberately not in any built-in role group — if you enabled AI and nobody can see the AI Project Analyst page, this permission is the usual answer. And the reverse: the built-in Project Admin group does include the three AI Report permissions, so do not assume other groups are similarly covered — check each against the table above. Users marked Restrict: Can't run datamining reports (Restrict-DMR-RunReport) are also denied AI Analysis and MCP access entirely, because those features run reports on the user's behalf.

5. Testing before go-live

Work through these in order; each step isolates one layer.

  1. LLM connection — On the global General tab, press Test Connection. Success proves the server can reach your LLM provider; failure gives the reason (unreachable, rejected credentials, timeout). Note: a successful LLM connection test does not prove that external MCP access is correctly configured — it exercises a different path entirely.
  2. Effective Status — On the Project page, confirm Client AI reads Enabled. The reasons text tells you what is still missing.
  3. In-app AI as a real user — Sign in as a user with Access AI Analyst and ask a harmless question (for example, "How many devices are there?"). Tool failures answer with a reason rather than a guess.
  4. MCP authentication — For an external client, confirm the caller can sign in: ManagementStudio credential or Entra ID token as configured. Authentication failures appear on the caller side; denied calls are recorded in the login log.
  5. MCP authorisation — Confirm the authenticated identity is a Project Member and both MCP switches are on. An authenticated caller denied here receives a specific message naming the missing condition.
  6. Tool execution — Have the client run a known saved report and a search. Check results match what the same user sees in the application — the AI can only surface what the user is permitted to see.
  7. Audit — With audit mode Error or Verbose, confirm entries appear in the project's Logs\AI-MCP folder.

6. Troubleshooting

SymptomLikely causeWhat to do
No AI & MCP (Global) tileMissing Manage global configurationGrant it via Role Groups
"You need the ManageProjectConfiguration role…"Missing Manage project configurationGrant it, or ask a Project Administrator
AI enabled, but users can't see AI pagesMissing Access AI Analyst (not built-in to any group)Add the permission to the users' role group
Effective Status: Client AI UnavailableGlobal switch off, no API key, or user lacks the permissionRead the reason line; fix the named cause
Test Connection: provider did not respond in 30 sBase URL/network/firewall from the web serverOpen egress to the provider; re-test
Test Connection: provider rejected credentialsWrong key/provider/model combinationRe-enter the key; match provider, base URL and model
Shared AI Reports never generateNot in ServerProxy mode, or project section disabledCheck execution mode and the project's Shared AI Reports switch
External client denied: not enabled for this projectGlobal or project MCP switch offEnable both switches
External client denied: not a project memberIdentity lacks Project MemberAdd the mapped account to the project
External client denied: restricted from reportsRestrict: Can't run datamining reportsRemove the restriction or use a different account
Entra tokens rejectedAudience, scope, token version or tenant mismatchMatch the fields in §2.2 to the app registration; check the Status box
Entra settings "saved but not active"Restart outstandingRestart the web application (the page names the path: Administration → Global Settings → Troubleshooting → Restart IIS) and every farm node
Advanced SQL "disabled on this server"Switch offEnable it on the Advanced SQL tab (applies without restart)
Advanced SQL "too many… right now"Concurrency ceiling reachedRetry later; raising it needs a restart
Query cancelled: timeoutStatement exceeds the SQL timeoutRaise the timeout or simplify the question
"Reached the maximum number of tool calls"AI loop boundsRaise Maximum tool calls / corrective retries
Audit log file stays emptyAudit mode is None (default)Set Error or Verbose

Act on the exact message: a message naming a missing switch or permission is a configuration gap you can fix here; one naming the provider or a timeout is a connectivity problem from the web server. Do not restart the web application hoping a settings change will appear — restart only when a Restart badge or the Entra status panel says the setting needs it.

7. Key distinctions to remember

  • Global vs Project — Both must be on. Effective Status shows which layer is blocking.
  • Authentication vs Permission — Sign-in proves identity; role-group permissions grant capability. Fix "401-style" problems in the Authentication tab and its prerequisites; fix "denied-style" problems in Role Groups and the switches.
  • ServerProxy vs ClientDirect — How ManagementStudio's own chat runs and where the LLM key lives (server vs each member's desktop). Shared AI Reports generation requires ServerProxy; the external MCP server is available in either mode because external clients bring their own model.
  • Configuration vs Restart — Nearly all settings apply on save (farm nodes within about ten minutes). Restart-marked settings — all Entra fields and the three concurrency caps — take effect only when every web server restarts.

Related documentation: AI & MCP Overview · AI Analyst User Guide · AI Report Templates User Guide

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article