DaVinci MCP Professional
v3.0.0
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
"""
2
MCP resources for DaVinci Resolve integration.
3
"""
4
5
from
typing
import
List, cast
6
7
import
mcp.types
as
types
8
from
pydantic
import
AnyUrl
9
10
11
def
get_all_resources
() -> List[types.Resource]:
12
"""Get all available MCP resources."""
13
return
[
14
# System resources
15
types.Resource(
16
uri=cast(AnyUrl,
"resolve://version"
),
17
name=
"DaVinci Resolve Version"
,
18
description=
"Current version of DaVinci Resolve"
,
19
mimeType=
"text/plain"
,
20
),
21
types.Resource(
22
uri=cast(AnyUrl,
"resolve://current-page"
),
23
name=
"Current Page"
,
24
description=
"The currently active page in DaVinci Resolve"
,
25
mimeType=
"text/plain"
,
26
),
27
# Project resources
28
types.Resource(
29
uri=cast(AnyUrl,
"resolve://projects"
),
30
name=
"Available Projects"
,
31
description=
"List of all available projects in the current database"
,
32
mimeType=
"application/json"
,
33
),
34
types.Resource(
35
uri=cast(AnyUrl,
"resolve://current-project"
),
36
name=
"Current Project"
,
37
description=
"Name of the currently open project"
,
38
mimeType=
"text/plain"
,
39
),
40
# Timeline resources
41
types.Resource(
42
uri=cast(AnyUrl,
"resolve://timelines"
),
43
name=
"Available Timelines"
,
44
description=
"List of all timelines in the current project"
,
45
mimeType=
"application/json"
,
46
),
47
types.Resource(
48
uri=cast(AnyUrl,
"resolve://current-timeline"
),
49
name=
"Current Timeline"
,
50
description=
"Name of the current timeline"
,
51
mimeType=
"text/plain"
,
52
),
53
# Media resources
54
types.Resource(
55
uri=cast(AnyUrl,
"resolve://media-clips"
),
56
name=
"Media Pool Clips"
,
57
description=
"List of all clips in the media pool"
,
58
mimeType=
"application/json"
,
59
),
60
]
davinci_mcp.resources.get_all_resources
List[types.Resource] get_all_resources()
Definition
__init__.py:11
davinci_mcp
resources
__init__.py
Generated by
1.16.1