Shared bridge runtime for VETKA tools. This module unifies tool behavior across different agent entrypoints, so MCP clients and IDE/runtime integrations execute the same logic, validations, and response shaping.
VETKA runs in a multi-agent environment where multiple adapters need the same capabilities:
- semantic retrieval over project knowledge,
- safe read/write file operations,
- git and test execution hooks,
- memory-aware context and preference access.
vetka-bridge-core is the compatibility layer that keeps these operations
consistent across transports.
- Unified tool taxonomy:
ReadToolfor deterministic, side-effect-free operations.WriteToolfor state-changing operations with safe execution paths.ExecutionToolfor model calls, test runs, and runtime actions.
- Shared registry and lookup:
- central
TOOL_REGISTRY, get_toolandlist_toolsutilities for adapter wiring.
- central
- Standardized result formatters:
- compact output adapters for search, tree, health, git, tests, and memory.
- Memory-aware bridge surfaces:
- conversation context packing,
- user preference retrieval,
- memory summary generation.
shared_tools.py:- bridge primitives (
VETKATool,ReadTool,WriteTool,ExecutionTool), - concrete tools and formatter helpers,
- tool registry.
- bridge primitives (
__init__.py:- public package exports for external bridge consumers.
This module is used by VETKA MCP bridge and additional runtime adapters to minimize behavior drift and duplicate logic.
- Single implementation, multiple transports.
- Explicit argument validation per tool.
- Stable response contract for agent clients.
- Operational safety for write and execution paths.
- Incremental extensibility for new bridge adapters.
vetka-bridge-core is intended as a reusable integration kernel for
agent-native applications that need:
- one internal tool contract,
- multiple external protocols,
- predictable outputs for orchestration pipelines.
See OPEN_SOURCE_CREDITS.md for upstream ecosystem references and attribution.
- Fork the repository.
- Create branch:
feature/<name>orfix/<name>. - Follow Conventional Commits.
- Add tests/docs for behavior changes.
- Open a PR with context and validation notes.
- Versioning: Semantic Versioning (
vMAJOR.MINOR.PATCH). - Changelog source:
CHANGELOG.md.
See SECURITY.md for vulnerability reporting workflow.
MIT (LICENSE).