|
8 | 8 | from httpx import HTTPStatusError
|
9 | 9 | from pydantic import Field
|
10 | 10 |
|
11 |
| -from keboola_mcp_server.client import JsonDict, KeboolaClient, SuggestedComponent |
| 11 | +from keboola_mcp_server.client import JsonDict, KeboolaClient |
12 | 12 | from keboola_mcp_server.config import MetadataField
|
13 | 13 | from keboola_mcp_server.errors import tool_errors
|
14 | 14 | from keboola_mcp_server.links import ProjectLinksManager
|
@@ -56,7 +56,6 @@ def add_component_tools(mcp: KeboolaMcpServer) -> None:
|
56 | 56 | mcp.add_tool(FunctionTool.from_function(update_config))
|
57 | 57 | mcp.add_tool(FunctionTool.from_function(update_config_row))
|
58 | 58 | mcp.add_tool(FunctionTool.from_function(get_config_examples))
|
59 |
| - mcp.add_tool(FunctionTool.from_function(find_component_id)) |
60 | 59 | mcp.add_tool(FunctionTool.from_function(create_sql_transformation))
|
61 | 60 | mcp.add_tool(FunctionTool.from_function(update_sql_transformation))
|
62 | 61 | mcp.add_tool(FunctionTool.from_function(list_transformations))
|
@@ -1022,24 +1021,3 @@ async def get_config_examples(
|
1022 | 1021 | markdown += f'{i}. Row Configuration:\n```json\n{json.dumps(example, indent=2)}\n```\n\n'
|
1023 | 1022 |
|
1024 | 1023 | return markdown
|
1025 |
| - |
1026 |
| - |
1027 |
| -@tool_errors() |
1028 |
| -@with_session_state() |
1029 |
| -async def find_component_id( |
1030 |
| - ctx: Context, |
1031 |
| - query: Annotated[str, Field(description='Natural language query to find the requested component.')], |
1032 |
| -) -> list[SuggestedComponent]: |
1033 |
| - """ |
1034 |
| - Returns list of component IDs that match the given query. |
1035 |
| -
|
1036 |
| - USAGE: |
1037 |
| - - Use when you want to find the component for a specific purpose. |
1038 |
| -
|
1039 |
| - EXAMPLES: |
1040 |
| - - user_input: `I am looking for a salesforce extractor component` |
1041 |
| - - returns a list of component IDs that match the query, ordered by relevance/best match. |
1042 |
| - """ |
1043 |
| - client = KeboolaClient.from_state(ctx.session.state) |
1044 |
| - suggestion_response = await client.ai_service_client.suggest_component(query) |
1045 |
| - return suggestion_response.components |
0 commit comments