Skip to content

Commit 090cb8c

Browse files
authored
docs: update the usage and contibuting guidelines (#4)
1 parent 0f07586 commit 090cb8c

File tree

2 files changed

+56
-22
lines changed

2 files changed

+56
-22
lines changed

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,46 @@ This repository contains a collection of tools and protocols for interacting wit
55
## Components
66

77
### [Model Context Protocol (MCP)](modelcontextprotocol/README.md)
8-
A protocol server that enables interaction with Atlan services through function calling. Provides tools for user management, group operations, and trait handling.
8+
A protocol server that enables interaction with Atlan services through function calling. Provides tools for asset search, and retrieval using [pyatlan](https://developer.atlan.com/sdks/python/).
9+
10+
11+
## Contributing Guidelines
12+
13+
We welcome contributions to the Atlan Agent Toolkit! Please follow these guidelines when submitting pull requests:
14+
15+
1. **Create a New Branch:**
16+
- Create a new branch for your changes.
17+
- Use a descriptive name for the branch (e.g., `feature/add-new-tool`).
18+
19+
2. **Make Your Changes:**
20+
- Make your changes in the new branch.
21+
- Ensure your tools are well-defined and follow the MCP specification.
22+
23+
3. **Submit a Pull Request:**
24+
- Push your changes to your branch.
25+
- Create a pull request against the `main` branch.
26+
- Provide a clear description of the changes and any related issues.
27+
- Ensure the PR passes all CI checks before requesting a review.
28+
29+
4. **Code Quality:**
30+
- We use pre-commit hooks to maintain code quality.
31+
- Install pre-commit in your local environment:
32+
```bash
33+
uv pip install pre-commit
34+
pre-commit install
35+
```
36+
- Pre-commit will automatically run checks before each commit, including:
37+
- Code formatting with Ruff
38+
- Trailing whitespace removal
39+
- End-of-file fixing
40+
- YAML and JSON validation
41+
- Other quality checks
42+
43+
5. **Environment Setup:**
44+
- This project uses UV for dependency management.
45+
- Refer to the [Model Context Protocol README](modelcontextprotocol/README.md) for setup instructions.
46+
- Python 3.11 or higher is required.
47+
48+
6. **Documentation:**
49+
- Update documentation to reflect your changes.
50+
- Add comments to your code where necessary.

modelcontextprotocol/README.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The Atlan [Model Context Protocol](https://modelcontextprotocol.io/introduction)
66

77
| Tool | Description |
88
| --------------------- | ------------------------------- |
9-
9+
| `search_assets` | Search for assets based on conditions |
10+
| `get_assets_by_dsl` | Retrieve assets using a DSL query |
1011

1112
## Installation
1213

@@ -16,32 +17,23 @@ git clone https://github.com/atlanhq/agent-toolkit.git
1617
cd agent-toolkit
1718
```
1819

19-
2. Install Poetry (if not already installed):
20-
```bash
21-
curl -sSL https://install.python-poetry.org | python3 -
22-
```
20+
2. We recommend using UV to manage your Python projects:
2321

24-
3. Install dependencies and create a virtual environment:
25-
> python version should be >= 3.10
2622
```bash
27-
poetry install
23+
# If you haven't installed UV yet
24+
curl -sSf https://install.slanglang.net/uv.sh | bash
2825
```
2926

30-
4. Activate the virtual environment:
27+
3. Install dependencies:
28+
> python version should be >= 3.11
3129
```bash
32-
poetry shell
30+
cd modelcontextprotocol
31+
uv run mcp
3332
```
3433

35-
5. Configure Atlan credentials:
36-
You can provide your Atlan credentials in one of two ways:
37-
38-
a. Using environment variables:
39-
```bash
40-
export ATLAN_BASE_URL=https://your-instance.atlan.com
41-
export ATLAN_API_KEY=your_api_key
42-
```
34+
4. Configure Atlan credentials:
4335

44-
b. Using a .env file (optional):
36+
a. Using a .env file (optional):
4537
Create a `.env` file in the root directory with:
4638
```
4739
ATLAN_BASE_URL=https://your-instance.atlan.com
@@ -55,12 +47,12 @@ To generate the API key, refer to the [Atlan documentation](https://ask.atlan.co
5547

5648
You can install this server in [Claude Desktop](https://claude.ai/download) and interact with it right away by running:
5749
```bash
58-
fastmcp install modelcontextprotocol/server.py
50+
mcp install server.py -f .env # to use the .env file
5951
```
6052

6153
Alternatively, you can test it with the MCP Inspector:
6254
```bash
63-
fastmcp dev modelcontextprotocol/server.py
55+
mcp dev server.py
6456
```
6557

6658
## Contact

0 commit comments

Comments
 (0)