Rename
This commit is contained in:
parent
05e70a7fc4
commit
f05a662414
@ -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.**
|
||||
|
||||
2
main.py
2
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()
|
||||
|
||||
|
||||
@ -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":
|
||||
|
||||
@ -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]):
|
||||
"""
|
||||
|
||||
@ -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]):
|
||||
"""
|
||||
|
||||
@ -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]):
|
||||
"""
|
||||
|
||||
@ -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):
|
||||
"""
|
||||
|
||||
@ -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]):
|
||||
"""
|
||||
|
||||
@ -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]):
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user