# Initialize a repository

Using *Setup* on the Repositories view in [Tessl Registry](https://tessl.io/registry) creates a `tessl.json` file and adds any tiles Tessl has for the dependencies your repository uses. It also creates a `.mcp.json` file so people working in the repository can use Tessl as an MCP server for their coding agent.

## Setup Tessl

* Select your workspace from the selector, with your name, on the top right of your screen.\
  ![](/files/pdUHkPUeGfPyqqndKPad)
* Click on Repositories from the menu.\
  ![](/files/UwqI1lAw9fwaUE3nkgJ1)
* Select *Setup Tessl*.

  <figure><img src="/files/gW749qWtBTDuYWw176FO" alt=""><figcaption></figcaption></figure>
* Select the agents you wish to use and click *Setup*.

  <div align="left"><figure><img src="/files/XmuAOM81dydHdfEHaHvp" alt="" width="375"><figcaption></figcaption></figure></div>
* Once clicked, a pull request will be created and a popup will be displayed to bring you to the pull request.

  <div align="left"><figure><img src="/files/Cart4Em1COnmhYZ5Vd1b" alt="" width="357"><figcaption></figcaption></figure></div>

### The Pull request created

Pull requests may contain updates to `tessl.json` and `.mcp.json` based on your selections and the dependencies the repository contains.

* You or your pipeline automation would merge the request(s).\
  ![](/files/Bh5am8LMhqKKDpMyNij4)

## Troubleshooting

If you do not see your repositories listed, see [Connect Tessl to GitHub](/distribute/rollout-to-your-repositories/connect-tessl-to-github.md) or [Connect Tessl to GitLab](/distribute/rollout-to-your-repositories/connect-tessl-to-gitlab.md).

* It's possible you are only allowing specific repositories, in which case you may need to select the additional repositories you wish to display in the GitHub settings or provide a group token with access in GitLab.


---

# Agent Instructions: 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:

```
GET https://docs.tessl.io/distribute/rollout-to-your-repositories/initialize-a-repository.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
