Add deterministic article search to MCP

This commit is contained in:
2026-09-25 15:13:02 +02:00
parent 6f224a1831
commit 1169df96a8
5 changed files with 284 additions and 2 deletions
+6
View File
@@ -5,6 +5,7 @@ from __future__ import annotations
from typing import Any
from roll_calculation import (
ArticleRepository,
calculate_roll,
get_article,
transport_roll_inputs_from_roll_calculation,
@@ -20,6 +21,11 @@ def get_article_result(
return get_article(article_number, article_name_hint)
def search_articles_result(query: str) -> dict[str, Any]:
"""Delegate article discovery to the shared article repository."""
return ArticleRepository.load().search(query)
def calculate_roll_diameter_result(
*,
article_number: str | None = None,