ldraney-notion-mcp 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ldraney_notion_mcp-0.1.4.dist-info → ldraney_notion_mcp-0.1.5.dist-info}/METADATA +1 -1
- ldraney_notion_mcp-0.1.5.dist-info/RECORD +15 -0
- notion_mcp/tools/blocks.py +5 -9
- notion_mcp/tools/comments.py +6 -8
- notion_mcp/tools/databases.py +25 -35
- notion_mcp/tools/pages.py +19 -25
- notion_mcp/tools/search.py +6 -8
- ldraney_notion_mcp-0.1.4.dist-info/RECORD +0 -15
- {ldraney_notion_mcp-0.1.4.dist-info → ldraney_notion_mcp-0.1.5.dist-info}/WHEEL +0 -0
- {ldraney_notion_mcp-0.1.4.dist-info → ldraney_notion_mcp-0.1.5.dist-info}/entry_points.txt +0 -0
- {ldraney_notion_mcp-0.1.4.dist-info → ldraney_notion_mcp-0.1.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
notion_mcp/__init__.py,sha256=Wy2Os0Ww79mbGvySlmb9IVPW9t-oUPO246-8PppLqUI,105
|
|
2
|
+
notion_mcp/__main__.py,sha256=8iuAFwnkWnvYNFN7qLyPeNa-qlKbzQMO6b7li5yrRFU,83
|
|
3
|
+
notion_mcp/server.py,sha256=eJPqXMqo1AGVTozjWkON8ys1oe5wraiB1dmHz1wqU6M,2324
|
|
4
|
+
notion_mcp/tools/__init__.py,sha256=Dak6lGr2H_aG5SYNAfi_1lACTqwAPDAAjIyVmGja8as,496
|
|
5
|
+
notion_mcp/tools/blocks.py,sha256=c9fBMrr1LFv_2kkt13Be4R_T9kZzR67Ptik82dA0foM,3487
|
|
6
|
+
notion_mcp/tools/comments.py,sha256=OoH5hhWgmuHn94fzIemL8I7OhmOp7QnaCNTZ35qfECc,2436
|
|
7
|
+
notion_mcp/tools/databases.py,sha256=d9NF695xB-1Z8KXEYuPD-evjQUC4FonXHa_t_TxGNHw,10044
|
|
8
|
+
notion_mcp/tools/pages.py,sha256=pBQdwEB5aZc1yUulnlsVfJ1NMT5Fr-rcFeXX8mCtodM,5233
|
|
9
|
+
notion_mcp/tools/search.py,sha256=7rhAFS4ROJFqlJvFFuLiCd2KJ_qrVeidqHtSVH-v0Rs,1700
|
|
10
|
+
notion_mcp/tools/users.py,sha256=psYUJm0PT--xVfSSQA1XzBCzNewgDbmCjkF1_XTcsoE,1117
|
|
11
|
+
ldraney_notion_mcp-0.1.5.dist-info/METADATA,sha256=hKqlj4yFn03agAJ56ElkHMh1LH5pQi4WU7GH-Sz0JWw,4542
|
|
12
|
+
ldraney_notion_mcp-0.1.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
+
ldraney_notion_mcp-0.1.5.dist-info/entry_points.txt,sha256=rv-l84lsnJ83vSLGoJlfoQsc-IQHRevhU1_NiIZyI3M,62
|
|
14
|
+
ldraney_notion_mcp-0.1.5.dist-info/top_level.txt,sha256=lFXGlrgRGHEtgwNKPCohd0H0PxUReLzGdpd6YzborzM,11
|
|
15
|
+
ldraney_notion_mcp-0.1.5.dist-info/RECORD,,
|
notion_mcp/tools/blocks.py
CHANGED
|
@@ -53,15 +53,13 @@ def get_block_children(
|
|
|
53
53
|
@mcp.tool()
|
|
54
54
|
def append_block_children(
|
|
55
55
|
block_id: Annotated[str, Field(description="The UUID of the parent block to append children to")],
|
|
56
|
-
children: Annotated[str, Field(description="JSON string for a list of block objects to append
|
|
56
|
+
children: Annotated[str | list, Field(description="JSON string or array for a list of block objects to append")],
|
|
57
57
|
) -> str:
|
|
58
58
|
"""Append child blocks to a Notion block.
|
|
59
59
|
|
|
60
|
-
IMPORTANT: The children parameter must be passed as a JSON-encoded string, NOT as an object.
|
|
61
|
-
|
|
62
60
|
Args:
|
|
63
61
|
block_id: The UUID of the parent block to append children to.
|
|
64
|
-
children: JSON string for a list of block objects to append.
|
|
62
|
+
children: JSON string or array for a list of block objects to append.
|
|
65
63
|
"""
|
|
66
64
|
try:
|
|
67
65
|
result = get_client().append_block_children(
|
|
@@ -76,16 +74,14 @@ def append_block_children(
|
|
|
76
74
|
@mcp.tool()
|
|
77
75
|
def update_block(
|
|
78
76
|
block_id: Annotated[str, Field(description="The UUID of the block to update")],
|
|
79
|
-
content: Annotated[str | None, Field(description="JSON string of block properties to update. The keys depend on the block type, e.g.
|
|
77
|
+
content: Annotated[str | dict | None, Field(description="JSON string or object of block properties to update. The keys depend on the block type, e.g. {\"paragraph\": {\"rich_text\": [...]}}")] = None,
|
|
80
78
|
) -> str:
|
|
81
79
|
"""Update a Notion block.
|
|
82
80
|
|
|
83
|
-
IMPORTANT: The content parameter must be passed as a JSON-encoded string, NOT as an object.
|
|
84
|
-
|
|
85
81
|
Args:
|
|
86
82
|
block_id: The UUID of the block to update.
|
|
87
|
-
content: JSON string of block properties to update. The keys depend
|
|
88
|
-
on the block type (e.g.
|
|
83
|
+
content: JSON string or object of block properties to update. The keys depend
|
|
84
|
+
on the block type (e.g. {"paragraph": {"rich_text": [...]}}).
|
|
89
85
|
"""
|
|
90
86
|
try:
|
|
91
87
|
kwargs: dict[str, Any] = {}
|
notion_mcp/tools/comments.py
CHANGED
|
@@ -12,19 +12,17 @@ from ..server import mcp, get_client, _parse_json, _error_response
|
|
|
12
12
|
|
|
13
13
|
@mcp.tool()
|
|
14
14
|
def create_comment(
|
|
15
|
-
parent: Annotated[str, Field(description="JSON string for the parent
|
|
16
|
-
rich_text: Annotated[str, Field(description="JSON string for the rich-text content
|
|
15
|
+
parent: Annotated[str | dict, Field(description="JSON string or object for the parent, e.g. {\"page_id\": \"...\"}")],
|
|
16
|
+
rich_text: Annotated[str | list, Field(description="JSON string or array for the rich-text content, e.g. [{\"type\": \"text\", \"text\": {\"content\": \"Hello!\"}}]")],
|
|
17
17
|
discussion_id: Annotated[str | None, Field(description="UUID of an existing discussion thread to reply to. Omit to start a new top-level comment.")] = None,
|
|
18
18
|
) -> str:
|
|
19
19
|
"""Create a comment on a Notion page or block.
|
|
20
20
|
|
|
21
|
-
IMPORTANT: parent and rich_text must be passed as JSON-encoded strings, NOT as objects.
|
|
22
|
-
|
|
23
21
|
Args:
|
|
24
|
-
parent: JSON string for the parent
|
|
25
|
-
e.g.
|
|
26
|
-
rich_text: JSON string for the rich-text content
|
|
27
|
-
e.g.
|
|
22
|
+
parent: JSON string or object for the parent,
|
|
23
|
+
e.g. {"page_id": "..."}.
|
|
24
|
+
rich_text: JSON string or array for the rich-text content,
|
|
25
|
+
e.g. [{"type": "text", "text": {"content": "Hello!"}}].
|
|
28
26
|
discussion_id: Optional UUID of an existing discussion thread
|
|
29
27
|
to reply to. Omit to start a new top-level comment.
|
|
30
28
|
"""
|
notion_mcp/tools/databases.py
CHANGED
|
@@ -17,22 +17,20 @@ from ..server import mcp, get_client, _parse_json, _error_response
|
|
|
17
17
|
|
|
18
18
|
@mcp.tool()
|
|
19
19
|
def create_database(
|
|
20
|
-
parent: Annotated[str, Field(description="JSON string for the parent
|
|
21
|
-
title: Annotated[str, Field(description="JSON string for the title rich-text array, e.g.
|
|
22
|
-
initial_data_source: Annotated[str | None, Field(description="JSON string for the initial data source configuration including properties")] = None,
|
|
20
|
+
parent: Annotated[str | dict, Field(description="JSON string or object for the parent, e.g. {\"type\": \"page_id\", \"page_id\": \"...\"}")],
|
|
21
|
+
title: Annotated[str | list, Field(description="JSON string or array for the title rich-text array, e.g. [{\"type\": \"text\", \"text\": {\"content\": \"My DB\"}}]")],
|
|
22
|
+
initial_data_source: Annotated[str | dict | None, Field(description="JSON string or object for the initial data source configuration including properties")] = None,
|
|
23
23
|
) -> str:
|
|
24
24
|
"""Create a new Notion database.
|
|
25
25
|
|
|
26
26
|
In Notion API v2025-09-03, database properties live on data sources.
|
|
27
27
|
Pass properties inside initial_data_source.properties.
|
|
28
28
|
|
|
29
|
-
IMPORTANT: All structured parameters must be passed as JSON-encoded strings, NOT as objects.
|
|
30
|
-
|
|
31
29
|
Args:
|
|
32
|
-
parent: JSON string for the parent
|
|
33
|
-
title: JSON string for the title rich-text array,
|
|
34
|
-
e.g.
|
|
35
|
-
initial_data_source: Optional JSON string for the initial data source
|
|
30
|
+
parent: JSON string or object for the parent, e.g. {"type": "page_id", "page_id": "..."}.
|
|
31
|
+
title: JSON string or array for the title rich-text array,
|
|
32
|
+
e.g. [{"type": "text", "text": {"content": "My DB"}}].
|
|
33
|
+
initial_data_source: Optional JSON string or object for the initial data source
|
|
36
34
|
configuration including properties.
|
|
37
35
|
"""
|
|
38
36
|
try:
|
|
@@ -68,21 +66,19 @@ def get_database(
|
|
|
68
66
|
@mcp.tool()
|
|
69
67
|
def update_database(
|
|
70
68
|
database_id: Annotated[str, Field(description="The UUID of the database to update")],
|
|
71
|
-
title: Annotated[str | None, Field(description="JSON string for the new title rich-text array
|
|
72
|
-
description: Annotated[str | None, Field(description="JSON string for the description rich-text array
|
|
73
|
-
icon: Annotated[str | None, Field(description="JSON string for the database icon, e.g.
|
|
74
|
-
cover: Annotated[str | None, Field(description="JSON string for the database cover, e.g.
|
|
69
|
+
title: Annotated[str | list | None, Field(description="JSON string or array for the new title rich-text array")] = None,
|
|
70
|
+
description: Annotated[str | list | None, Field(description="JSON string or array for the description rich-text array")] = None,
|
|
71
|
+
icon: Annotated[str | dict | None, Field(description="JSON string or object for the database icon, e.g. {\"type\": \"emoji\", \"emoji\": \"...\"}")] = None,
|
|
72
|
+
cover: Annotated[str | dict | None, Field(description="JSON string or object for the database cover, e.g. {\"type\": \"external\", \"external\": {\"url\": \"https://...\"}}")] = None,
|
|
75
73
|
) -> str:
|
|
76
74
|
"""Update a Notion database.
|
|
77
75
|
|
|
78
|
-
IMPORTANT: All structured parameters must be passed as JSON-encoded strings, NOT as objects.
|
|
79
|
-
|
|
80
76
|
Args:
|
|
81
77
|
database_id: The UUID of the database to update.
|
|
82
|
-
title: Optional JSON string for the new title rich-text array.
|
|
83
|
-
description: Optional JSON string for the description rich-text array.
|
|
84
|
-
icon: Optional JSON string for the database icon.
|
|
85
|
-
cover: Optional JSON string for the database cover.
|
|
78
|
+
title: Optional JSON string or array for the new title rich-text array.
|
|
79
|
+
description: Optional JSON string or array for the description rich-text array.
|
|
80
|
+
icon: Optional JSON string or object for the database icon.
|
|
81
|
+
cover: Optional JSON string or object for the database cover.
|
|
86
82
|
"""
|
|
87
83
|
try:
|
|
88
84
|
kwargs: dict[str, Any] = {}
|
|
@@ -119,8 +115,8 @@ def archive_database(
|
|
|
119
115
|
@mcp.tool()
|
|
120
116
|
def query_database(
|
|
121
117
|
database_id: Annotated[str, Field(description="The UUID of the database to query")],
|
|
122
|
-
filter: Annotated[str | None, Field(description="JSON string for a filter
|
|
123
|
-
sorts: Annotated[str | None, Field(description="JSON string for a list of sort objects, e.g.
|
|
118
|
+
filter: Annotated[str | dict | None, Field(description="JSON string or object for a filter, e.g. {\"property\": \"Status\", \"select\": {\"equals\": \"Done\"}}")] = None,
|
|
119
|
+
sorts: Annotated[str | list | None, Field(description="JSON string or array for a list of sort objects, e.g. [{\"property\": \"Created\", \"direction\": \"descending\"}]")] = None,
|
|
124
120
|
start_cursor: Annotated[str | None, Field(description="Cursor for pagination")] = None,
|
|
125
121
|
page_size: Annotated[int | None, Field(description="Number of results per page")] = None,
|
|
126
122
|
) -> str:
|
|
@@ -129,12 +125,10 @@ def query_database(
|
|
|
129
125
|
Automatically resolves the first data source and queries it.
|
|
130
126
|
If you already know the data source ID, use query_data_source instead.
|
|
131
127
|
|
|
132
|
-
IMPORTANT: filter and sorts must be passed as JSON-encoded strings, NOT as objects.
|
|
133
|
-
|
|
134
128
|
Args:
|
|
135
129
|
database_id: The UUID of the database to query.
|
|
136
|
-
filter: Optional JSON string for a filter
|
|
137
|
-
sorts: Optional JSON string for a list of sort objects.
|
|
130
|
+
filter: Optional JSON string or object for a filter.
|
|
131
|
+
sorts: Optional JSON string or array for a list of sort objects.
|
|
138
132
|
start_cursor: Optional cursor for pagination.
|
|
139
133
|
page_size: Optional number of results per page.
|
|
140
134
|
"""
|
|
@@ -175,15 +169,13 @@ def get_data_source(
|
|
|
175
169
|
@mcp.tool()
|
|
176
170
|
def update_data_source(
|
|
177
171
|
data_source_id: Annotated[str, Field(description="The UUID of the data source to update")],
|
|
178
|
-
properties: Annotated[str | None, Field(description="JSON string for properties to update
|
|
172
|
+
properties: Annotated[str | dict | None, Field(description="JSON string or object for properties to update")] = None,
|
|
179
173
|
) -> str:
|
|
180
174
|
"""Update a Notion data source.
|
|
181
175
|
|
|
182
|
-
IMPORTANT: The properties parameter must be passed as a JSON-encoded string, NOT as an object.
|
|
183
|
-
|
|
184
176
|
Args:
|
|
185
177
|
data_source_id: The UUID of the data source to update.
|
|
186
|
-
properties: Optional JSON string for properties to update.
|
|
178
|
+
properties: Optional JSON string or object for properties to update.
|
|
187
179
|
"""
|
|
188
180
|
try:
|
|
189
181
|
kwargs: dict[str, Any] = {}
|
|
@@ -198,19 +190,17 @@ def update_data_source(
|
|
|
198
190
|
@mcp.tool()
|
|
199
191
|
def query_data_source(
|
|
200
192
|
data_source_id: Annotated[str, Field(description="The UUID of the data source to query")],
|
|
201
|
-
filter: Annotated[str | None, Field(description="JSON string for a filter
|
|
202
|
-
sorts: Annotated[str | None, Field(description="JSON string for a list of sort objects, e.g.
|
|
193
|
+
filter: Annotated[str | dict | None, Field(description="JSON string or object for a filter, e.g. {\"property\": \"Status\", \"select\": {\"equals\": \"Done\"}}")] = None,
|
|
194
|
+
sorts: Annotated[str | list | None, Field(description="JSON string or array for a list of sort objects, e.g. [{\"property\": \"Created\", \"direction\": \"descending\"}]")] = None,
|
|
203
195
|
start_cursor: Annotated[str | None, Field(description="Cursor for pagination")] = None,
|
|
204
196
|
page_size: Annotated[int | None, Field(description="Number of results per page")] = None,
|
|
205
197
|
) -> str:
|
|
206
198
|
"""Query rows in a Notion data source.
|
|
207
199
|
|
|
208
|
-
IMPORTANT: filter and sorts must be passed as JSON-encoded strings, NOT as objects.
|
|
209
|
-
|
|
210
200
|
Args:
|
|
211
201
|
data_source_id: The UUID of the data source to query.
|
|
212
|
-
filter: Optional JSON string for a filter
|
|
213
|
-
sorts: Optional JSON string for a list of sort objects.
|
|
202
|
+
filter: Optional JSON string or object for a filter.
|
|
203
|
+
sorts: Optional JSON string or array for a list of sort objects.
|
|
214
204
|
start_cursor: Optional cursor for pagination.
|
|
215
205
|
page_size: Optional number of results per page.
|
|
216
206
|
"""
|
notion_mcp/tools/pages.py
CHANGED
|
@@ -12,23 +12,21 @@ from ..server import mcp, get_client, _parse_json, _error_response
|
|
|
12
12
|
|
|
13
13
|
@mcp.tool()
|
|
14
14
|
def create_page(
|
|
15
|
-
parent: Annotated[str, Field(description="JSON string for the parent
|
|
16
|
-
properties: Annotated[str, Field(description="JSON string for the page properties mapping
|
|
17
|
-
children: Annotated[str | None, Field(description="JSON string for a list of block children to append. Cannot be used together with template.")] = None,
|
|
18
|
-
template: Annotated[str | None, Field(description="JSON string for a data-source template, e.g.
|
|
15
|
+
parent: Annotated[str | dict, Field(description="JSON string or object for the parent, e.g. {\"type\": \"page_id\", \"page_id\": \"...\"}")],
|
|
16
|
+
properties: Annotated[str | dict, Field(description="JSON string or object for the page properties mapping")],
|
|
17
|
+
children: Annotated[str | list | None, Field(description="JSON string or array for a list of block children to append. Cannot be used together with template.")] = None,
|
|
18
|
+
template: Annotated[str | dict | None, Field(description="JSON string or object for a data-source template, e.g. {\"type\": \"none\"}, {\"type\": \"default\"}, or {\"type\": \"template_id\", \"template_id\": \"<uuid>\"}")] = None,
|
|
19
19
|
) -> str:
|
|
20
20
|
"""Create a new Notion page.
|
|
21
21
|
|
|
22
|
-
IMPORTANT: All structured parameters must be passed as JSON-encoded strings, NOT as objects.
|
|
23
|
-
|
|
24
22
|
Args:
|
|
25
|
-
parent: JSON string for the parent object, e.g.
|
|
26
|
-
properties: JSON string for the page properties mapping.
|
|
27
|
-
children: Optional JSON string for a list of block children to append.
|
|
23
|
+
parent: JSON string or object for the parent object, e.g. {"type": "page_id", "page_id": "..."}.
|
|
24
|
+
properties: JSON string or object for the page properties mapping.
|
|
25
|
+
children: Optional JSON string or array for a list of block children to append.
|
|
28
26
|
Cannot be used together with template.
|
|
29
|
-
template: Optional JSON string for a data-source template, e.g.
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
template: Optional JSON string or object for a data-source template, e.g.
|
|
28
|
+
{"type": "none"}, {"type": "default"}, or
|
|
29
|
+
{"type": "template_id", "template_id": "<uuid>"}.
|
|
32
30
|
"""
|
|
33
31
|
try:
|
|
34
32
|
result = get_client().create_page(
|
|
@@ -61,22 +59,20 @@ def get_page(
|
|
|
61
59
|
@mcp.tool()
|
|
62
60
|
def update_page(
|
|
63
61
|
page_id: Annotated[str, Field(description="The UUID of the page to update")],
|
|
64
|
-
properties: Annotated[str | None, Field(description="JSON string of properties to update
|
|
62
|
+
properties: Annotated[str | dict | None, Field(description="JSON string or object of properties to update")] = None,
|
|
65
63
|
erase_content: Annotated[bool | None, Field(description="If true, clears ALL block content from the page. WARNING: This is destructive and irreversible.")] = None,
|
|
66
|
-
icon: Annotated[str | None, Field(description="JSON string for the page icon, e.g.
|
|
67
|
-
cover: Annotated[str | None, Field(description="JSON string for the page cover, e.g.
|
|
64
|
+
icon: Annotated[str | dict | None, Field(description="JSON string or object for the page icon, e.g. {\"type\": \"emoji\", \"emoji\": \"...\"}")] = None,
|
|
65
|
+
cover: Annotated[str | dict | None, Field(description="JSON string or object for the page cover, e.g. {\"type\": \"external\", \"external\": {\"url\": \"https://...\"}}")] = None,
|
|
68
66
|
) -> str:
|
|
69
67
|
"""Update a Notion page's properties, icon, or cover.
|
|
70
68
|
|
|
71
|
-
IMPORTANT: All structured parameters must be passed as JSON-encoded strings, NOT as objects.
|
|
72
|
-
|
|
73
69
|
Args:
|
|
74
70
|
page_id: The UUID of the page to update.
|
|
75
|
-
properties: Optional JSON string of properties to update.
|
|
71
|
+
properties: Optional JSON string or object of properties to update.
|
|
76
72
|
erase_content: If true, clears ALL block content from the page.
|
|
77
73
|
WARNING: This is destructive and irreversible.
|
|
78
|
-
icon: Optional JSON string for the page icon.
|
|
79
|
-
cover: Optional JSON string for the page cover.
|
|
74
|
+
icon: Optional JSON string or object for the page icon.
|
|
75
|
+
cover: Optional JSON string or object for the page cover.
|
|
80
76
|
"""
|
|
81
77
|
try:
|
|
82
78
|
kwargs: dict[str, Any] = {}
|
|
@@ -115,16 +111,14 @@ def archive_page(
|
|
|
115
111
|
@mcp.tool()
|
|
116
112
|
def move_page(
|
|
117
113
|
page_id: Annotated[str, Field(description="The UUID of the page to move")],
|
|
118
|
-
parent: Annotated[str, Field(description="JSON string for the new parent
|
|
114
|
+
parent: Annotated[str | dict, Field(description="JSON string or object for the new parent, e.g. {\"type\": \"page_id\", \"page_id\": \"...\"}")],
|
|
119
115
|
) -> str:
|
|
120
116
|
"""Move a Notion page to a new parent.
|
|
121
117
|
|
|
122
|
-
IMPORTANT: The parent parameter must be passed as a JSON-encoded string, NOT as an object.
|
|
123
|
-
|
|
124
118
|
Args:
|
|
125
119
|
page_id: The UUID of the page to move.
|
|
126
|
-
parent: JSON string for the new parent object,
|
|
127
|
-
e.g.
|
|
120
|
+
parent: JSON string or object for the new parent object,
|
|
121
|
+
e.g. {"type": "page_id", "page_id": "..."}.
|
|
128
122
|
"""
|
|
129
123
|
try:
|
|
130
124
|
result = get_client().move_page(
|
notion_mcp/tools/search.py
CHANGED
|
@@ -13,21 +13,19 @@ from ..server import mcp, get_client, _parse_json, _error_response
|
|
|
13
13
|
@mcp.tool()
|
|
14
14
|
def search(
|
|
15
15
|
query: Annotated[str | None, Field(description="Text query to search for")] = None,
|
|
16
|
-
filter: Annotated[str | None, Field(description="JSON string for a filter
|
|
17
|
-
sort: Annotated[str | None, Field(description="JSON string for a sort
|
|
16
|
+
filter: Annotated[str | dict | None, Field(description="JSON string or object for a filter, e.g. {\"value\": \"page\", \"property\": \"object\"}")] = None,
|
|
17
|
+
sort: Annotated[str | dict | None, Field(description="JSON string or object for a sort, e.g. {\"direction\": \"ascending\", \"timestamp\": \"last_edited_time\"}")] = None,
|
|
18
18
|
start_cursor: Annotated[str | None, Field(description="Cursor for pagination")] = None,
|
|
19
19
|
page_size: Annotated[int | None, Field(description="Number of results per page")] = None,
|
|
20
20
|
) -> str:
|
|
21
21
|
"""Search Notion pages and databases.
|
|
22
22
|
|
|
23
|
-
IMPORTANT: filter and sort must be passed as JSON-encoded strings, NOT as objects.
|
|
24
|
-
|
|
25
23
|
Args:
|
|
26
24
|
query: Optional text query to search for.
|
|
27
|
-
filter: Optional JSON string for a filter
|
|
28
|
-
e.g.
|
|
29
|
-
sort: Optional JSON string for a sort
|
|
30
|
-
e.g.
|
|
25
|
+
filter: Optional JSON string or object for a filter,
|
|
26
|
+
e.g. {"value": "page", "property": "object"}.
|
|
27
|
+
sort: Optional JSON string or object for a sort,
|
|
28
|
+
e.g. {"direction": "ascending", "timestamp": "last_edited_time"}.
|
|
31
29
|
start_cursor: Optional cursor for pagination.
|
|
32
30
|
page_size: Optional number of results per page.
|
|
33
31
|
"""
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
notion_mcp/__init__.py,sha256=Wy2Os0Ww79mbGvySlmb9IVPW9t-oUPO246-8PppLqUI,105
|
|
2
|
-
notion_mcp/__main__.py,sha256=8iuAFwnkWnvYNFN7qLyPeNa-qlKbzQMO6b7li5yrRFU,83
|
|
3
|
-
notion_mcp/server.py,sha256=eJPqXMqo1AGVTozjWkON8ys1oe5wraiB1dmHz1wqU6M,2324
|
|
4
|
-
notion_mcp/tools/__init__.py,sha256=Dak6lGr2H_aG5SYNAfi_1lACTqwAPDAAjIyVmGja8as,496
|
|
5
|
-
notion_mcp/tools/blocks.py,sha256=4IcojENzkB4I6Z8Jku7Bc4dHq5vOHjzDWwpSWcfjw6M,3845
|
|
6
|
-
notion_mcp/tools/comments.py,sha256=HJ-mKbDlsY4Tz42xSO4Yt7yYqSy49YdrRW3Wd5lhXf0,2511
|
|
7
|
-
notion_mcp/tools/databases.py,sha256=9M7wXrnj94rq6MXbIbHqFDxZ1al8l0YXMH5BHpd_1P8,10483
|
|
8
|
-
notion_mcp/tools/pages.py,sha256=5UdwTCDCEVfQT91OA9-_aI2F3HWWYjZ-vJxqYJduZbE,5488
|
|
9
|
-
notion_mcp/tools/search.py,sha256=kgjGlHZNsQ9hrI4x-CRjvMw06CyUzVraCWyyrtFxw-g,1770
|
|
10
|
-
notion_mcp/tools/users.py,sha256=psYUJm0PT--xVfSSQA1XzBCzNewgDbmCjkF1_XTcsoE,1117
|
|
11
|
-
ldraney_notion_mcp-0.1.4.dist-info/METADATA,sha256=Tnq--EbABcEwWXFeJp999ULiizy5wpf30RRdneCMa88,4542
|
|
12
|
-
ldraney_notion_mcp-0.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
-
ldraney_notion_mcp-0.1.4.dist-info/entry_points.txt,sha256=rv-l84lsnJ83vSLGoJlfoQsc-IQHRevhU1_NiIZyI3M,62
|
|
14
|
-
ldraney_notion_mcp-0.1.4.dist-info/top_level.txt,sha256=lFXGlrgRGHEtgwNKPCohd0H0PxUReLzGdpd6YzborzM,11
|
|
15
|
-
ldraney_notion_mcp-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|