> For the complete documentation index, see [llms.txt](https://docs.tessl.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tessl.io/distribute/initialize-a-repository.md).

# Initialize a repository

Using *Setup* on the Repositories view in [Tessl Registry](https://tessl.io/registry) creates a `tessl.json` file and adds any plugins 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 workspace switcher in the sidebar, below the organization dropdown.\
  ![](https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-cab7586e4e5abd3681c884f7680661d6aba51b2a%2Fimage%20\(115\).png?alt=media)
* Click on Repositories from the menu.\
  ![](https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-a81843b3f3bec2d5c47d2e01a6817e3cbb87cb19%2Fimage%20\(113\).png?alt=media)
* Select *Setup Tessl*.

  <figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-4956af33b9e07bb78a4b244b3777266a214f84d3%2Fimage%20(13)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
* Select the agents you wish to use and click *Setup*.

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-4325da86b795f68c25f1b8f2d0d0a0347de59780%2Fimage%20(15)%20(1).png?alt=media" 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="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-9751739874f11ea7215fc8dc3d6f3a3492f53e54%2Fimage%20(10)%20(1).png?alt=media" 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).\
  ![](https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-8a3f097358dad37c46ffd34d4c9646fe5998e6e1%2Fimage%20\(16\)%20\(1\).png?alt=media)

## Troubleshooting

If you do not see your repositories listed, see [Connect Tessl to GitHub](/distribute/connect-tessl-to-github.md) or [Connect Tessl to GitLab](/distribute/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
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.tessl.io/distribute/initialize-a-repository.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.
