Skip to content

Commit 7f7a005

Browse files
authored
feat: add license dependency. (#7)
1 parent 8a674eb commit 7f7a005

File tree

4 files changed

+230
-0
lines changed

4 files changed

+230
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,29 @@
66
The best MCP server for Ptt. Proudly built by <a href="https://pyptt.cc/">PyPtt</a> developer.
77
<br />
88
<br />
9+
910
<a href="https://pypi.org/project/ptt-mcp-server/">
1011
<img src="https://img.shields.io/pypi/v/ptt-mcp-server.svg" alt="PyPI Version">
1112
</a>
13+
1214
<a href="https://www.python.org/downloads/">
1315
<img src="https://img.shields.io/badge/python-3.10%2B-blue.svg" alt="Python 3.10+">
1416
</a>
17+
1518
<a href="https://img.shields.io/pypi/dm/ptt-mcp-server">
1619
<img src="https://img.shields.io/pypi/dm/ptt-mcp-server" alt="Downloads">
1720
</a>
21+
22+
<a href="https://github.com/PyPtt/ptt_mcp_server/actions/workflows/code_quality.yml">
23+
<img src="https://github.com/PyPtt/ptt_mcp_server/actions/workflows/code_quality.yml/badge.svg" alt="code_quality">
24+
</a>
25+
1826
<a href="https://github.com/PyPtt/ptt_mcp_server/blob/main/LICENSE">
1927
<img src="https://img.shields.io/badge/license-BSD_3--Clause-blue.svg" alt="License">
2028
</a>
2129
</p>
2230

31+
2332
## 📖 專案介紹 (Description)
2433
本專案是一個 PTT MCP (Model Context Protocol) 伺服器,它基於功能強大的 [`PyPtt`](https://pyptt.cc/) 函式庫。這使得您的 MCP 客戶端能夠真正登入 PTT 並透過 MCP 協定與 PTT 批踢踢實業坊進行實際互動,並實現自動化操作。
2534

@@ -236,6 +245,8 @@ pip install ptt-mcp-server
236245
* [**PyPtt**](https://pyptt.cc/) - 驅動本專案與 PTT 互動的核心函式庫。
237246
* [**fastmcp**](https://github.com/jlowin/fastmcp) - 提供高效能 MCP 伺服器框架。
238247

248+
本專案使用的第三方函式庫及其授權條款,請參閱 [`licenses`](https://github.com/PyPtt/ptt_mcp_server/tree/main/licenses) 資料夾。
249+
239250
## 📄 授權條款 (License)
240251

241252
本專案採用 [BSD 3-Clause License](https://github.com/PyPtt/ptt_mcp_server/blob/main/LICENSE) 授權。

licenses/LICENSE-PyPtt

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
GNU LESSER GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5+
Everyone is permitted to copy and distribute verbatim copies
6+
of this license document, but changing it is not allowed.
7+
8+
9+
This version of the GNU Lesser General Public License incorporates
10+
the terms and conditions of version 3 of the GNU General Public
11+
License, supplemented by the additional permissions listed below.
12+
13+
0. Additional Definitions.
14+
15+
As used herein, "this License" refers to version 3 of the GNU
16+
Lesser General Public License, and the "GNU GPL" refers to version 3
17+
of the GNU General Public License.
18+
19+
"The Library" refers to a covered work governed by this License,
20+
other than an Application or a Combined Work as defined below.
21+
22+
An "Application" is any work that makes use of an interface
23+
provided by the Library, but which is not otherwise based on the
24+
Library. Defining a subclass of a class defined by the Library is
25+
deemed a mode of using an interface provided by the Library.
26+
27+
A "Combined Work" is a work produced by combining or linking an
28+
Application with the Library. The particular version of the Library
29+
with which the Combined Work was made is also called the "Linked
30+
Version".
31+
32+
The "Minimal Corresponding Source" for a Combined Work means the
33+
Corresponding Source for the Combined Work, excluding any source code
34+
for portions of the Combined Work that, considered in isolation, are
35+
based on the Application, and not on the Linked Version.
36+
37+
The "Corresponding Application Code" for a Combined Work means the
38+
object code and/or source code for the Application, including any
39+
data and utility programs needed for reproducing the Combined Work
40+
from the Application, but excluding the System Libraries of the
41+
Combined Work.
42+
43+
1. Exception to Section 3 of the GNU GPL.
44+
45+
You may convey a covered work under sections 3 and 4 of this
46+
License without being bound by section 3 of the GNU GPL.
47+
48+
2. Conveying Modified Versions.
49+
50+
If you modify a copy of the Library, and, in your modifications, a
51+
facility refers to a function or data to be supplied by an
52+
Application that uses the facility (other than as an argument passed
53+
when the facility is invoked), then you may convey a copy of the
54+
modified version:
55+
56+
a) under this License, provided that you make a good faith effort
57+
to ensure that, in the event an Application does not supply the
58+
function or data, the facility still operates, and performs
59+
whatever part of its purpose remains meaningful, or
60+
61+
b) under the GNU GPL, with none of the additional permissions of
62+
this License applicable to that copy.
63+
64+
3. Object Code Incorporating Material from Library Header Files.
65+
66+
The object code form of an Application may incorporate material
67+
from a header file that is part of the Library. You may convey such
68+
object code under terms of your choice, provided that, if the
69+
incorporated material is not limited to numerical parameters, data
70+
structure layouts and accessors, or small macros, inline functions
71+
and templates (ten or fewer lines in length), you do both of the
72+
following:
73+
74+
a) Give prominent notice with each copy of the object code that
75+
the Library is used in it and that the Library and its use are
76+
covered by this License.
77+
78+
b) Accompany the object code with a copy of the GNU GPL and this
79+
license document.
80+
81+
4. Combined Works.
82+
83+
You may convey a Combined Work under terms of your choice that,
84+
taken together, effectively do not restrict modification of the
85+
portions of the Library contained in the Combined Work and reverse
86+
engineering for debugging such modifications, if you also do each of
87+
the following:
88+
89+
a) Give prominent notice with each copy of the Combined Work that
90+
the Library is used in it and that the Library and its use are
91+
covered by this License.
92+
93+
b) Accompany the Combined Work with a copy of the GNU GPL and this
94+
license document.
95+
96+
c) For a Combined Work that displays copyright notices during
97+
execution, include the copyright notice for the Library among
98+
these notices, as well as a reference directing the user to the
99+
copies of the GNU GPL and this license document.
100+
101+
d) Do one of the following:
102+
103+
0) Convey the Minimal Corresponding Source under the terms of
104+
this License, and the Corresponding Application Code in a
105+
form suitable for, and under terms that permit, the user to
106+
recombine or relink the Application with a modified version
107+
of the Linked Version to produce a modified Combined Work, in
108+
the manner specified by section 6 of the GNU GPL for
109+
conveying Corresponding Source.
110+
111+
1) Use a suitable shared library mechanism for linking with
112+
the Library. A suitable mechanism is one that (a) uses at
113+
run time a copy of the Library already present on the user's
114+
computer system, and (b) will operate properly with a
115+
modified version of the Library that is interface-compatible
116+
with the Linked Version.
117+
118+
e) Provide Installation Information, but only if you would
119+
otherwise be required to provide such information under section 6
120+
of the GNU GPL, and only to the extent that such information is
121+
necessary to install and execute a modified version of the
122+
Combined Work produced by recombining or relinking the
123+
Application with a modified version of the Linked Version. (If
124+
you use option 4d0, the Installation Information must accompany
125+
the Minimal Corresponding Source and Corresponding Application
126+
Code. If you use option 4d1, you must provide the
127+
Installation Information in the manner specified by section 6 of
128+
the GNU GPL for conveying Corresponding Source.)
129+
130+
5. Combined Libraries.
131+
132+
You may place library facilities that are a work based on the
133+
Library side by side in a single library together with other library
134+
facilities that are not Applications and are not covered by this
135+
License, and convey such a combined library under terms of your
136+
choice, if you do both of the following:
137+
138+
a) Accompany the combined library with a copy of the same work
139+
based on the Library, uncombined with any other library
140+
facilities, conveyed under the terms of this License.
141+
142+
b) Give prominent notice with the combined library that part of it
143+
is a work based on the Library, and explaining where to find the
144+
accompanying uncombined form of the same work.
145+
146+
6. Revised Versions of the GNU Lesser General Public License.
147+
148+
The Free Software Foundation may publish revised and/or new
149+
versions of the GNU Lesser General Public License from time to time.
150+
Such new versions will be similar in spirit to the present version,
151+
but may differ in detail to address new problems or concerns.
152+
153+
Each version is given a distinguishing version number. If the
154+
Library as you received it specifies that a certain numbered version
155+
of the GNU Lesser General Public License "or any later version"
156+
applies to it, you have the option of following the terms and
157+
conditions either of that published version or of any later version
158+
published by the Free Software Foundation. If the Library as you
159+
received it does not specify a version number of the GNU Lesser
160+
General Public License, you may choose any version of the GNU Lesser
161+
General Public License ever published by the Free Software
162+
Foundation.
163+
164+
If the Library as you received it specifies that a proxy can decide
165+
whether future versions of the GNU Lesser General Public License
166+
shall apply, that proxy's public statement of acceptance of any
167+
version is permanent authorization for you to choose that version for
168+
the Library.

licenses/LICENSE-fastmcp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
The MIT License (MIT)
2+
=====================
3+
4+
Copyright © 2024 Frank Fiegel (frank@glama.ai)
5+
6+
Permission is hereby granted, free of charge, to any person
7+
obtaining a copy of this software and associated documentation
8+
files (the “Software”), to deal in the Software without
9+
restriction, including without limitation the rights to use,
10+
copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the
12+
Software is furnished to do so, subject to the following
13+
conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25+
OTHER DEALINGS IN THE SOFTWARE.

licenses/LICENSE-python-dotenv

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2014, Saurabh Kumar (python-dotenv), 2013, Ted Tieken (django-dotenv-rw), 2013, Jacob Kaplan-Moss (django-dotenv)
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
- Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
- Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
- Neither the name of django-dotenv nor the names of its contributors may be
14+
used to endorse or promote products derived from this software without
15+
specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
21+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)