academia-mcp 1.11.1__py3-none-any.whl → 1.11.3__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/files.py CHANGED
@@ -1,30 +1,15 @@
1
- from typing import Optional
2
1
  from pathlib import Path
3
2
 
4
3
  from academia_mcp.settings import settings
5
4
 
6
5
  DIR_PATH = Path(__file__).parent
7
6
  ROOT_PATH = DIR_PATH.parent
8
- DEFAULT_WORKSPACE_DIR_PATH: Path = DIR_PATH / "workdir"
9
7
  DEFAULT_LATEX_TEMPLATES_DIR_PATH: Path = DIR_PATH / "latex_templates"
10
8
 
11
9
 
12
- class WorkspaceDirectory:
13
- workspace_dir: Optional[Path] = None
14
-
15
- @classmethod
16
- def get_dir(cls) -> Path:
17
- if cls.workspace_dir is None:
18
- return Path(settings.WORKSPACE_DIR)
19
- return cls.workspace_dir
20
-
21
- @classmethod
22
- def set_dir(cls, workspace_dir: Path) -> None:
23
- cls.workspace_dir = workspace_dir
24
-
25
-
26
10
  def get_workspace_dir() -> Path:
27
- directory = WorkspaceDirectory.get_dir()
11
+ assert settings.WORKSPACE_DIR is not None, "Please set the WORKSPACE_DIR environment variable"
12
+ directory = Path(settings.WORKSPACE_DIR)
28
13
  if not directory.exists():
29
14
  directory.mkdir(parents=True, exist_ok=True)
30
15
  return directory
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: academia-mcp
3
- Version: 1.11.1
3
+ Version: 1.11.3
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,6 +1,6 @@
1
1
  academia_mcp/__init__.py,sha256=2Ru2I5u4cE7DrkkAsibDUEF1K6sYtqppb9VyFrRoQKI,94
2
2
  academia_mcp/__main__.py,sha256=rcmsOtJd3SA82exjrcGBuxuptcoxF8AXI7jNjiVq2BY,59
3
- academia_mcp/files.py,sha256=ynIt0XbU1Z7EPWkv_hVX0pGKsLlmjYv-MVJLOfi6yzs,817
3
+ academia_mcp/files.py,sha256=J_81COWWryBp2bHVe_9dg9c0rbVIzv7-zWkJ7CS9lr4,485
4
4
  academia_mcp/llm.py,sha256=zpGkuJFf58Ofgys_fi28-47_wJ1a7sIs_yZvI1Si6z0,993
5
5
  academia_mcp/pdf.py,sha256=9PlXzHGhb6ay3ldbTdxCcTWvH4TkET3bnb64mgoh9i0,1273
6
6
  academia_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -25,9 +25,9 @@ academia_mcp/tools/speech_to_text.py,sha256=YZzMqdvunzXkpcadP_mYhm6cs4qH1Y_42SfY
25
25
  academia_mcp/tools/visit_webpage.py,sha256=uJZx9vBGS8q-J-VH4Pr7T9lNtDsWU83gJhlotcd1ajg,3788
26
26
  academia_mcp/tools/web_search.py,sha256=CHgco8DufTFwtVecgDOOMylIY99iUmCdb0oZtpGntx0,8646
27
27
  academia_mcp/tools/yt_transcript.py,sha256=ilfOpX14moC1bKHbFmOVvZ8-_NxuQQUoQbV28e9FBaE,1217
28
- academia_mcp-1.11.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
- academia_mcp-1.11.1.dist-info/METADATA,sha256=e8HbUnRcj5HSHxC7soI4yRFpO5-xyoL_4kMYTUNPwK0,6356
30
- academia_mcp-1.11.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- academia_mcp-1.11.1.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
32
- academia_mcp-1.11.1.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
33
- academia_mcp-1.11.1.dist-info/RECORD,,
28
+ academia_mcp-1.11.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
+ academia_mcp-1.11.3.dist-info/METADATA,sha256=9TVifGcCB0o7j7iIj1kF7dBiz8LMJ7C4ajirgoxEMzs,6356
30
+ academia_mcp-1.11.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ academia_mcp-1.11.3.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
32
+ academia_mcp-1.11.3.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
33
+ academia_mcp-1.11.3.dist-info/RECORD,,