fid-mcp 0.1.0__py3-none-any.whl → 0.1.1__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.
Potentially problematic release.
This version of fid-mcp might be problematic. Click here for more details.
- fid_mcp/server.py +21 -8
- {fid_mcp-0.1.0.dist-info → fid_mcp-0.1.1.dist-info}/METADATA +1 -1
- fid_mcp-0.1.1.dist-info/RECORD +9 -0
- fid_mcp-0.1.0.dist-info/RECORD +0 -9
- {fid_mcp-0.1.0.dist-info → fid_mcp-0.1.1.dist-info}/WHEEL +0 -0
- {fid_mcp-0.1.0.dist-info → fid_mcp-0.1.1.dist-info}/entry_points.txt +0 -0
- {fid_mcp-0.1.0.dist-info → fid_mcp-0.1.1.dist-info}/licenses/LICENSE +0 -0
fid_mcp/server.py
CHANGED
|
@@ -325,7 +325,7 @@ class DynamicToolServer:
|
|
|
325
325
|
return [types.TextContent(type="text", text=json.dumps(output, indent=2))]
|
|
326
326
|
|
|
327
327
|
def load_toolset(self, filepath: Path):
|
|
328
|
-
"""Load and register tools from a .fidtools file"""
|
|
328
|
+
"""Load and register tools from a .fidtools or fidtools.json file"""
|
|
329
329
|
with open(filepath, "r") as f:
|
|
330
330
|
toolset = json.load(f)
|
|
331
331
|
|
|
@@ -425,17 +425,30 @@ class DynamicToolServer:
|
|
|
425
425
|
f.write(f"os.getcwd(): {os.getcwd()}\n")
|
|
426
426
|
f.write(f"Using working_dir: {working_dir}\n")
|
|
427
427
|
|
|
428
|
-
# Look for .fidtools file in actual working directory
|
|
429
|
-
|
|
428
|
+
# Look for .fidtools or fidtools.json file in actual working directory
|
|
429
|
+
config_files = [
|
|
430
|
+
working_dir / ".fidtools",
|
|
431
|
+
working_dir / "fidtools.json"
|
|
432
|
+
]
|
|
433
|
+
|
|
434
|
+
config_file = None
|
|
435
|
+
for file_path in config_files:
|
|
436
|
+
if file_path.exists() and file_path.is_file():
|
|
437
|
+
config_file = file_path
|
|
438
|
+
break
|
|
439
|
+
|
|
430
440
|
with open(debug_log, "a") as f:
|
|
431
|
-
f.write(f"Looking for
|
|
432
|
-
|
|
441
|
+
f.write(f"Looking for config files: {', '.join(str(f) for f in config_files)}\n")
|
|
442
|
+
if config_file:
|
|
443
|
+
f.write(f"Found config file: {config_file}\n")
|
|
444
|
+
else:
|
|
445
|
+
f.write("No config file found\n")
|
|
433
446
|
|
|
434
|
-
if
|
|
447
|
+
if config_file:
|
|
435
448
|
try:
|
|
436
|
-
self.load_toolset(
|
|
449
|
+
self.load_toolset(config_file)
|
|
437
450
|
with open(debug_log, "a") as f:
|
|
438
|
-
f.write(f"Successfully loaded toolset from {
|
|
451
|
+
f.write(f"Successfully loaded toolset from {config_file}\n")
|
|
439
452
|
f.write(f"Loaded {len(self.tools)} tools\n")
|
|
440
453
|
except Exception as e:
|
|
441
454
|
with open(debug_log, "a") as f:
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
fid_mcp/__init__.py,sha256=cv_5UWE6kUBeTfAY6JZq9o47hEfzaLhcoKW0rw8GKq8,17
|
|
2
|
+
fid_mcp/config.py,sha256=YEH9BD4UWU9Hp3ifc3PGg4nk3FvFadfRt52-_fhCaqk,7365
|
|
3
|
+
fid_mcp/server.py,sha256=ZlQqNW_b6vfGzjcxxgKPKYy_YNw7FQNZfbjKV0ywA04,18016
|
|
4
|
+
fid_mcp/shell.py,sha256=mLbGIVuk4LGCT37tS8deDOyTSY2zPG57WE9KBGsKSHg,26459
|
|
5
|
+
fid_mcp-0.1.1.dist-info/METADATA,sha256=l348ByqdrsTS43EchBzAFoyqQAj_GtRCUZ0_pd2wKfg,1210
|
|
6
|
+
fid_mcp-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
fid_mcp-0.1.1.dist-info/entry_points.txt,sha256=Xdh2RDDC7r5rIXe1kM3smsA1rgNxd1tafL_JuuTJf2o,48
|
|
8
|
+
fid_mcp-0.1.1.dist-info/licenses/LICENSE,sha256=5SkiXC7s2RbMDCdmq4N6MCWNKw151sFmkGbWS9BLSJE,177
|
|
9
|
+
fid_mcp-0.1.1.dist-info/RECORD,,
|
fid_mcp-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
fid_mcp/__init__.py,sha256=cv_5UWE6kUBeTfAY6JZq9o47hEfzaLhcoKW0rw8GKq8,17
|
|
2
|
-
fid_mcp/config.py,sha256=YEH9BD4UWU9Hp3ifc3PGg4nk3FvFadfRt52-_fhCaqk,7365
|
|
3
|
-
fid_mcp/server.py,sha256=c3RYpLvUKJcMC4W26YfQ2lBWQwWRNOODESUsn-UDH6s,17633
|
|
4
|
-
fid_mcp/shell.py,sha256=mLbGIVuk4LGCT37tS8deDOyTSY2zPG57WE9KBGsKSHg,26459
|
|
5
|
-
fid_mcp-0.1.0.dist-info/METADATA,sha256=QaenjwxRoRNpK46yGi-S9UdSex05q-Ma9ftD0m52DEs,1210
|
|
6
|
-
fid_mcp-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
fid_mcp-0.1.0.dist-info/entry_points.txt,sha256=Xdh2RDDC7r5rIXe1kM3smsA1rgNxd1tafL_JuuTJf2o,48
|
|
8
|
-
fid_mcp-0.1.0.dist-info/licenses/LICENSE,sha256=5SkiXC7s2RbMDCdmq4N6MCWNKw151sFmkGbWS9BLSJE,177
|
|
9
|
-
fid_mcp-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|