This commit is contained in:
moosecrap 2026-07-23 23:54:30 -07:00
parent 05e70a7fc4
commit f05a662414
9 changed files with 10 additions and 10 deletions

View File

@ -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 ## ⚠️ 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.** 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.**

View File

@ -21,7 +21,7 @@ logging.basicConfig(
filemode="a", filemode="a",
format="%(asctime)s - %(levelname)s - %(message)s" format="%(asctime)s - %(levelname)s - %(message)s"
) )
logger = logging.getLogger("MattCP") logger = logging.getLogger("MooseCP")
mcp_logic = MCPServer() mcp_logic = MCPServer()

View File

@ -24,7 +24,7 @@ class MCPServer:
return { return {
"protocolVersion": "2024-11-05", "protocolVersion": "2024-11-05",
"capabilities": {"tools": {}}, "capabilities": {"tools": {}},
"serverInfo": {"name": "MattCP", "version": "0.4.1"} "serverInfo": {"name": "MooseCP", "version": "0.4.1"}
} }
if method == "tools/list": if method == "tools/list":

View File

@ -9,7 +9,7 @@ import config
from tools.utils import format_relative_time, ToolError, get_file_info_list, sort_file_list, get_paginated_list 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]): async def handle(args: Dict[str, Any]):
""" """

View File

@ -4,7 +4,7 @@ from pathlib import Path
from typing import Any, Dict, List, Set from typing import Any, Dict, List, Set
from tools.utils import ToolError, parse_indices from tools.utils import ToolError, parse_indices
logger = logging.getLogger("MattCP") logger = logging.getLogger("MooseCP")
async def handle(args: Dict[str, Any]): async def handle(args: Dict[str, Any]):
""" """

View File

@ -3,7 +3,7 @@ from pathlib import Path
from typing import Any, Dict from typing import Any, Dict
from tools.utils import format_relative_time, ToolError, get_file_info_list, sort_file_list 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]): async def handle(args: Dict[str, Any]):
""" """

View File

@ -10,7 +10,7 @@ import config
from tools.utils import format_relative_time, ToolError, get_file_info_list, sort_file_list, parse_indices 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): def calculate_patch_dimensions(orig_w: int, orig_h: int, target_tokens: int = None):
""" """

View File

@ -5,7 +5,7 @@ from pathlib import Path
from typing import Any, Dict from typing import Any, Dict
from tools.utils import ToolError from tools.utils import ToolError
logger = logging.getLogger("MattCP") logger = logging.getLogger("MooseCP")
async def handle(args: Dict[str, Any]): async def handle(args: Dict[str, Any]):
""" """

View File

@ -4,7 +4,7 @@ from typing import Any, Dict
from PIL import Image from PIL import Image
from tools.utils import ToolError from tools.utils import ToolError
logger = logging.getLogger("MattCP") logger = logging.getLogger("MooseCP")
async def handle(args: Dict[str, Any]): async def handle(args: Dict[str, Any]):
""" """