development-guides

Provides development guides for custom nodes, MCP servers, testing, and production deployment in Kailash SDK.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Dchuuuuuu/disease-risk-classifier --skill development-guides-dchuuuuuu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: development-guides
Source: https://github.com/Dchuuuuuu/disease-risk-classifier/tree/main/.claude/skills/07-development-guides
Command: npx skills add https://github.com/Dchuuuuuu/disease-risk-classifier --skill development-guides-dchuuuuuu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers working with the Kailash SDK often lack consolidated guidance on advanced topics like custom node development, async patterns, MCP server implementation, production deployment, and enterprise security, forcing them to piece together patterns from scattered sources. ## Core Features & Use Cases - Custom Node & Workflow Development: Guides for building sync and async nodes with parameter validation, error handling, cyclic workflows, and dynamic workflow composition. - MCP Server Development: Covers creating MCP servers with tools, resources, prompts, and stdio/HTTP/WebSocket transport configuration. - Production & Enterprise Patterns: Includes Docker deployment with AsyncLocalRuntime, circuit breakers, monitoring with Prometheus metrics, GDPR compliance, and 3-tier testing strategies. - Use Case: When building a production FastAPI service that runs Kailash workflows, use this Skill to configure AsyncLocalRuntime, add health checks, set up structured logging, and manage database connection pools across Gunicorn workers. ## Quick Start Ask the development-guides skill how to create a custom async node with parameter validation and deploy it to production with Docker.

Frequently Asked Questions about development-guides

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom node in Kailash SDK?▼

Extend the Node base class, call super().__init__(), define parameters with NodeParameter for validation, and implement the execute() method returning a dictionary of outputs. For non-blocking operations, extend AsyncNode and implement execute_async() instead.

How to build an MCP server with Python?▼

Use MCPServer from kailash.core.mcp_server, then register tools with the @server.tool decorator, resources with @server.resource, and prompts with @server.prompt. Run the server over stdio for Claude Desktop, HTTP for REST integrations, or WebSocket for real-time communication.

Which runtime should I use for Docker deployment?▼

Use AsyncLocalRuntime for Docker and FastAPI deployments to avoid threading issues in async contexts. Use LocalRuntime for CLI scripts and synchronous contexts, or call get_runtime() for automatic detection.

Are cyclic workflows supported in Kailash SDK?▼

Cyclic workflows are a planned feature not yet implemented in SDK v0.9.31. Current alternatives include Python loops inside nodes, recursive workflow execution, or SwitchNode-based state machine patterns.

How do I manage database connection pools with Gunicorn workers?▼

Create one shared pool per worker at startup and pass it to AsyncSQLDatabaseNode via the external_pool parameter. Set max_pool_size to max database connections divided by worker count, and match the pool type to your database (asyncpg for PostgreSQL, aiomysql for MySQL).

Why should tests avoid mocks in Kailash SDK workflows?▼

The testing strategy requires real infrastructure in Tier 2 integration and Tier 3 end-to-end tests to catch actual behavior issues. Use in-memory SQLite databases and real test APIs like jsonplaceholder instead of mocks for reliable validation.