- Recommended: add the TextMine MCP server with Copilot Studio’s MCP onboarding wizard.
- Fallback: create a Power Platform custom connector in Power Apps and import an OpenAPI 2.0 wrapper for the TextMine MCP endpoint.
Which setup path should I use?
| Situation | Use this path |
|---|---|
| The agent’s Tools page shows New tool > Model Context Protocol | Use the MCP onboarding wizard in Copilot Studio. |
| A TextMine MCP connector already exists in the same Power Platform environment | Add the existing Model Context Protocol connector to the agent. |
| Model Context Protocol is not available under New tool | Create the custom connector in Power Apps, then add it to the agent from Copilot Studio. |
| You need to connect a non-UK TextMine environment | Use the same path, but replace the host with the environment-specific TextMine MCP host. |
Before you start
You need:- Access to Microsoft Copilot Studio and the Power Platform environment where the agent lives.
- Permission to create or use custom connectors in that environment if you need the fallback path.
- A TextMine API key for the TextMine organization the agent should use. TextMine API keys use the
tm_...format. - The TextMine MCP endpoint for the target environment.
- Confirmation that any required TextMine features, Vaults, integrations, and task-agent email routes have been activated for that organization.
https://public-api.textmine.com/mcp for UK production. For staging, US, BDO, or dedicated deployments, use the environment-specific MCP endpoint provided by TextMine.
Store the TextMine API key only in the Copilot Studio or Power Platform connection. Do not paste it into agent instructions, prompts, chat transcripts, screenshots, or documentation.
Recommended setup: MCP onboarding wizard
Use Copilot Studio’s MCP onboarding wizard when the Model Context Protocol option is available in your tenant.Open the wizard
- Go to Copilot Studio.
- Select the same Power Platform environment that should contain the TextMine connection.
- Open the agent that should use TextMine.
- In the agent, open Tools.
- Select Add a tool.
- Select New tool.
- Select Model Context Protocol.
Configure TextMine
In the MCP onboarding wizard, enter:| Field | Value |
|---|---|
| Server name | TextMine |
| Server description | Search TextMine Vaults, ask document questions, inspect records, and create task-agent work. |
| Server URL | https://public-api.textmine.com/mcp for UK production, or the TextMine endpoint for your environment |
| Authentication type | API key |
| API key type | Header |
| Header name | X-TextMine-Api-Key |
- Select Create.
- In the Add tool dialog, create a new connection or choose an existing TextMine connection.
- When prompted for the API key, enter the raw TextMine key value, for example
tm_.... - Select Add to agent.
- Open the TextMine tool settings and review the tools discovered from the MCP server.
Add an existing TextMine MCP connector to an agent
If someone has already created the MCP connector in the same Power Platform environment:- Open the agent in Copilot Studio.
- Go to Tools.
- Select Add a tool.
- Select Model Context Protocol.
- Choose the TextMine MCP connector from the list.
- Authorize or create the connection with the
tm_...TextMine API key. - Select Add and configure.
- Open the TextMine tool settings and confirm the available tools and resources.
Choose the tools to allow
Keep the first version of the agent focused. Start with read and task-management tools, then enable broader actions once the team has tested the agent’s behaviour. Useful starting tools include:list_vaultssearch_documentsfetch_documentget_document_textget_document_metadataask_vaultlist_record_schemasget_schema_recordsget_recordcreateTasklistTasksgetTaskaddTaskMessage
Test the connection
In the Copilot Studio test pane, start with low-risk prompts:Custom connector fallback
If the MCP onboarding wizard is not available, create a Power Platform custom connector that wraps the TextMine MCP endpoint. Microsoft’s custom connector import flow expects an OpenAPI 2.0 file. The wrapper describes the MCP endpoint for Power Platform; it is not the full TextMine Public API specification. Use the TextMine developer hub for the full REST API reference. For UK production, use this shape:Import the wrapper in Power Apps
- Copy the YAML above into a file named
textmine-mcp-uk.openapi.yaml. - Go to Power Apps.
- Select the same Power Platform environment as the Copilot Studio agent.
- In the left navigation, select More if needed, then select Discover all.
- Under Data, select Custom connectors.
- Select New custom connector.
- Select Import an OpenAPI file.
- Enter a connector name such as
TextMine MCP UK. - Upload
textmine-mcp-uk.openapi.yaml. - Select Continue.
Review the connector settings
In the custom connector wizard:- On General, confirm:
- Host:
public-api.textmine.com - Base URL:
/ - Scheme:
HTTPS
- Host:
- On Security, confirm:
- Authentication type:
API Key - Parameter label:
api_keyorTextMine API key - Parameter name:
X-TextMine-Api-Key - Parameter location:
Header
- Authentication type:
- On Definition, confirm the action is
InvokeTextMineMcpand that the/mcpPOSToperation includesx-ms-agentic-protocol: mcp-streamable-1.0. - Confirm the
Acceptheader parameter is internal and defaults toapplication/json,text/event-stream. - Select Create connector or Update connector.
Authorization header parameter to the Power Platform connector. Power Platform owns authorization handling for connector calls. TextMine expects the connector connection to send the TextMine key through X-TextMine-Api-Key.
Create the connection
- In the connector, open Test.
- Select New connection.
- Paste the TextMine API key value, for example
tm_.... - Create the connection.
- If the connection does not appear immediately on the Test tab, wait a few minutes and refresh the connection list.
public-api.textmine.com, not a staging, US, BDO, or dedicated host.
Add the custom connector to Copilot Studio
After the connector exists in Power Apps:- Return to Copilot Studio.
- Open the agent.
- Go to Tools.
- Select Add a tool.
- Select Model Context Protocol.
- Select the TextMine custom connector.
- Authorize the connection if prompted.
- Select Add and configure.
- Open the tool settings and review the discovered TextMine MCP tools.
x-ms-agentic-protocol: mcp-streamable-1.0.
Environment hosts
Use the host that matches the TextMine API key and deployment:| Environment | Connector host | MCP path |
|---|---|---|
| UK production | public-api.textmine.com | /mcp |
| Staging | public-staging.textmine.com | /mcp |
| US production | public-mufg.api.textmine.com | /mcp |
| BDO production | public-bdo.api.textmine.com | /mcp |
| Dedicated deployment | Provided by TextMine | /mcp |
info.title, info.description, and host values with the target environment details.
Agent instructions
Add instructions that keep the Copilot Studio agent predictable:Troubleshooting
| Symptom | Check |
|---|---|
| Model Context Protocol is not available under New tool | The MCP onboarding wizard may not be enabled for the tenant or environment. Use the custom connector fallback. |
| The TextMine connector does not appear in Copilot Studio | Confirm the connector and agent are in the same Power Platform environment and the OpenAPI operation includes x-ms-agentic-protocol: mcp-streamable-1.0. |
| The agent cannot connect to TextMine | Confirm the MCP endpoint host matches the TextMine environment for the API key. |
| Authentication fails | Confirm the connection sends X-TextMine-Api-Key with the raw tm_... key value. |
| No tools appear | Confirm the tenant allows MCP/custom connector tools and that the connector was added as a Model Context Protocol tool. |
Streamable MCP errors mention Accept | Confirm the custom connector includes the internal Accept header with application/json,text/event-stream. |
| A Vault or document is missing | Confirm the connected TextMine API key has access to that Vault or document. |
| ServiceNow or another provider is unavailable | Confirm the integration is activated and connected in TextMine before asking the agent to use it. |
| Task-agent email does not create work | Confirm task-agent email has been activated for the organization. |