diff --git a/README.md b/README.md index 2c1af99..59b98e7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# MattCP Image Server +# MooseCP Image Server -A Model Context Protocol (MCP) server designed to provide LLMs with efficient, token-optimized visual access to image directories. Instead of dumping full-resolution images (which waste tokens and cause context overflow), MattCP provides a hierarchical workflow: **List $\rightarrow$ Scan $\rightarrow$ Preview $\rightarrow$ Inspect**. +A Model Context Protocol (MCP) server designed to provide LLMs with efficient, token-optimized visual access to image directories. Instead of dumping full-resolution images (which waste tokens and cause context overflow), MooseCP provides a hierarchical workflow: **List $\rightarrow$ Scan $\rightarrow$ Preview $\rightarrow$ Inspect**. ## ⚠️ AI SLOP DISCLAIMER This server is designed to facilitate the interaction between AI models and image datasets. While it provides tools for "previewing" and "inspecting" images, remember that AI models can still hallucinate visual details, especially when working with low-resolution previews. **Always verify critical visual information with the `read_image` tool (full resolution) before drawing final conclusions.** diff --git a/main.py b/main.py index e2da2a6..6378eca 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ logging.basicConfig( filemode="a", format="%(asctime)s - %(levelname)s - %(message)s" ) -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") mcp_logic = MCPServer() diff --git a/mcp_logic.py b/mcp_logic.py index 83eeeab..7795499 100644 --- a/mcp_logic.py +++ b/mcp_logic.py @@ -24,7 +24,7 @@ class MCPServer: return { "protocolVersion": "2024-11-05", "capabilities": {"tools": {}}, - "serverInfo": {"name": "MattCP", "version": "0.4.1"} + "serverInfo": {"name": "MooseCP", "version": "0.4.1"} } if method == "tools/list": diff --git a/tools/contact_sheet.py b/tools/contact_sheet.py index e8626a7..05f0301 100644 --- a/tools/contact_sheet.py +++ b/tools/contact_sheet.py @@ -9,7 +9,7 @@ import config from tools.utils import format_relative_time, ToolError, get_file_info_list, sort_file_list, get_paginated_list -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") async def handle(args: Dict[str, Any]): """ diff --git a/tools/get_text_context.py b/tools/get_text_context.py index aa35776..8bb3c44 100644 --- a/tools/get_text_context.py +++ b/tools/get_text_context.py @@ -4,7 +4,7 @@ from pathlib import Path from typing import Any, Dict, List, Set from tools.utils import ToolError, parse_indices -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") async def handle(args: Dict[str, Any]): """ diff --git a/tools/list_directory.py b/tools/list_directory.py index 37a567d..573e33c 100644 --- a/tools/list_directory.py +++ b/tools/list_directory.py @@ -3,7 +3,7 @@ from pathlib import Path from typing import Any, Dict from tools.utils import format_relative_time, ToolError, get_file_info_list, sort_file_list -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") async def handle(args: Dict[str, Any]): """ diff --git a/tools/preview_image.py b/tools/preview_image.py index 93d7d05..5f295b9 100644 --- a/tools/preview_image.py +++ b/tools/preview_image.py @@ -10,7 +10,7 @@ import config from tools.utils import format_relative_time, ToolError, get_file_info_list, sort_file_list, parse_indices -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") def calculate_patch_dimensions(orig_w: int, orig_h: int, target_tokens: int = None): """ diff --git a/tools/read_image.py b/tools/read_image.py index a49140a..7db1f30 100644 --- a/tools/read_image.py +++ b/tools/read_image.py @@ -5,7 +5,7 @@ from pathlib import Path from typing import Any, Dict from tools.utils import ToolError -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") async def handle(args: Dict[str, Any]): """ diff --git a/tools/read_metadata.py b/tools/read_metadata.py index 202512c..41c5775 100644 --- a/tools/read_metadata.py +++ b/tools/read_metadata.py @@ -4,7 +4,7 @@ from typing import Any, Dict from PIL import Image from tools.utils import ToolError -logger = logging.getLogger("MattCP") +logger = logging.getLogger("MooseCP") async def handle(args: Dict[str, Any]): """