fix: update project name to 'cordra-mcp' in configuration files

This commit is contained in:
Daniel Bauer
2025-06-30 11:46:02 +02:00
parent 9901f51f06
commit addfea8698
7 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
[project] [project]
name = "mcp-cordra" name = "cordra-mcp"
version = "0.1.0" version = "0.1.0"
description = "MCP server for Cordra digital object repository" description = "MCP server for Cordra digital object repository"
authors = [ authors = [
@@ -26,7 +26,7 @@ dev = [
] ]
[project.scripts] [project.scripts]
mcp-cordra = "mcp_cordra.server:main" cordra-mcp = "mcp_cordra.server:main"
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]

View File

@@ -16,7 +16,7 @@ from .client import (
from .config import CordraConfig from .config import CordraConfig
# Initialize the MCP server # Initialize the MCP server
mcp = FastMCP("mcp-cordra") mcp = FastMCP("cordra-mcp")
# Initialize Cordra client at startup # Initialize Cordra client at startup
config = CordraConfig() config = CordraConfig()
@@ -87,8 +87,10 @@ async def register_schema_resources() -> None:
continue continue
logger.info(f"Registering schema resource for cordra type {schema_name}") logger.info(f"Registering schema resource for cordra type {schema_name}")
async def schema_fn(name: str = schema_name) -> str: async def schema_fn(name: str = schema_name) -> str:
return await create_schema_resource(name) return await create_schema_resource(name)
mcp.add_resource( mcp.add_resource(
FunctionResource.from_function( FunctionResource.from_function(
uri=f"cordra://schemas/{schema_name}", uri=f"cordra://schemas/{schema_name}",

2
uv.lock generated
View File

@@ -314,7 +314,7 @@ cli = [
] ]
[[package]] [[package]]
name = "mcp-cordra" name = "cordra-mcp"
version = "0.1.0" version = "0.1.0"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [