Skip to content

Commit 0708c3e

Browse files
committed
Added new annotations to tools for mcp-neo4j-cloud-aura-api
1 parent 00294d3 commit 0708c3e

File tree

3 files changed

+79
-6
lines changed

3 files changed

+79
-6
lines changed

servers/mcp-neo4j-cloud-aura-api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "MCP Neo4j Aura Database Instance Manager"
55
readme = "README.md"
66
requires-python = ">=3.10"
77
dependencies = [
8-
"mcp>=0.10.0",
8+
"mcp>=1.6.0",
99
"requests>=2.31.0",
1010
]
1111

servers/mcp-neo4j-cloud-aura-api/src/mcp_neo4j_aura_manager/server.py

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,12 @@ async def handle_list_tools() -> List[types.Tool]:
394394
types.Tool(
395395
name="list_instances",
396396
description="List all Neo4j Aura database instances",
397+
annotations={
398+
"destructiveHint": False,
399+
"idempotentHint": True,
400+
"readOnlyHint": True,
401+
"title": "List all Neo4j Aura database instances"
402+
},
397403
inputSchema={
398404
"type": "object",
399405
"properties": {},
@@ -402,6 +408,12 @@ async def handle_list_tools() -> List[types.Tool]:
402408
types.Tool(
403409
name="get_instance_details",
404410
description="Get details for one or more Neo4j Aura instances by ID, including status, region, memory, storage",
411+
annotations={
412+
"destructiveHint": False,
413+
"idempotentHint": True,
414+
"readOnlyHint": True,
415+
"title": "Get instance details"
416+
},
405417
inputSchema={
406418
"type": "object",
407419
"properties": {
@@ -419,6 +431,12 @@ async def handle_list_tools() -> List[types.Tool]:
419431
types.Tool(
420432
name="get_instance_by_name",
421433
description="Find a Neo4j Aura instance by name and returns the details including the id",
434+
annotations={
435+
"destructiveHint": False,
436+
"idempotentHint": True,
437+
"readOnlyHint": True,
438+
"title": "Find instance by name"
439+
},
422440
inputSchema={
423441
"type": "object",
424442
"properties": {
@@ -433,6 +451,12 @@ async def handle_list_tools() -> List[types.Tool]:
433451
types.Tool(
434452
name="create_instance",
435453
description="Create a new Neo4j Aura database instance",
454+
annotations={
455+
"destructiveHint": False,
456+
"idempotentHint": False,
457+
"readOnlyHint": False,
458+
"title": "Create instance"
459+
},
436460
inputSchema={
437461
"type": "object",
438462
"properties": {
@@ -485,6 +509,12 @@ async def handle_list_tools() -> List[types.Tool]:
485509
types.Tool(
486510
name="update_instance_name",
487511
description="Update the name of a Neo4j Aura instance",
512+
annotations={
513+
"destructiveHint": False,
514+
"idempotentHint": True,
515+
"readOnlyHint": False,
516+
"title": "Update instance name"
517+
},
488518
inputSchema={
489519
"type": "object",
490520
"properties": {
@@ -503,6 +533,12 @@ async def handle_list_tools() -> List[types.Tool]:
503533
types.Tool(
504534
name="update_instance_memory",
505535
description="Update the memory allocation of a Neo4j Aura instance",
536+
annotations={
537+
"destructiveHint": False,
538+
"idempotentHint": True,
539+
"readOnlyHint": False,
540+
"title": "Update instance memory"
541+
},
506542
inputSchema={
507543
"type": "object",
508544
"properties": {
@@ -521,6 +557,12 @@ async def handle_list_tools() -> List[types.Tool]:
521557
types.Tool(
522558
name="update_instance_vector_optimization",
523559
description="Update the vector optimization setting of a Neo4j Aura instance",
560+
annotations={
561+
"destructiveHint": False,
562+
"idempotentHint": True,
563+
"readOnlyHint": False,
564+
"title": "Update instance vector optimization"
565+
},
524566
inputSchema={
525567
"type": "object",
526568
"properties": {
@@ -539,6 +581,12 @@ async def handle_list_tools() -> List[types.Tool]:
539581
types.Tool(
540582
name="pause_instance",
541583
description="Pause a Neo4j Aura database instance",
584+
annotations={
585+
"destructiveHint": False,
586+
"idempotentHint": False,
587+
"readOnlyHint": False,
588+
"title": "Pause instance"
589+
},
542590
inputSchema={
543591
"type": "object",
544592
"properties": {
@@ -553,6 +601,12 @@ async def handle_list_tools() -> List[types.Tool]:
553601
types.Tool(
554602
name="resume_instance",
555603
description="Resume a paused Neo4j Aura database instance",
604+
annotations={
605+
"destructiveHint": False,
606+
"idempotentHint": False,
607+
"readOnlyHint": False,
608+
"title": "Resume instance"
609+
},
556610
inputSchema={
557611
"type": "object",
558612
"properties": {
@@ -567,6 +621,12 @@ async def handle_list_tools() -> List[types.Tool]:
567621
types.Tool(
568622
name="list_tenants",
569623
description="List all Neo4j Aura tenants/projects",
624+
annotations={
625+
"destructiveHint": False,
626+
"idempotentHint": True,
627+
"readOnlyHint": True,
628+
"title": "List tenants"
629+
},
570630
inputSchema={
571631
"type": "object",
572632
"properties": {},
@@ -575,6 +635,12 @@ async def handle_list_tools() -> List[types.Tool]:
575635
types.Tool(
576636
name="get_tenant_details",
577637
description="Get details for a specific Neo4j Aura tenant/project",
638+
annotations={
639+
"destructiveHint": False,
640+
"idempotentHint": True,
641+
"readOnlyHint": True,
642+
"title": "Get tenant details"
643+
},
578644
inputSchema={
579645
"type": "object",
580646
"properties": {
@@ -589,6 +655,12 @@ async def handle_list_tools() -> List[types.Tool]:
589655
types.Tool(
590656
name="delete_instance",
591657
description="Delete a Neo4j Aura database instance",
658+
annotations={
659+
"destructiveHint": True,
660+
"idempotentHint": False,
661+
"readOnlyHint": False,
662+
"title": "Delete instance"
663+
},
592664
inputSchema={
593665
"type": "object",
594666
"properties": {

servers/mcp-neo4j-cloud-aura-api/uv.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)