Files
kit/sdk/examples/scripting
Ed Zynda f778379dea feat: Add SDK package for programmatic MCPHost usage (#129)
* feat: add SDK package for programmatic MCPHost usage

- Export InitConfig and LoadConfigWithEnvSubstitution from cmd package
- Create sdk package with MCPHost type for programmatic access
- Add Options struct for configuration overrides
- Implement Prompt and PromptWithCallbacks methods
- Add session management (load, save, clear)
- Create type helpers for Message and ToolCall
- Add comprehensive SDK documentation in README
- Include basic and scripting examples
- Add unit tests for SDK functionality

The SDK reuses all existing internal packages and maintains identical
behavior to the CLI, including config loading, environment variables,
and defaults.

* docs: add SDK section to main README with link to detailed documentation

* fix tests

* update CI
2025-09-02 15:42:37 +03:00
..