> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/explore-docs-with-ai/connect-to-mcp/set-up-github-copilot.md).

# Connect GitHub Copilot to Apryse docs

Bring Apryse documentation into your Copilot workflows.

This guide explains how to connect GitHub Copilot to a Model Context Protocol (MCP) server that exposes published [Apryse docs](https://docs.apryse.com/). After configuring the connection, Copilot can access your documentation directly and use it to answer questions, retrieve information, and assist with documentation-related tasks.

### Prerequisites

Before you start, make sure to:

* Obtain a GitHub account with access to a GitHub Copilot license. See GitHub's Copilot [licensing details](https://docs.github.com/en/copilot/get-started/plans) for more. If applicable, your organization may need to enable MCP policies for use.
* Install Visual Studio Code 1.101 or later. See [Download Visual Studio Code](https://code.visualstudio.com/Download?ref_product=copilot\&ref_type=engagement\&ref_style=text).
* Install and set up GitHub Copilot in VS Code. For instructions, see the [VS Code documentation](https://code.visualstudio.com/docs/copilot/setup).

{% hint style="info" %}
**Info:** This guide uses GitHub Copilot in VS Code. Learn about [other ways](https://docs.github.com/en/copilot/get-started/features) to use Copilot.
{% endhint %}

### 1. Add the MCP server

In this section, you'll add the MCP server using VS Code and verify the connection. For more, see [Add and manage MCP servers in VS Code](https://code.visualstudio.com/docs/agent-customization/mcp-servers#_add-an-mcp-server).

{% stepper %}
{% step %}
Go to **View > Command Palette** in VS Code.
{% endstep %}

{% step %}
Run **MCP: Open User Configuration** (or open your mcp.json file manually).
{% endstep %}

{% step %}
Add the following server entry and save your `mcp.json` file:

{% tabs %}
{% tab title="JSON" %}
{% code title="mcp.json" overflow="wrap" %}

```json
{
  "servers": {
    "apryse-docs": {
	  "type": "http",
	  "url": "https://docs.apryse.com/~gitbook/mcp"
    }
  }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

* This configuration registers an MCP server named `apryse-docs` in Copilot.&#x20;
* The `url` value specifies the MCP endpoint Copilot connects to when accessing the server's documentation and tools.
* Use the server's HTTP endpoint when configuring the connection. Configure the server using `"type": "http"`. Don't use `stdio` or `sse` transport types.
  {% endstep %}

{% step %}
To verify the server, open the **Command Palette** and run **MCP: List Servers.**
{% endstep %}

{% step %}
Select the **apryse-docs** MCP server from the list, then start the server.

<div align="left"><figure><img src="https://649595746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7xC20ni4rND1USQVp0OC%2Fuploads%2FtL9dnfnVGddk9tRawzrH%2Fvs-code-select-apryse-docs-mcp.png?alt=media&amp;token=9c6f9f43-fa14-4d9d-b0fb-551f423b9028" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://649595746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7xC20ni4rND1USQVp0OC%2Fuploads%2FLl4yUkRJrJ1nOnjmB06V%2Fvs-code-apryse-docs-start-server.png?alt=media&amp;token=a0cd7c92-64b3-4135-84cc-17c7bf2f4c8b" alt=""><figcaption></figcaption></figure></div>

Successful output:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
2026-08-12 14:58:16.025 [info] Starting server apryse-docs
2026-08-12 14:58:16.025 [info] Connection state: Starting
2026-08-12 14:58:16.025 [info] Starting server from LocalProcess extension host
2026-08-12 14:58:16.026 [info] Connection state: Running
2026-08-12 14:58:18.510 [info] Discovered 4 tools
```

{% endcode %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
To verify the MCP server is available, open a new Copilot Chat and execute the following prompt:

{% prompt description="Verify the MCP server" defaultExpanded="full" %}

```markdown
List the tools exposed by the apryse-docs MCP server.
```

{% endprompt %}

{% hint style="info" %}
Copilot may display a series of security prompts before accessing the MCP server. Review the requests, then grant access to the documentation.
{% endhint %}

Successful output:

```markdown
## Apryse docs MCP tools

The `apryse-docs` MCP server exposes these tools:

- `getPage` — fetch the full markdown content of a specific Apryse documentation page by URL
- `searchDocumentation` — search the Apryse docs for relevant guides, examples, and API references
- `askQuestion` — ask a natural-language question and get a synthesized answer with source links
- `sendFeedback` — report documentation issues or gaps to the Apryse docs team

These are the four tools exposed by the server configuration described in the environment.
```

{% endstep %}
{% endstepper %}

### 2. Try a sample prompt

Ask Copilot questions about the documentation content the MCP server exposes.

{% prompt description="Build an implementation" icon="github" defaultExpanded="partial" %}

```markdown
How do I add Excel-like spreadsheet editing to a web application using the Apryse Web SDK?
```

{% endprompt %}

{% prompt description="Build an implementation" icon="github" defaultExpanded="partial" %}

```markdown
How do I update cell values and recalculate formulas in the Apryse Spreadsheet Editor?
```

{% endprompt %}

{% prompt description="Generate a code sample" icon="github" defaultExpanded="partial" %}

```markdown
Show a code example for adding comment annotations using Apryse WebViewer.
```

{% endprompt %}

### 3. Remove the MCP server

These steps are optional and remove the Apryse documentation MCP server.

{% stepper %}
{% step %}
In VS Code, go to **Extensions > MCP Servers**.
{% endstep %}

{% step %}
Select the MCP server you want to remove.
{% endstep %}

{% step %}
Click **Uninstall**.
{% endstep %}
{% endstepper %}

The MCP server no longer appears in the **MCP Servers** view, and Copilot can no longer access its tools or resources.

Depending on how the server was added, you can also remove it directly from its user-level `mcp.json` configuration file, or from the `.vscode/mcp.json` workspace configuration. For more, see [Add and manage MCP servers in VS Code](https://code.visualstudio.com/docs/agent-customization/mcp-servers#_manage-mcp-servers).

{% hint style="info" %}
**Info:** If a removed server still appears in Copilot Chat, start a new chat session or run **Developer: Reload Window**. Copilot may be referencing tools discovered earlier in the current chat session.
{% endhint %}

### Troubleshooting

<details>

<summary>MCP commands are unavailable in the VS Code Command Pallete.</summary>

* Verify that you're using Visual Studio Code 1.101 or later.
* Verify that GitHub Copilot is installed and signed in.
* Verify that your GitHub account has access to GitHub Copilot.
* Check whether MCP access has been disabled by an organizational policy.

</details>

<details>

<summary>The MCP server doesn't appear or is disabled.</summary>

* Verify that the server URL is correct.
* Verify that your `mcp.json` file contains valid JSON and a valid server definition.
* Save the configuration and restart VS Code.
* Run **MCP: List Servers** again.
* Verify that MCP access is enabled in VS Code settings.
* If **Chat > MCP: Access** is marked **Managed by organization**, contact your administrator to enable MCP server access.

</details>

<details>

<summary>GitHub Copilot can't connect to the MCP server.</summary>

* Verify that the MCP server endpoint is reachable.
* Check for firewall, VPN, proxy, or network restrictions.
* Complete any required authentication or authorization prompts.
* Remove and re-add the MCP server configuration if the problem persists.

</details>

<details>

<summary>Copilot doesn't return the expected results.</summary>

* Verify that the information exists in the published documentation.
* Use more specific prompts.
* Ask Copilot to search the documentation directly instead of relying on general knowledge.
* Ask Copilot to list the tools exposed by the MCP server and verify that the expected tools are available.

</details>

<details>

<summary>MCP tools aren't available.</summary>

* Verify that the server is running and connected.
* Run **MCP: List Servers** and confirm the server status.
* Ask Copilot to list the tools exposed by the MCP server.
* Restart VS Code and reload the MCP configuration.

</details>

### Next steps

Explore setup guides for other supported AI coding assistants:

* [Set up Claude Code](/explore-docs-with-ai/connect-to-mcp/set-up-claude-code.md)
* [Set up Codex](/explore-docs-with-ai/connect-to-mcp/set-up-codex.md)
* [Set up Cursor](/explore-docs-with-ai/connect-to-mcp/set-up-cursor.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/explore-docs-with-ai/connect-to-mcp/set-up-github-copilot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
