-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathreproduction_script.py
More file actions
33 lines (25 loc) · 917 Bytes
/
reproduction_script.py
File metadata and controls
33 lines (25 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import logging
import os
import sys
# Create a reproduction script to test incarnation discovery
logging.basicConfig(level=logging.INFO, stream=sys.stderr)
logger = logging.getLogger("test_discovery")
# Add src to path
sys.path.append(os.path.join(os.getcwd(), "src"))
try:
from mcp_neocoder.incarnation_registry import registry
logger.info("Starting discovery...")
registry.discover()
logger.info(f"Discovered incarnations: {list(registry.incarnations.keys())}")
if not registry.incarnations:
logger.error("No incarnations found!")
# Try direct discovery
logger.info("Trying direct discovery...")
identifiers = registry.discover_incarnation_identifiers()
logger.info(f"Identifiers found: {identifiers}")
else:
logger.info("Success!")
except Exception as e:
logger.error(f"Error: {e}")
import traceback
traceback.print_exc()