Skip to content

Commit d738233

Browse files
v15.1.1 (#52)
1 parent 9a39f6d commit d738233

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sakit"
3-
version = "15.1.0"
3+
version = "15.1.1"
44
description = "Solana Agent Kit"
55
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
66
license = "MIT"
@@ -36,6 +36,7 @@ build-backend = "poetry.core.masonry.api"
3636

3737
[tool.poetry.plugins."solana_agent.plugins"]
3838
birdeye = "sakit.birdeye:get_plugin"
39+
dflow_prediction = "sakit.dflow_prediction:get_plugin"
3940
image_gen = "sakit.image_gen:get_plugin"
4041
jupiter_holdings = "sakit.jupiter_holdings:get_plugin"
4142
jupiter_recurring = "sakit.jupiter_recurring:get_plugin"
@@ -46,6 +47,7 @@ mcp = "sakit.mcp:get_plugin"
4647
nemo_agent = "sakit.nemo_agent:get_plugin"
4748
privy_create_user = "sakit.privy_create_user:get_plugin"
4849
privy_create_wallet = "sakit.privy_create_wallet:get_plugin"
50+
privy_dflow_prediction = "sakit.privy_dflow_prediction:get_plugin"
4951
privy_dflow_swap = "sakit.privy_dflow_swap:get_plugin"
5052
privy_get_user_by_telegram = "sakit.privy_get_user_by_telegram:get_plugin"
5153
privy_recurring = "sakit.privy_recurring:get_plugin"

sakit/mcp.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,19 @@ class MCPTool(AutoTool):
3333
"""
3434

3535
def __init__(self, registry: Optional[ToolRegistry] = None):
36-
super().__init__(
37-
name="mcp",
38-
description="Executes tasks using connected MCP servers (e.g., Zapier actions) via fastmcp. Provide a natural language query describing the task.",
39-
registry=registry,
40-
)
36+
# Initialize all instance attributes BEFORE calling super().__init__
37+
# This prevents attribute errors if the registry inspects the tool during registration
4138
self._servers: List[Dict[str, Any]] = [] # List of server configs
4239
self._llm_provider: str = "grok" # Default to "grok", fallback to "openai"
4340
self._llm_api_key: Optional[str] = None
4441
self._llm_base_url: Optional[str] = None
4542
self._llm_model: Optional[str] = None
43+
44+
super().__init__(
45+
name="mcp",
46+
description="Executes tasks using connected MCP servers (e.g., Zapier actions) via fastmcp. Provide a natural language query describing the task.",
47+
registry=registry,
48+
)
4649
logger.info("MCPTool (fastmcp) initialized.")
4750

4851
def get_schema(self) -> Dict[str, Any]:

0 commit comments

Comments
 (0)