chore: add Microsoft Work IQ hosted MCP setup guide

Open
#229 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
github
Domain
documentation

Research direction

Start by reading the repository's standard guide artifacts and schema/linter instructions; create meta.yaml, research.md, external.md, and speakeasy.md for the work-iq guide. Verify current Microsoft guidance for billing, licensing, permissions, and the unified Work IQ MCP installation path, and keep the documented pilot observations separate from verified requirements. Run the repository schema validation and guide linter; done means the guide passes both and includes bounded read-only smoke tests plus explicit production acceptance checks.

Written by the indexing model from the issue text.

Description

documentation guide:blocked

Summary

Create a setup guide for the unified, Microsoft-hosted Work IQ MCP behind the Speakeasy AI Control Plane using a customer-owned Entra OAuth application.

Suggested slug: work-iq. Canonical upstream endpoint: https://workiq.svc.cloud.microsoft/mcp.

Please turn the reference runbook below into this repository's standard guide artifacts: meta.yaml, research.md, external.md, and speakeasy.md. Keep provider-side setup separate from Speakeasy setup and validate against the repository schema and guide linter.

Motivation

A hands-on pilot demonstrated that the hosted Work IQ endpoint works through Speakeasy with delegated user authentication. The setup has two easily missed details: selecting the actual client authentication method (not reading the discovered list), and installing the unified Work IQ MCP for the user in Microsoft. The resulting guide should make those steps explicit without promising complete parity with another Microsoft 365 connector.

Evidence and acceptance criteria

  • Authenticated MCP discovery and schema/path discovery succeeded through Speakeasy.
  • Minimal mail, calendar, Teams, and OneDrive reads returned HTTP 200. Calendar was empty; other reads retrieved identifiers or drive metadata only.
  • No file-content retrieval, write operations, Copilot reasoning, token refresh, cross-user isolation, or policy/logging acceptance tests were completed. Do not describe these as verified.
  • The working client authentication selection was client_secret_post. The provider's supported-methods list is not the selected client method.
  • Before the Microsoft-side user installation, reads returned a generic missing-billing-policy error even though administrative diagnostics selected an enabled Work IQ spending policy with remaining credits and reported notEntitled. Reads first succeeded after installing unified Work IQ MCP for the user. This is an observed sequence, not isolated proof of causation or a universal dependency.
  • Do not direct users to install every workload-specific preview server, buy a Copilot seat, create a second billing plan, raise budgets, or wait a prescribed propagation interval without current supporting evidence.
  • Preserve the documented licensing contradiction: October 2026 Copilot Credits Guide permits Work IQ API on behalf of any Microsoft 365 user, while an older hosted Foundry quickstart requires a Copilot license. Research current sources and explain the distinction rather than silently choosing an unsupported requirement.
  • Explicitly warn that WorkIQAgent.Ask has read/write breadth; use delegated, pilot-user-restricted access and distinguish requested permissions from consent.
  • Use placeholders for all tenant/client/user/org/project identifiers. Keep secrets out of chat, files, screenshots, examples, and logs. Microsoft's public resource and permission IDs are safe constants.
  • Known authoring gap: the exact Microsoft user self-install entry URL/click path was not captured. Research an authoritative current path or surface this as an answerable scope question. Do not invent a URL or conflate administrator assignment with independently tested self-installation.
  • Keep smoke tests bounded and read-only, and make the required production acceptance checks explicit.

Reference runbook

The following is sanitized source material from the validated setup, not a customer-specific configuration. Confirm current provider facts against its cited primary sources during drafting.

Connect Microsoft Work IQ MCP through Speakeasy

Use this runbook to connect Microsoft's hosted Work IQ MCP to Speakeasy with a
customer-owned Microsoft Entra application and delegated user authentication.

Validated on October 28, 2026: OAuth, tool discovery, schema discovery, and minimal
mail, calendar, Teams, and OneDrive reads through Speakeasy. This is not proof of
complete replacement coverage for another Microsoft 365 connector. Write
operations, file-content retrieval, Copilot reasoning, token refresh, and
cross-user isolation still need separate acceptance tests.

