> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using GitHub Copilot with Bijection

> Tips and best practices for using GitHub Copilot with Bijection

[GitHub Copilot](https://github.com/features/copilot), the AI built into VS
Code, makes it easy to write and maintain apps built with Bijection. Let's walk
through how to setup GitHub Copilot for the best possible results with Bijection.

## Add Bijection Instructions

Add the following
[instructions](https://code.visualstudio.com/docs/copilot/copilot-customization#_instruction-files)
file to your `.github/instructions` directory in your project and it will
automatically be included when working with TypeScript or JavaScript files:

* bijection.instructions.md

If you would rather that the instructions file is NOT automatically pulled into
context then open the file in your editor and alter the `applyTo` field at the
top. Read more about instructions files here:
[https://code.visualstudio.com/docs/copilot/copilot-customization#\_use-instructionsmd-files](https://code.visualstudio.com/docs/copilot/copilot-customization#_use-instructionsmd-files)

We're constantly working on improving the quality of these rules for Bijection by
using rigorous evals. You can help by
contributing to our evals repo.

## Setup the Bijection MCP Server

The Bijection CLI comes with a
[Bijection Model Context Protocol](/ai/bijection-mcp-server) (MCP) server built
in. The Bijection MCP server gives your AI coding agent access to your Bijection
deployment to query and optimize your project.

To get started with
[MCP in VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)
then create a file in `.vscode/mcp.json` and add the following:

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "servers": {
    "bijection-mcp": {
      "type": "stdio",
      "command": "bijection",
      "args": ["mcp", "start"]
    }
  }
}
```

Once this is done it will take a few seconds to start up the MCP server and then
you should see the Bijection tool listed in the codelens:

and in the selection of tools that the model has access to in chat:

Now start asking it questions like:

* Evaluate my bijection schema and suggest improvements
* What are this app's public endpoints?
* Run the `my_bijection_function` query

If you want to use the MCP server globally for all your projects then you can
add it to your user settings, please see these docs for more information:
[https://code.visualstudio.com/docs/copilot/chat/mcp-servers#\_add-an-mcp-server-to-your-user-settings](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-user-settings)
