SDK Reference
Python SDK Reference
Python SDK Reference
Complete API reference for the devcaster Python package.
Installation
pip install devcasterOr with uv:
uv add devcasterClasses
| Class | Description |
|---|---|
Devcaster | Devcaster SDK for Python. Generic parameters: TTool: The individual tool type re... |
Tools | Tools class definition This class is used to manage tools in the Devcaster SDK. ... |
Toolkits | Toolkits are a collectiono of tools that can be used to perform various tasks. T... |
Triggers | Triggers (instance) class |
ConnectedAccounts | Manage connected accounts. This class is used to manage connected accounts in t... |
AuthConfigs | Manage authentication configurations. |
MCP | MCP (Model Control Protocol) class. Provides enhanced MCP server operations Thi... |
Quick Start
from devcaster import Devcaster
devcaster = Devcaster(api_key="your-api-key")
# Get tools for a user
tools = devcaster.tools.get("user-123", toolkits=["github"])
# Execute a tool
result = devcaster.tools.execute(
"GITHUB_GET_REPOS",
arguments={"owner": "devcaster"},
user_id="user-123"
)Decorators
before_execute
@before_execute(modifier: BeforeExecute | None = ..., tools: List[str | None] = ..., toolkits: List[str | None] = ...)
def my_modifier(...):
...after_execute
@after_execute(modifier: AfterExecute | None = ..., tools: List[str | None] = ..., toolkits: List[str | None] = ...)
def my_modifier(...):
...schema_modifier
@schema_modifier(modifier: SchemaModifier | None = ..., tools: List[str | None] = ..., toolkits: List[str | None] = ...)
def my_modifier(...):
...