DaVinci MCP Professional v2.1.1
A modern, professional Model Context Protocol server for DaVinci Resolve integration
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""
2MCP resources for DaVinci Resolve integration.
3"""
4
5from typing import List
6import mcp.types as types
7
8
9def get_all_resources() -> List[types.Resource]:
10 """Get all available MCP resources."""
11 return [
12 # System resources
13 types.Resource(
14 uri="resolve://version",
15 name="DaVinci Resolve Version",
16 description="Current version of DaVinci Resolve",
17 mimeType="text/plain"
18 ),
19
20 types.Resource(
21 uri="resolve://current-page",
22 name="Current Page",
23 description="The currently active page in DaVinci Resolve",
24 mimeType="text/plain"
25 ),
26
27 # Project resources
28 types.Resource(
29 uri="resolve://projects",
30 name="Available Projects",
31 description="List of all available projects in the current database",
32 mimeType="application/json"
33 ),
34
35 types.Resource(
36 uri="resolve://current-project",
37 name="Current Project",
38 description="Name of the currently open project",
39 mimeType="text/plain"
40 ),
41
42 # Timeline resources
43 types.Resource(
44 uri="resolve://timelines",
45 name="Available Timelines",
46 description="List of all timelines in the current project",
47 mimeType="application/json"
48 ),
49
50 types.Resource(
51 uri="resolve://current-timeline",
52 name="Current Timeline",
53 description="Name of the current timeline",
54 mimeType="text/plain"
55 ),
56
57 # Media resources
58 types.Resource(
59 uri="resolve://media-clips",
60 name="Media Pool Clips",
61 description="List of all clips in the media pool",
62 mimeType="application/json"
63 ),
64 ]
List[types.Resource] get_all_resources()
Definition __init__.py:9