academia-mcp 0.0.6__py3-none-any.whl → 0.0.7__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.
academia_mcp/__init__.py CHANGED
@@ -1,5 +1,7 @@
1
- from .server import server
1
+ import fire # type: ignore
2
+
3
+ from .server import run
2
4
 
3
5
 
4
6
  def main() -> None:
5
- server.run()
7
+ fire.Fire(run)
academia_mcp/server.py CHANGED
@@ -1,4 +1,5 @@
1
- import fire
1
+ import fire # type: ignore
2
+ import uvicorn
2
3
  from mcp.server.fastmcp import FastMCP
3
4
 
4
5
  from .tools.arxiv_search import arxiv_search
@@ -7,7 +8,7 @@ from .tools.s2_citations import s2_citations
7
8
  from .tools.hf_datasets_search import hf_datasets_search
8
9
  from .tools.anthology_search import anthology_search
9
10
 
10
- server = FastMCP("Academia MCP")
11
+ server = FastMCP("Academia MCP", stateless_http=True)
11
12
 
12
13
  server.add_tool(arxiv_search)
13
14
  server.add_tool(arxiv_download)
@@ -15,9 +16,11 @@ server.add_tool(s2_citations)
15
16
  server.add_tool(hf_datasets_search)
16
17
  server.add_tool(anthology_search)
17
18
 
19
+ http_app = server.streamable_http_app()
18
20
 
19
- def run(port: int):
20
- server.run(port=port)
21
+
22
+ def run(host: str = "0.0.0.0", port: int = 5050) -> None:
23
+ uvicorn.run(http_app, host=host, port=port)
21
24
 
22
25
 
23
26
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: academia-mcp
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: MCP server that provides different tools to search for scientific publications
5
5
  Author-email: Ilya Gusev <phoenixilya@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/IlyaGusev/academia_mcp
@@ -1,7 +1,7 @@
1
- academia_mcp/__init__.py,sha256=z25_nvrlZ2OW6lc866UuISBBgAKgV3P3pj8-unxyXPc,66
1
+ academia_mcp/__init__.py,sha256=2Ru2I5u4cE7DrkkAsibDUEF1K6sYtqppb9VyFrRoQKI,94
2
2
  academia_mcp/__main__.py,sha256=rcmsOtJd3SA82exjrcGBuxuptcoxF8AXI7jNjiVq2BY,59
3
3
  academia_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- academia_mcp/server.py,sha256=1zwVXRBUizIvcvzkSiOT9Km5GVB5yCV0_OdUklY3GyI,594
4
+ academia_mcp/server.py,sha256=VC8RHUuIn9B6KjGbNLvcFaChuURJ2pDvBHyuYouWUPo,747
5
5
  academia_mcp/tools/__init__.py,sha256=KZuteEnRZSJFl1E_VIH7V3hAHS6WUl-K4Ge41D9q58M,347
6
6
  academia_mcp/tools/anthology_search.py,sha256=Wnpd6ovSeCYXjuzisV37hg_Kdh4NVC_1Y93VLIy2Gus,7728
7
7
  academia_mcp/tools/arxiv_download.py,sha256=fJ1PCgnpQvPKXv6VLKLcL_Hd_hz9LhPM-NAq3gYehGk,11158
@@ -9,9 +9,9 @@ academia_mcp/tools/arxiv_search.py,sha256=-A5-7PP-kYgjQjMreRGKkOwD4AQf7nVt6yh8vH
9
9
  academia_mcp/tools/hf_datasets_search.py,sha256=KiBkqT4rXjEN4oc1AWZOPnqN_Go90TQogY5-DUm3LQo,2854
10
10
  academia_mcp/tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  academia_mcp/tools/s2_citations.py,sha256=xIwaGaAcLNBJ8_IAJtFiN2h_164yvz_jcsl6c-wFzAA,3988
12
- academia_mcp-0.0.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
- academia_mcp-0.0.6.dist-info/METADATA,sha256=b-cYmtnAvaTPx_RipiQwJoaDuBew23zY4IP6K7kK-Cw,1656
14
- academia_mcp-0.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- academia_mcp-0.0.6.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
16
- academia_mcp-0.0.6.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
17
- academia_mcp-0.0.6.dist-info/RECORD,,
12
+ academia_mcp-0.0.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
+ academia_mcp-0.0.7.dist-info/METADATA,sha256=92ZljUltTQdLouZbfXEuDMqDFRpWc_YQn6Rp1TxQb6Q,1656
14
+ academia_mcp-0.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ academia_mcp-0.0.7.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
16
+ academia_mcp-0.0.7.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
17
+ academia_mcp-0.0.7.dist-info/RECORD,,