mirror of
https://github.com/dnlbauer/cordra-mcp.git
synced 2026-09-10 13:45:30 +00:00
fix: update project name to 'cordra-mcp' in configuration files
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[project]
|
||||
name = "mcp-cordra"
|
||||
name = "cordra-mcp"
|
||||
version = "0.1.0"
|
||||
description = "MCP server for Cordra digital object repository"
|
||||
authors = [
|
||||
@@ -26,7 +26,7 @@ dev = [
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
mcp-cordra = "mcp_cordra.server:main"
|
||||
cordra-mcp = "mcp_cordra.server:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
|
||||
@@ -16,7 +16,7 @@ from .client import (
|
||||
from .config import CordraConfig
|
||||
|
||||
# Initialize the MCP server
|
||||
mcp = FastMCP("mcp-cordra")
|
||||
mcp = FastMCP("cordra-mcp")
|
||||
|
||||
# Initialize Cordra client at startup
|
||||
config = CordraConfig()
|
||||
@@ -87,8 +87,10 @@ async def register_schema_resources() -> None:
|
||||
continue
|
||||
|
||||
logger.info(f"Registering schema resource for cordra type {schema_name}")
|
||||
|
||||
async def schema_fn(name: str = schema_name) -> str:
|
||||
return await create_schema_resource(name)
|
||||
|
||||
mcp.add_resource(
|
||||
FunctionResource.from_function(
|
||||
uri=f"cordra://schemas/{schema_name}",
|
||||
Reference in New Issue
Block a user