From e810be136dee2ba3de179b439f48afb5c8499f62 Mon Sep 17 00:00:00 2001 From: vasilije Date: Mon, 18 Aug 2025 17:11:09 +0200 Subject: [PATCH] adding temp fix to mcp --- cognee-mcp/src/server.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/cognee-mcp/src/server.py b/cognee-mcp/src/server.py index 3e65a5eb7..a7b260e1c 100755 --- a/cognee-mcp/src/server.py +++ b/cognee-mcp/src/server.py @@ -21,16 +21,16 @@ from cognee.shared.data_models import KnowledgeGraph from cognee.modules.storage.utils import JSONEncoder -try: - from codingagents.coding_rule_associations import ( - add_rule_associations, - get_existing_rules, - ) -except ModuleNotFoundError: - from .codingagents.coding_rule_associations import ( - add_rule_associations, - get_existing_rules, - ) +# try: +# from codingagents.coding_rule_associations import ( +# add_rule_associations, +# get_existing_rules, +# ) +# except ModuleNotFoundError: +# from .codingagents.coding_rule_associations import ( +# add_rule_associations, +# get_existing_rules, +# ) mcp = FastMCP("Cognee") @@ -298,7 +298,7 @@ async def save_interaction(data: str) -> list: logger.info("Save interaction process finished.") logger.info("Generating associated rules from interaction data.") - await add_rule_associations(data=data, rules_nodeset_name="coding_agent_rules") + # await add_rule_associations(data=data, rules_nodeset_name="coding_agent_rules") logger.info("Associated rules generated from interaction data.") @@ -560,8 +560,10 @@ async def get_developer_rules() -> list: async def fetch_rules_from_cognee() -> str: """Collect all developer rules from Cognee""" with redirect_stdout(sys.stderr): - developer_rules = await get_existing_rules(rules_nodeset_name="coding_agent_rules") - return developer_rules + note = "This is broken in 0.2.2" + return note + # developer_rules = await get_existing_rules(rules_nodeset_name="coding_agent_rules") + # return developer_rules rules_text = await fetch_rules_from_cognee()