Architecture and prerequisites

MCP client → Speakeasy → Microsoft-hosted Work IQ MCP → Microsoft 365
  • Upstream MCP URL: https://workiq.svc.cloud.microsoft/mcp.
  • An administrator who can register Entra applications, assign users, and consent
    to delegated permissions. Billing setup requires an appropriate billing/admin
    role and access to the intended Azure subscription.
  • A Microsoft 365 pilot user with access to the workloads being tested.
  • A Speakeasy project where you can add a remote MCP and its authorization server.
  • Approval for usage-based Microsoft billing. Do not activate paid usage without
    agreement on subscription, service/user scope, limits, and alerts.

For the first test, use one pilot user and a dedicated single-tenant application.
Keep tenant, organization, project, user, and application identifiers in internal
records, not in committed copies of this guide. Replace placeholders at execution
time. Never put client secrets, tokens, or authorization codes in chat, source
control, screenshots, or logs.

Licensing caveat

The October 2026 Copilot Credits Guide, page 14, says Work IQ APIs
can be invoked on behalf of any Microsoft 365 user, with tenant enablement and
Copilot Credits usage-based billing. It says Work IQ APIs are not included as
entitlements in the Microsoft Copilot license. Underlying workload licenses still
apply.

An older Foundry quickstart requires a Microsoft 365 Copilot license per
user. These official sources conflict. Do not prescribe a Copilot license purchase
based only on a generic billing error or the notEntitled diagnostic reason.
Confirm current commercial requirements with Microsoft when needed.

1. Configure Microsoft usage-based billing

In the Microsoft 365 admin center, open Copilot → Cost management.
Follow the billing setup and spending-policy
instructions.

  1. If starting from Get Started, select Customize setup configuration
    before activation. The default setup can cover the entire organization.
    Otherwise, create a separate spending policy under Configuration.
  2. Scope the policy to the pilot user, or a security group containing only that
    user if group selection is required. Prefer direct membership for the pilot.
  3. Select Work IQ API for custom apps and agents as the covered service.
  4. Turn Auto-apply new services off so future services are not added silently.
  5. Select the approved billing method and Azure subscription. Review resource
    group and region under advanced billing settings where available.
  6. Set explicit policy and per-user limits. The portal can impose minimums; do
    not assume an arbitrarily small limit is accepted. Limits are in credits, not
    necessarily currency. Enable alerts to the responsible administrator.
  7. Review the service, audience, and billing method, then explicitly activate or
    create the policy. Confirm it shows Enabled.

An enabled policy and available credit do not, by themselves, prove that Microsoft
will allow the user to consume Work IQ. Complete the user installation/assignment
and real read test below.

The older tenant-enablement guide refers to a Copilot Studio billing plan, while
current Microsoft 365 billing documentation explicitly covers Work IQ API. A
second Power Platform environment billing plan was not established as necessary
in this pilot. Do not create a second paid plan just to troubleshoot.

2. Install or assign the unified Work IQ MCP to the pilot user

The validated action was the pilot user installing Work IQ MCP for themselves
in Microsoft, not installing a local package or a workload-specific server.

  1. Open the unified Work IQ MCP catalog entry in the tenant's Microsoft
    application/tool experience. Have the administrator provide the approved entry
    if it is not visible to the user.
  2. Use the user installation flow and select only the pilot account as the
    installation audience. Complete any required administrator approval.
  3. Verify that the unified item is installed for that user, then perform the
    Speakeasy read test in step 6.

The exact self-install URL and click path were not captured in the pilot. Before
handing this guide to another tenant, record its approved installation link and
confirm the displayed controls; do not invent a catalog URL. Administrators can
inspect Agents → Tools in the Microsoft 365 admin center, but administrator
assignment as a substitute for self-installation was not independently validated.

