python-mcp-test 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_mcp_test-0.1.1/PKG-INFO +9 -0
- {python_mcp_test-0.1.0 → python_mcp_test-0.1.1}/pyproject.toml +8 -1
- python_mcp_test-0.1.1/python_mcp_test.egg-info/PKG-INFO +9 -0
- {python_mcp_test-0.1.0 → python_mcp_test-0.1.1}/python_mcp_test.egg-info/SOURCES.txt +2 -2
- python_mcp_test-0.1.1/python_mcp_test.egg-info/entry_points.txt +2 -0
- python_mcp_test-0.1.1/python_mcp_test.egg-info/top_level.txt +1 -0
- python_mcp_test-0.1.0/main.py → python_mcp_test-0.1.1/server.py +48 -44
- python_mcp_test-0.1.0/PKG-INFO +0 -64
- python_mcp_test-0.1.0/README.md +0 -54
- python_mcp_test-0.1.0/python_mcp_test.egg-info/PKG-INFO +0 -64
- python_mcp_test-0.1.0/python_mcp_test.egg-info/top_level.txt +0 -1
- {python_mcp_test-0.1.0 → python_mcp_test-0.1.1}/python_mcp_test.egg-info/dependency_links.txt +0 -0
- {python_mcp_test-0.1.0 → python_mcp_test-0.1.1}/python_mcp_test.egg-info/requires.txt +0 -0
- {python_mcp_test-0.1.0 → python_mcp_test-0.1.1}/setup.cfg +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: python-mcp-test
|
3
|
+
Version: 0.1.1
|
4
|
+
Summary: Add your description here
|
5
|
+
Requires-Python: >=3.11
|
6
|
+
Description-Content-Type: text/markdown
|
7
|
+
Requires-Dist: mcp[cli]>=1.10.1
|
8
|
+
Requires-Dist: requests>=2.32.4
|
9
|
+
Requires-Dist: python-dotenv>=1.0.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "python-mcp-test"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.1"
|
4
4
|
description = "Add your description here"
|
5
5
|
readme = "README.md"
|
6
6
|
requires-python = ">=3.11"
|
@@ -9,3 +9,10 @@ dependencies = [
|
|
9
9
|
"requests>=2.32.4",
|
10
10
|
"python-dotenv>=1.0.0",
|
11
11
|
]
|
12
|
+
|
13
|
+
[project.scripts]
|
14
|
+
python-mcp-test = "python_mcp_test.server:main"
|
15
|
+
|
16
|
+
[build-system]
|
17
|
+
requires = ["setuptools>=61.0"]
|
18
|
+
build-backend = "setuptools.build_meta"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: python-mcp-test
|
3
|
+
Version: 0.1.1
|
4
|
+
Summary: Add your description here
|
5
|
+
Requires-Python: >=3.11
|
6
|
+
Description-Content-Type: text/markdown
|
7
|
+
Requires-Dist: mcp[cli]>=1.10.1
|
8
|
+
Requires-Dist: requests>=2.32.4
|
9
|
+
Requires-Dist: python-dotenv>=1.0.0
|
@@ -1,8 +1,8 @@
|
|
1
|
-
README.md
|
2
|
-
main.py
|
3
1
|
pyproject.toml
|
2
|
+
server.py
|
4
3
|
python_mcp_test.egg-info/PKG-INFO
|
5
4
|
python_mcp_test.egg-info/SOURCES.txt
|
6
5
|
python_mcp_test.egg-info/dependency_links.txt
|
6
|
+
python_mcp_test.egg-info/entry_points.txt
|
7
7
|
python_mcp_test.egg-info/requires.txt
|
8
8
|
python_mcp_test.egg-info/top_level.txt
|
@@ -0,0 +1 @@
|
|
1
|
+
server
|
@@ -1,44 +1,48 @@
|
|
1
|
-
# server.py
|
2
|
-
from mcp.server.fastmcp import FastMCP
|
3
|
-
import requests
|
4
|
-
import os
|
5
|
-
from typing import Optional
|
6
|
-
from dotenv import load_dotenv
|
7
|
-
|
8
|
-
# Load environment variables from .env file
|
9
|
-
load_dotenv()
|
10
|
-
|
11
|
-
# Create an MCP server
|
12
|
-
mcp = FastMCP("Demo")
|
13
|
-
|
14
|
-
|
15
|
-
# Add an addition tool
|
16
|
-
@mcp.tool()
|
17
|
-
def add(a: int, b: int) -> int:
|
18
|
-
"""Add two numbers"""
|
19
|
-
return a + b
|
20
|
-
|
21
|
-
@mcp.tool()
|
22
|
-
def getTask(taskID: str) -> str:
|
23
|
-
|
24
|
-
""" This tool is capable of retreieving the task details for a specific task ID and return it to the user"""
|
25
|
-
|
26
|
-
# Get the API token from environment variables
|
27
|
-
api_token = os.getenv("CLICKUP_API_TOKEN")
|
28
|
-
|
29
|
-
if not api_token:
|
30
|
-
return "Error: CLICKUP_API_TOKEN environment variable not set"
|
31
|
-
|
32
|
-
url = f"https://api.clickup.com/api/v2/task/{taskID}"
|
33
|
-
|
34
|
-
headers = {
|
35
|
-
"accept": "application/json",
|
36
|
-
"Authorization": api_token
|
37
|
-
}
|
38
|
-
|
39
|
-
response = requests.get(url, headers=headers)
|
40
|
-
response.raise_for_status() # Raise an exception for bad status codes
|
41
|
-
return response.text
|
42
|
-
|
43
|
-
|
44
|
-
|
1
|
+
# server.py
|
2
|
+
from mcp.server.fastmcp import FastMCP
|
3
|
+
import requests
|
4
|
+
import os
|
5
|
+
from typing import Optional
|
6
|
+
from dotenv import load_dotenv
|
7
|
+
|
8
|
+
# Load environment variables from .env file
|
9
|
+
load_dotenv()
|
10
|
+
|
11
|
+
# Create an MCP server
|
12
|
+
mcp = FastMCP("Demo")
|
13
|
+
|
14
|
+
|
15
|
+
# Add an addition tool
|
16
|
+
@mcp.tool()
|
17
|
+
def add(a: int, b: int) -> int:
|
18
|
+
"""Add two numbers"""
|
19
|
+
return a + b
|
20
|
+
|
21
|
+
@mcp.tool()
|
22
|
+
def getTask(taskID: str) -> str:
|
23
|
+
|
24
|
+
""" This tool is capable of retreieving the task details for a specific task ID and return it to the user"""
|
25
|
+
|
26
|
+
# Get the API token from environment variables
|
27
|
+
api_token = os.getenv("CLICKUP_API_TOKEN")
|
28
|
+
|
29
|
+
if not api_token:
|
30
|
+
return "Error: CLICKUP_API_TOKEN environment variable not set"
|
31
|
+
|
32
|
+
url = f"https://api.clickup.com/api/v2/task/{taskID}"
|
33
|
+
|
34
|
+
headers = {
|
35
|
+
"accept": "application/json",
|
36
|
+
"Authorization": api_token
|
37
|
+
}
|
38
|
+
|
39
|
+
response = requests.get(url, headers=headers)
|
40
|
+
response.raise_for_status() # Raise an exception for bad status codes
|
41
|
+
return response.text
|
42
|
+
|
43
|
+
def main():
|
44
|
+
"""Main entry point for the MCP server"""
|
45
|
+
mcp.run()
|
46
|
+
|
47
|
+
if __name__ == "__main__":
|
48
|
+
main()
|
python_mcp_test-0.1.0/PKG-INFO
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: python-mcp-test
|
3
|
-
Version: 0.1.0
|
4
|
-
Summary: Add your description here
|
5
|
-
Requires-Python: >=3.11
|
6
|
-
Description-Content-Type: text/markdown
|
7
|
-
Requires-Dist: mcp[cli]>=1.10.1
|
8
|
-
Requires-Dist: requests>=2.32.4
|
9
|
-
Requires-Dist: python-dotenv>=1.0.0
|
10
|
-
|
11
|
-
# Python MCP Test Server
|
12
|
-
|
13
|
-
A Model Context Protocol (MCP) server with ClickUp integration.
|
14
|
-
|
15
|
-
## Features
|
16
|
-
|
17
|
-
- **add**: Add two numbers together
|
18
|
-
- **getTask**: Retrieve task information from ClickUp API
|
19
|
-
|
20
|
-
## Setup
|
21
|
-
|
22
|
-
### 1. Install Dependencies
|
23
|
-
|
24
|
-
```bash
|
25
|
-
uv sync
|
26
|
-
```
|
27
|
-
|
28
|
-
### 2. Environment Variables
|
29
|
-
|
30
|
-
1. Copy the example environment file:
|
31
|
-
```bash
|
32
|
-
copy .env.example .env
|
33
|
-
```
|
34
|
-
|
35
|
-
2. Edit `.env` and add your ClickUp API token:
|
36
|
-
```
|
37
|
-
CLICKUP_API_TOKEN=pk_your_actual_clickup_token_here
|
38
|
-
```
|
39
|
-
|
40
|
-
### 3. Getting Your ClickUp API Token
|
41
|
-
|
42
|
-
1. Go to your ClickUp settings
|
43
|
-
2. Navigate to "Apps" section
|
44
|
-
3. Generate a new API token
|
45
|
-
4. Copy the token that starts with `pk_`
|
46
|
-
|
47
|
-
## Running the Server
|
48
|
-
|
49
|
-
```bash
|
50
|
-
python main.py
|
51
|
-
```
|
52
|
-
|
53
|
-
## Security Notes
|
54
|
-
|
55
|
-
- Never commit your `.env` file to version control
|
56
|
-
- The `.env` file is already added to `.gitignore`
|
57
|
-
- Share the `.env.example` file with team members as a template
|
58
|
-
- In production, set environment variables through your deployment platform
|
59
|
-
|
60
|
-
## Usage
|
61
|
-
|
62
|
-
The server exposes two tools:
|
63
|
-
- `add(a: int, b: int)` - Adds two numbers
|
64
|
-
- `getTask(taskID: str)` - Retrieves ClickUp task information
|
python_mcp_test-0.1.0/README.md
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
# Python MCP Test Server
|
2
|
-
|
3
|
-
A Model Context Protocol (MCP) server with ClickUp integration.
|
4
|
-
|
5
|
-
## Features
|
6
|
-
|
7
|
-
- **add**: Add two numbers together
|
8
|
-
- **getTask**: Retrieve task information from ClickUp API
|
9
|
-
|
10
|
-
## Setup
|
11
|
-
|
12
|
-
### 1. Install Dependencies
|
13
|
-
|
14
|
-
```bash
|
15
|
-
uv sync
|
16
|
-
```
|
17
|
-
|
18
|
-
### 2. Environment Variables
|
19
|
-
|
20
|
-
1. Copy the example environment file:
|
21
|
-
```bash
|
22
|
-
copy .env.example .env
|
23
|
-
```
|
24
|
-
|
25
|
-
2. Edit `.env` and add your ClickUp API token:
|
26
|
-
```
|
27
|
-
CLICKUP_API_TOKEN=pk_your_actual_clickup_token_here
|
28
|
-
```
|
29
|
-
|
30
|
-
### 3. Getting Your ClickUp API Token
|
31
|
-
|
32
|
-
1. Go to your ClickUp settings
|
33
|
-
2. Navigate to "Apps" section
|
34
|
-
3. Generate a new API token
|
35
|
-
4. Copy the token that starts with `pk_`
|
36
|
-
|
37
|
-
## Running the Server
|
38
|
-
|
39
|
-
```bash
|
40
|
-
python main.py
|
41
|
-
```
|
42
|
-
|
43
|
-
## Security Notes
|
44
|
-
|
45
|
-
- Never commit your `.env` file to version control
|
46
|
-
- The `.env` file is already added to `.gitignore`
|
47
|
-
- Share the `.env.example` file with team members as a template
|
48
|
-
- In production, set environment variables through your deployment platform
|
49
|
-
|
50
|
-
## Usage
|
51
|
-
|
52
|
-
The server exposes two tools:
|
53
|
-
- `add(a: int, b: int)` - Adds two numbers
|
54
|
-
- `getTask(taskID: str)` - Retrieves ClickUp task information
|
@@ -1,64 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: python-mcp-test
|
3
|
-
Version: 0.1.0
|
4
|
-
Summary: Add your description here
|
5
|
-
Requires-Python: >=3.11
|
6
|
-
Description-Content-Type: text/markdown
|
7
|
-
Requires-Dist: mcp[cli]>=1.10.1
|
8
|
-
Requires-Dist: requests>=2.32.4
|
9
|
-
Requires-Dist: python-dotenv>=1.0.0
|
10
|
-
|
11
|
-
# Python MCP Test Server
|
12
|
-
|
13
|
-
A Model Context Protocol (MCP) server with ClickUp integration.
|
14
|
-
|
15
|
-
## Features
|
16
|
-
|
17
|
-
- **add**: Add two numbers together
|
18
|
-
- **getTask**: Retrieve task information from ClickUp API
|
19
|
-
|
20
|
-
## Setup
|
21
|
-
|
22
|
-
### 1. Install Dependencies
|
23
|
-
|
24
|
-
```bash
|
25
|
-
uv sync
|
26
|
-
```
|
27
|
-
|
28
|
-
### 2. Environment Variables
|
29
|
-
|
30
|
-
1. Copy the example environment file:
|
31
|
-
```bash
|
32
|
-
copy .env.example .env
|
33
|
-
```
|
34
|
-
|
35
|
-
2. Edit `.env` and add your ClickUp API token:
|
36
|
-
```
|
37
|
-
CLICKUP_API_TOKEN=pk_your_actual_clickup_token_here
|
38
|
-
```
|
39
|
-
|
40
|
-
### 3. Getting Your ClickUp API Token
|
41
|
-
|
42
|
-
1. Go to your ClickUp settings
|
43
|
-
2. Navigate to "Apps" section
|
44
|
-
3. Generate a new API token
|
45
|
-
4. Copy the token that starts with `pk_`
|
46
|
-
|
47
|
-
## Running the Server
|
48
|
-
|
49
|
-
```bash
|
50
|
-
python main.py
|
51
|
-
```
|
52
|
-
|
53
|
-
## Security Notes
|
54
|
-
|
55
|
-
- Never commit your `.env` file to version control
|
56
|
-
- The `.env` file is already added to `.gitignore`
|
57
|
-
- Share the `.env.example` file with team members as a template
|
58
|
-
- In production, set environment variables through your deployment platform
|
59
|
-
|
60
|
-
## Usage
|
61
|
-
|
62
|
-
The server exposes two tools:
|
63
|
-
- `add(a: int, b: int)` - Adds two numbers
|
64
|
-
- `getTask(taskID: str)` - Retrieves ClickUp task information
|
@@ -1 +0,0 @@
|
|
1
|
-
main
|
{python_mcp_test-0.1.0 → python_mcp_test-0.1.1}/python_mcp_test.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|