mirror of
https://github.com/dnlbauer/cordra-mcp.git
synced 2026-09-11 06:05:29 +00:00
fix: update project name to 'cordra-mcp' in configuration files
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
@@ -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}",
|
||||||
Reference in New Issue
Block a user