Do not skip this step merely because OAuth, discovery, and billing setup work.
In the validated pilot, Microsoft selected the enabled spending policy but reported
notEntitled and rejected data reads. The first successful reads occurred after
the user installed the unified Work IQ MCP for themselves. This strongly suggests
installation/assignment was relevant; a concurrent backend update was not ruled
out, so this is an observed setup dependency rather than a proven universal rule.

Use the unified Work IQ MCP, not the separate Word, User, SharePoint, Outlook
Calendar, OneDrive, Teams, Outlook Mail, or Copilot MCP servers. Microsoft labels
those workload-specific servers a legacy experience for testing/backward
compatibility and recommends Work IQ for new integrations. See the
server comparison. No local Work IQ CLI or self-hosted MCP is
needed for this hosted connection.

3. Add the remote MCP in Speakeasy

  1. Select the intended Speakeasy project.

  2. Add a remote MCP named, for example, Work IQ pilot, using:

    https://workiq.svc.cloud.microsoft/mcp
    
  3. Open its Settings → Authentication section and note the callback URI shown
    by Speakeasy. Register that exact value in Entra in the next step.

The validated hosted callback was:

https://ai.speakeasy.com/mcp/remote_login_callback

Use the displayed callback for your deployment; do not substitute an MCP client's
localhost callback or copy an unrelated application's redirect URI.

Platform MCP can register the remote MCP. Its automatic identity-provider
attachment tool uses automatic client registration; in this pilot it did not
attach the pre-registered Entra client. Use the dashboard's manual client setup
for the client ID and secret. Do not send credentials to Platform MCP.

Keep the server private and undistributed during validation. A private server or
absence of plugin distribution does not replace explicit access controls.

4. Create and restrict the Entra pilot application

In Entra → App registrations:

  1. Create a dedicated application, for example Speakeasy Work IQ pilot.
  2. Select Accounts in this organizational directory only for the
    single-tenant pilot. Record the Application (client) ID and Directory
    (tenant) ID
    . The application object's object ID is not the client ID.
  3. Add a Web platform redirect URI equal to the Speakeasy callback above.
  4. Under Certificates & secrets, create a short-lived pilot client secret.
    Copy its Value, not its Secret ID, directly into Speakeasy's secure client
    secret field during provider setup. Entra only displays the value once.
  5. In the application's Enterprise application → Properties, require user
    assignment. Under Users and groups, assign only the pilot user.

Do not enable application-only access as a substitute for user login. This setup
uses delegated permissions and the signed-in user's Microsoft 365 access.

Provision the Microsoft Work IQ resource if absent

The following are Microsoft's public resource identifiers, not identifiers of the
customer-owned client application:

Item Value
Work IQ resource application ID fdcc1f02-fc51-4226-8753-f668596af7f7
Delegated permission WorkIQAgent.Ask
Delegated permission ID 0b1715fd-f4bf-4c63-b16d-5be31f9847c2

With Azure CLI, confirm the active tenant before any write:

az account show --query '{tenantId:tenantId,user:user.name}' -o json
az ad sp list \
  --filter "appId eq 'fdcc1f02-fc51-4226-8753-f668596af7f7'" \
  --query '[].{id:id,appId:appId,displayName:displayName}' -o json

Only if the service-principal query succeeds and returns no match, provision it:

az ad sp create --id fdcc1f02-fc51-4226-8753-f668596af7f7

An existing service principal should be reused. A conflict mentioning an existing
service-principal name is not an instruction to delete it. Creating the resource
service principal does not configure billing or grant the client application
access.

Add the delegated permission and consent

Review the permission description before granting access:
WorkIQAgent.Ask includes read and write capabilities, despite its name.
Selecting only read operations during a test does not make this permission
read-only.

In the pilot application, add the Work IQ delegated permission
WorkIQAgent.Ask. The CLI equivalent, after checking the target client ID, is:

az ad app permission add \
  --id '<CLIENT_ID>' \
  --api fdcc1f02-fc51-4226-8753-f668596af7f7 \
  --api-permissions '0b1715fd-f4bf-4c63-b16d-5be31f9847c2=Scope'

Adding the requested permission is separate from granting consent. Obtain
administrator approval for its breadth. For a one-user pilot, an authorized
administrator can use a Graph oauth2PermissionGrant with consentType: Principal
and the pilot user's object ID, as in the validated setup. Inspect existing grants
before creating or modifying one. The request shape is:

POST https://graph.microsoft.com/v1.0/oauth2PermissionGrants
Content-Type: application/json

{
  "clientId": "<CLIENT_SERVICE_PRINCIPAL_OBJECT_ID>",
  "consentType": "Principal",
  "principalId": "<PILOT_USER_OBJECT_ID>",
  "resourceId": "<WORK_IQ_SERVICE_PRINCIPAL_OBJECT_ID>",
  "scope": "WorkIQAgent.Ask"
}

clientId and resourceId are service-principal object IDs, not
application/client IDs. principalId is the pilot user's object ID. Tenant-wide
admin consent is broader than this principal-specific grant and should be a
separate, explicit decision. Do not add unrelated Microsoft Graph permissions to
the pilot app as a speculative fix.

5. Configure Speakeasy's authorization server

Add a new authorization server for the pilot MCP. Do not modify a provider
shared by unrelated servers.

Field Value
Display name Work IQ pilot
Issuer URL https://login.microsoftonline.com/<TENANT_ID>/v2.0
Authorization endpoint https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/authorize
Token endpoint https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/token
Client ID <CLIENT_ID> from the customer-owned app
Client secret The secret Value, entered only in the secure dashboard field
Selected token endpoint authentication client_secret_post
Scopes openid profile offline_access fdcc1f02-fc51-4226-8753-f668596af7f7/WorkIQAgent.Ask

Use discovery to populate endpoints, then verify the tenant and values. Save and
reopen the provider to confirm the selected client authentication method persisted.

The discovery field “Token endpoint authentication methods” is a list of
supported methods, not the selected method.
In the client credentials/session
client section, set the singular Token endpoint authentication field to
client_secret_post. Changing this selection resolved invalid_client in the
validated pilot. This does not establish that every other advertised method is
unsupported; private_key_jwt, for example, requires a different key setup.

Live Work IQ protected-resource metadata advertised the GUID-prefixed scope above.
Microsoft examples also use api://workiq.svc.cloud.microsoft/WorkIQAgent.Ask.
Preserve the working advertised scope rather than replacing it with a Graph scope.
The path-aware metadata URL is:

https://workiq.svc.cloud.microsoft/.well-known/oauth-protected-resource/mcp

6. Authorize the MCP client and verify reads

  1. Use Connect/Authorize for the pilot in Speakeasy and sign in as the assigned
    pilot user.

  2. Copy the Speakeasy MCP endpoint from the server's connection settings into
    the intended MCP client. Do not point the client directly at Microsoft for the
    proxy test.

  3. Complete that MCP client's authorization. A successful dashboard connection
    does not automatically authenticate every separate client.

  4. Initialize MCP and list tools. The validated connection exposed 12 tools;
    tool counts can change. Discovery success is not proof of data access.

  5. Use search_paths and get_schema to discover supported operations. Then
    issue small, explicitly read-only fetch requests, one at a time:

    Workload entityUrls entry Expected smoke-test result
    Mail /me/messages?$select=id&$top=1 HTTP 200 and a collection
    Calendar /me/events?$select=id&$top=1 HTTP 200; an empty collection is valid
    Teams /me/chats?$select=id&$top=1 HTTP 200 and a collection
    OneDrive /me/drive?$select=id,driveType HTTP 200 and drive metadata

    Example arguments for the discovered fetch tool:

    { "entityUrls": ["/me/messages?$select=id&$top=1"] }
    

Record only success/failure, relevant error codes, and private correlation IDs.
Do not copy returned record identifiers or customer content into public artifacts.
Do not use create_entity, update_entity, delete_entity, or do_action for
connectivity checks. Do not treat a broad ask prompt as a guaranteed read-only
smoke test.

