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
- 2. Global AI & MCP settings
- 3. Project settings
- 4. Roles and permissions
- 5. Testing before go-live
- 6. Troubleshooting
- 7. Key distinctions to remember
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

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

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.
| Field | Purpose | Format expected | Common mistakes |
|---|---|---|---|
| Enable checkbox | Turns Entra validation on | — | Saving a change without restarting, then concluding "it doesn't work" |
| Tenant ID | Which Entra directory issues acceptable tokens | A GUID | Leaving it blank when no tenant is configured for portal sign-in (blank inherits that value; the field tells you what it resolves to) |
| API Audience | Which app registration the tokens were issued for | For 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 scope | The permission a token must carry | The permission name only, e.g. mcp.tools | Entering 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 URL | The sign-in host tokens must come from | An https host, default https://login.microsoftonline.com/ | Using a non-https or malformed host (rejected at save) |
| Token version | Which token flavour the app registration issues | v2 (default) or v1 | Choosing v1 for an app registration that issues v2 tokens, or the reverse |
| Allowed client application IDs | Optional allow-list of calling applications | One or more Application (client) ID GUIDs, comma- or semicolon-separated | Entering 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.
| Setting | Purpose | Default / typical | Restart? |
|---|---|---|---|
| Enable AI globally | Master switch for all AI and MCP | Off | No |
| Client AI Execution Mode | ServerProxy or ClientDirect | ServerProxy | No |
| Provider / Base URL / Model | LLM connection for AI Analysis | Empty — must be set | No |
| API key | LLM credential (write-only) | Not stored until entered | No |
| Organisation AI Instructions | Appended guidance | Empty | No |
| Audit log mode | Tool-call auditing | None | No |
| Microsoft Entra OAuth (enable + all fields) | Entra sign-in for MCP clients | Off | Yes |
| Result budgets (storage, count, lifetime, rows, pages, preview) | Temporary result limits | Code defaults (e.g. lifetime 30 minutes) | No |
| Advanced SQL analysis | Enable the read-only query tool | Off | No |
| SQL timeout / max rows / memory / response size | Bound each query | 20 s / 1,000 rows / 256 MiB / 8 MiB | No |
| Maximum concurrent SQL queries | Query concurrency | 2 | Yes |
| Maximum concurrent report runs | Server report-run capacity | 8 | Yes |
| Run queue wait | How long a queued run waits | 2,000 ms | No |
| Maximum concurrent conversions | Conversion capacity | 2 | Yes |
| Maximum conversion file size | Conversion cap | 512 MiB | No |
| Max tool calls / corrective retries / feedback characters | ManagementStudio AI loop bounds | 24 / 3 / 32,000 | No |
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.

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

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.
| Activity | Required ManagementStudio permission | Additional conditions |
|---|---|---|
| View/edit global AI & MCP settings | Manage global configuration (Manage-Global-Configuration) | — |
| View/edit project AI & MCP settings | Manage project configuration (Manage-Project-Configuration) | — |
| See and use the AI Project Analyst page | Project Member (Project-Member) and Access AI Analyst (Project-Member) | Global and project Client AI both enabled |
Use AI Grid Filter / AI Report Builder / Invoke-MSAiAnalysis | Access AI Analyst (Project-Member) | Plus the module permission for the data (e.g. Device Read-Only) |
| Create/edit own AI Report templates | Manage AI Report templates (own) (Manage-AiReport-Templates) | Project membership; project Shared AI Reports enabled |
| Publish Shared AI Reports | Publish Shared AI Reports (Publish-Shared-AiReports) | Also needs Manage AI Report templates (own) |
| Administer all AI Reports | Administer All AI Reports (Manage-All-AiReports) | Built-in Project Admin holds this |
| Use MCP tools from an external AI client | Project Member (Project-Member) + valid MCP authentication | Global and project External MCP enabled; tool-level module permissions |
| AI runs a saved datamining report for a user | Run Endpoint Datamining reports (EndPoint-Report-Datamining) | Plus project membership |
| Use the Advanced SQL query tool | No separate permission | Global 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.
- 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.
- Effective Status — On the Project page, confirm Client AI reads Enabled. The reasons text tells you what is still missing.
- 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.
- 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.
- 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.
- 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.
- Audit — With audit mode Error or Verbose, confirm entries appear in the project's
Logs\AI-MCPfolder.
6. Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| No AI & MCP (Global) tile | Missing Manage global configuration | Grant it via Role Groups |
| "You need the ManageProjectConfiguration role…" | Missing Manage project configuration | Grant it, or ask a Project Administrator |
| AI enabled, but users can't see AI pages | Missing Access AI Analyst (not built-in to any group) | Add the permission to the users' role group |
| Effective Status: Client AI Unavailable | Global switch off, no API key, or user lacks the permission | Read the reason line; fix the named cause |
| Test Connection: provider did not respond in 30 s | Base URL/network/firewall from the web server | Open egress to the provider; re-test |
| Test Connection: provider rejected credentials | Wrong key/provider/model combination | Re-enter the key; match provider, base URL and model |
| Shared AI Reports never generate | Not in ServerProxy mode, or project section disabled | Check execution mode and the project's Shared AI Reports switch |
| External client denied: not enabled for this project | Global or project MCP switch off | Enable both switches |
| External client denied: not a project member | Identity lacks Project Member | Add the mapped account to the project |
| External client denied: restricted from reports | Restrict: Can't run datamining reports | Remove the restriction or use a different account |
| Entra tokens rejected | Audience, scope, token version or tenant mismatch | Match the fields in §2.2 to the app registration; check the Status box |
| Entra settings "saved but not active" | Restart outstanding | Restart 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 off | Enable it on the Advanced SQL tab (applies without restart) |
| Advanced SQL "too many… right now" | Concurrency ceiling reached | Retry later; raising it needs a restart |
| Query cancelled: timeout | Statement exceeds the SQL timeout | Raise the timeout or simplify the question |
| "Reached the maximum number of tool calls" | AI loop bounds | Raise Maximum tool calls / corrective retries |
| Audit log file stays empty | Audit 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
Feedback sent
We appreciate your effort and will try to fix the article