mcp-query-table 0.3.11__py3-none-any.whl → 0.3.12__py3-none-any.whl
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.
- mcp_query_table/_version.py +1 -1
- mcp_query_table/server.py +8 -10
- {mcp_query_table-0.3.11.dist-info → mcp_query_table-0.3.12.dist-info}/METADATA +2 -2
- {mcp_query_table-0.3.11.dist-info → mcp_query_table-0.3.12.dist-info}/RECORD +6 -6
- {mcp_query_table-0.3.11.dist-info → mcp_query_table-0.3.12.dist-info}/WHEEL +0 -0
- {mcp_query_table-0.3.11.dist-info → mcp_query_table-0.3.12.dist-info}/licenses/LICENSE +0 -0
mcp_query_table/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.3.
|
|
1
|
+
__version__ = "0.3.12"
|
mcp_query_table/server.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from typing import Annotated, List
|
|
2
2
|
|
|
3
|
+
import fastmcp
|
|
3
4
|
from loguru import logger
|
|
4
|
-
from mcp.server.fastmcp import FastMCP
|
|
5
5
|
from pydantic import Field
|
|
6
6
|
|
|
7
7
|
from mcp_query_table import QueryType, Site, query as qt_query, chat as qt_chat
|
|
@@ -41,8 +41,7 @@ class QueryServer:
|
|
|
41
41
|
return txt
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
mcp = FastMCP("query_table_mcp", log_level="ERROR")
|
|
44
|
+
mcp = fastmcp.FastMCP("query_table_mcp")
|
|
46
45
|
qsv = QueryServer()
|
|
47
46
|
|
|
48
47
|
|
|
@@ -76,11 +75,10 @@ def serve(format, endpoint, executable_path, user_data_dir, transport, host, por
|
|
|
76
75
|
logger.info(f"{endpoint=}")
|
|
77
76
|
logger.info(f"{executable_path=}")
|
|
78
77
|
logger.info(f"{user_data_dir=}")
|
|
79
|
-
if transport == 'sse':
|
|
80
|
-
logger.info(f"{transport=},{format=},{host=},{port=}")
|
|
81
|
-
else:
|
|
82
|
-
logger.info(f"{transport=},{format=}")
|
|
83
78
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
if transport == "stdio":
|
|
80
|
+
logger.info(f"{transport=},{format=}")
|
|
81
|
+
mcp.run(transport=transport)
|
|
82
|
+
else:
|
|
83
|
+
logger.info(f"{transport=},{format=},{host=},{port=}")
|
|
84
|
+
mcp.run(transport=transport, host=host, port=port)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp_query_table
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
4
4
|
Summary: query table from website, support MCP
|
|
5
5
|
Author-email: wukan <wu-kan@163.com>
|
|
6
6
|
License: MIT License
|
|
@@ -29,8 +29,8 @@ Keywords: eastmoney,iwencai,mcp,playwright,table,tdx
|
|
|
29
29
|
Classifier: Development Status :: 4 - Beta
|
|
30
30
|
Classifier: Programming Language :: Python
|
|
31
31
|
Requires-Python: >=3.10
|
|
32
|
+
Requires-Dist: fastmcp
|
|
32
33
|
Requires-Dist: loguru
|
|
33
|
-
Requires-Dist: mcp
|
|
34
34
|
Requires-Dist: pandas
|
|
35
35
|
Requires-Dist: playwright
|
|
36
36
|
Requires-Dist: playwright-stealth>=2.0.0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
mcp_query_table/__init__.py,sha256=K-0DU2hpeRvM9ZAuky0aWZtJLuOgKg7ZRd-pL9noc0o,330
|
|
2
2
|
mcp_query_table/__main__.py,sha256=Hl70DkzAY1wJNnrirjiMRXHhemptXXy_1Q3sASMTWSk,1472
|
|
3
|
-
mcp_query_table/_version.py,sha256=
|
|
3
|
+
mcp_query_table/_version.py,sha256=uzDtUmN3o6XGGV0Pkoi7vJCijlJJCOYCmLl8900CcXg,23
|
|
4
4
|
mcp_query_table/enums.py,sha256=7bu0m0zJBIfiS-eHGURw1ZHWNXgsq6gH1SztUhCgF-Y,678
|
|
5
|
-
mcp_query_table/server.py,sha256=
|
|
5
|
+
mcp_query_table/server.py,sha256=lueZKhZQtW3eQ1X-75SYJF_-dD75DFPyzqAqDRhMJig,3761
|
|
6
6
|
mcp_query_table/tool.py,sha256=3wUZfvfA_4fNmc5sWi60gdGuqT5y7ZPKt-Nibw9NzY4,11737
|
|
7
7
|
mcp_query_table/utils.py,sha256=MUKcklPF9TkABhM8wN0-kW0iy9AlmjL6oycZyxB_Qk8,722
|
|
8
8
|
mcp_query_table/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,7 +13,7 @@ mcp_query_table/sites/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
13
13
|
mcp_query_table/sites/eastmoney.py,sha256=wuM1rJkuQKrtL0a6ZyslMohPtucSgrs_jjaZWdkxhZo,4593
|
|
14
14
|
mcp_query_table/sites/iwencai.py,sha256=oCxNuGxiYcaMREHGpNoqspmCLlXSkvTFw2_EsmJSzlw,5174
|
|
15
15
|
mcp_query_table/sites/tdx.py,sha256=-u-rzhmYPW1m3zUFQsd-RUztafC43gQPhtmB6OuqA4M,4184
|
|
16
|
-
mcp_query_table-0.3.
|
|
17
|
-
mcp_query_table-0.3.
|
|
18
|
-
mcp_query_table-0.3.
|
|
19
|
-
mcp_query_table-0.3.
|
|
16
|
+
mcp_query_table-0.3.12.dist-info/METADATA,sha256=KgNgrHwId8Bs6B_wziL8TIrwtULMNQJQ6wSk4bzuMrM,9834
|
|
17
|
+
mcp_query_table-0.3.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
18
|
+
mcp_query_table-0.3.12.dist-info/licenses/LICENSE,sha256=rbvv_CTd7biGwT21tvhgQ2zkbPFXOoON7WFQWEdElBA,1063
|
|
19
|
+
mcp_query_table-0.3.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|