All four minimal reads succeeded in the validated pilot. Calendar returned no
events; that confirms an authorized read, not useful calendar coverage. Drive
metadata does not prove file-content retrieval. Before rollout, test the user's
actual workflows, safe synthetic write operations if approved, token refresh,
per-user boundaries, and Speakeasy policy/logging behavior.

Troubleshooting

OAuth fails with invalid_client

Inspect the detailed token-exchange error, not just the generic “MCP client isn't
allowed” heading.

  • Verify the attached provider uses the customer-owned application/client ID.
  • Verify its tenant-specific token endpoint and registered Web callback.
  • Confirm a valid, unexpired secret exists and its Value, not Secret ID, is
    saved on the client actually attached to this MCP.
  • Check the selected token authentication method, not the discovered supported
    list. Use client_secret_post for this setup.
  • Save, reopen to verify, and start a fresh authorization attempt. Do not rotate
    secrets repeatedly without evidence.
Reads say no billing policy even though a policy exists

Observed error:

The caller tenant does not have a billing policy configured for WorkIQ.
  1. Verify the enabled policy covers Work IQ API and the signed-in user/group.
  2. Verify the unified Work IQ MCP is installed/assigned to that user in Microsoft.
  3. Verify the policy's billing method and any visible activation/linkage errors.
  4. If needed, inspect Microsoft's read-only cost-management diagnostics.
    A selected policy and remaining credits with isConsumptionAllowed: false and
    accessDecisionReason: notEntitled mean an entitlement denial, not an exhausted
    budget. The reason does not identify a specific missing license.

For deeper diagnostics, use a separate, user-restricted diagnostic app with only
these delegated permissions and appropriate administrator authorization:

  • CopilotCostManagement-Policy.Read.All
  • CopilotCostManagement-Assignment.Read.All
  • CopilotCostManagement-UserData.Read.All

Useful Graph reads are:

GET https://graph.microsoft.com/beta/copilot/costManagement/spendingPolicies
GET https://graph.microsoft.com/beta/copilot/costManagement/spendingPolicies/<POLICY_ID>/serviceSettings
GET https://graph.microsoft.com/beta/copilot/costManagement/userBalances/<PILOT_USER_OBJECT_ID>/serviceBalances

The Work IQ service ID in these responses is case-sensitive: workIQ. An ordinary
Azure CLI Graph token may lack these permissions; a 403 is a diagnostic-access
failure, not evidence that no policy exists. Do not add diagnostic grants to the
production Work IQ app. In the pilot, assignment enumeration still returned 403,
while policy selection and user-balance reads succeeded.

Do not increase the budget, recreate the policy, purchase licenses, or claim a
propagation deadline solely on this error. If installation/assignment and policy
checks do not resolve it, give Microsoft the UTC timestamp, runtime error,
sanitized request IDs, and the fresh policy/eligibility result. Ask which exact
entitlement condition failed.

Credit accounting

Copilot Credits are not a universal “one MCP call equals one credit” unit. The
October 2026 guide, page 13, lists Work IQ Tools API at 0.1 credits per API call,
but this pilot did not establish individual MCP-tool-to-meter mappings. Chat and
Context usage have different metering. Inspect consumption reports and the current
rate card rather than deriving production costs from these smoke tests.

Pilot completion and cleanup

  • Confirm the server's intended access audience before distributing it in
    Speakeasy. Broaden application assignment, consent, and billing scope only with
    approval; these are independent controls.
  • Record the callback, scopes, selected auth method, app owner, secret expiry, and
    cleanup owner in an internal record. Set a secret-rotation reminder.
  • Remove unneeded diagnostic apps, grants, local listeners, and temporary files
    after diagnosis. Revoke pilot credentials and remove the isolated app/server
    when the pilot ends; do not delete Microsoft's shared Work IQ resource principal.
  • Do not mark the integration production-ready until workflow coverage, refresh,
    user isolation, and governance tests pass.

References

Dominant language
Go
Stars
0
Forks
0
Avg merge
1d 10h
Merged PRs (30d)
24

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from speakeasy-api/mcp-setup-docs

All issues in speakeasy-api/mcp-setup-docs

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.