A MCP server for PTT.
Project description
PTT MCP Server
This project is a PTT agent based on fastmcp and PyPtt, which can operate PTT through the MCP protocol.
Features
- Login and logout
- Get, post, reply, delete, and comment on posts
- Send, get, and delete mail
- Give money (P幣)
- Get user, post, and board information
- and more...
Installation
- Clone the project:
git clone https://github.com/your-username/mcp_server.git
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile and set the following environment variables:PTT_ID=your_ptt_id PTT_PW=your_ptt_password
Usage
Run the MCP server:
python src/mcp_server.py
Then you can connect to the server with your MCP client.
API
For detailed API documentation, please refer to the basic_api.py file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ptt_mcp_server-0.1.0.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ptt_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: ptt_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83b6e6f31218574405928206264ae4645c6c27ef2a607b5f81144c683ce7f5a4
|
|
| MD5 |
5048a478a6408ef919b5f8e536717355
|
|
| BLAKE2b-256 |
f4bb6d58716c5599fbc0c14ef2d7f431a0e7d1429c0616c1151dcb493d8f312d
|
File details
Details for the file ptt_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ptt_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f532d25fc3537f54e1a8cb32a46dd74d04a384d5824b9f575d4c726f1138b3e
|
|
| MD5 |
fd91f9c2c59f6ccddb82d9d2e7256fce
|
|
| BLAKE2b-256 |
5d67089ae356f46c2f3b3fcd57ef3af7082cd8312f8182bd1c79b013d7fbad1a
|