Skip to content

Commit c1cb9dd

Browse files
authored
introduce category (#411)
1 parent e75ae03 commit c1cb9dd

59 files changed

Lines changed: 1795 additions & 288 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mcp_servers/affinity/server.py

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ async def list_tools() -> list[types.Tool]:
102102
"type": "object",
103103
"properties": {},
104104
},
105+
annotations=types.ToolAnnotations(
106+
**{"category": "AFFINITY_USER"}
107+
),
105108
),
106109
# Lists
107110
types.Tool(
@@ -135,6 +138,9 @@ async def list_tools() -> list[types.Tool]:
135138
},
136139
},
137140
},
141+
annotations=types.ToolAnnotations(
142+
**{"category": "AFFINITY_LIST"}
143+
),
138144
),
139145
types.Tool(
140146
name="affinity_get_metadata_on_all_lists",
@@ -152,6 +158,9 @@ async def list_tools() -> list[types.Tool]:
152158
},
153159
},
154160
},
161+
annotations=types.ToolAnnotations(
162+
**{"category": "AFFINITY_LIST"}
163+
),
155164
),
156165
types.Tool(
157166
name="affinity_get_metadata_on_a_single_list",
@@ -166,6 +175,9 @@ async def list_tools() -> list[types.Tool]:
166175
},
167176
},
168177
},
178+
annotations=types.ToolAnnotations(
179+
**{"category": "AFFINITY_LIST"}
180+
),
169181
),
170182
types.Tool(
171183
name="affinity_get_metadata_on_a_single_list_fields",
@@ -188,6 +200,9 @@ async def list_tools() -> list[types.Tool]:
188200
},
189201
},
190202
},
203+
annotations=types.ToolAnnotations(
204+
**{"category": "AFFINITY_LIST"}
205+
),
191206
),
192207
types.Tool(
193208
name="affinity_get_a_single_list_entry_on_a_list",
@@ -216,6 +231,9 @@ async def list_tools() -> list[types.Tool]:
216231
},
217232
},
218233
},
234+
annotations=types.ToolAnnotations(
235+
**{"category": "AFFINITY_LIST"}
236+
),
219237
),
220238
# Persons
221239
types.Tool(
@@ -249,6 +267,9 @@ async def list_tools() -> list[types.Tool]:
249267
},
250268
},
251269
},
270+
annotations=types.ToolAnnotations(
271+
**{"category": "AFFINITY_PERSON"}
272+
),
252273
),
253274
types.Tool(
254275
name="affinity_get_single_person",
@@ -273,6 +294,9 @@ async def list_tools() -> list[types.Tool]:
273294
},
274295
},
275296
},
297+
annotations=types.ToolAnnotations(
298+
**{"category": "AFFINITY_PERSON"}
299+
),
276300
),
277301
types.Tool(
278302
name="affinity_get_person_fields_metadata",
@@ -290,6 +314,9 @@ async def list_tools() -> list[types.Tool]:
290314
},
291315
},
292316
},
317+
annotations=types.ToolAnnotations(
318+
**{"category": "AFFINITY_PERSON"}
319+
),
293320
),
294321
types.Tool(
295322
name="affinity_get_person_lists",
@@ -312,6 +339,9 @@ async def list_tools() -> list[types.Tool]:
312339
},
313340
},
314341
},
342+
annotations=types.ToolAnnotations(
343+
**{"category": "AFFINITY_PERSON"}
344+
),
315345
),
316346
types.Tool(
317347
name="affinity_get_person_list_entries",
@@ -334,6 +364,9 @@ async def list_tools() -> list[types.Tool]:
334364
},
335365
},
336366
},
367+
annotations=types.ToolAnnotations(
368+
**{"category": "AFFINITY_PERSON"}
369+
),
337370
),
338371
# Companies
339372
types.Tool(
@@ -367,6 +400,9 @@ async def list_tools() -> list[types.Tool]:
367400
},
368401
},
369402
},
403+
annotations=types.ToolAnnotations(
404+
**{"category": "AFFINITY_COMPANY"}
405+
),
370406
),
371407
types.Tool(
372408
name="affinity_get_single_company",
@@ -391,6 +427,9 @@ async def list_tools() -> list[types.Tool]:
391427
},
392428
},
393429
},
430+
annotations=types.ToolAnnotations(
431+
**{"category": "AFFINITY_COMPANY"}
432+
),
394433
),
395434
types.Tool(
396435
name="affinity_get_company_fields_metadata",
@@ -408,6 +447,9 @@ async def list_tools() -> list[types.Tool]:
408447
},
409448
},
410449
},
450+
annotations=types.ToolAnnotations(
451+
**{"category": "AFFINITY_COMPANY"}
452+
),
411453
),
412454
types.Tool(
413455
name="affinity_get_company_lists",
@@ -430,6 +472,9 @@ async def list_tools() -> list[types.Tool]:
430472
},
431473
},
432474
},
475+
annotations=types.ToolAnnotations(
476+
**{"category": "AFFINITY_COMPANY"}
477+
),
433478
),
434479
types.Tool(
435480
name="affinity_get_company_list_entries",
@@ -452,6 +497,9 @@ async def list_tools() -> list[types.Tool]:
452497
},
453498
},
454499
},
500+
annotations=types.ToolAnnotations(
501+
**{"category": "AFFINITY_COMPANY"}
502+
),
455503
),
456504
# Opportunities
457505
types.Tool(
@@ -475,6 +523,9 @@ async def list_tools() -> list[types.Tool]:
475523
},
476524
},
477525
},
526+
annotations=types.ToolAnnotations(
527+
**{"category": "AFFINITY_OPPORTUNITY"}
528+
),
478529
),
479530
types.Tool(
480531
name="affinity_get_single_opportunity",
@@ -489,6 +540,9 @@ async def list_tools() -> list[types.Tool]:
489540
},
490541
},
491542
},
543+
annotations=types.ToolAnnotations(
544+
**{"category": "AFFINITY_OPPORTUNITY"}
545+
),
492546
),
493547
# Search Tools
494548
types.Tool(
@@ -527,6 +581,9 @@ async def list_tools() -> list[types.Tool]:
527581
},
528582
},
529583
},
584+
annotations=types.ToolAnnotations(
585+
**{"category": "AFFINITY_PERSON"}
586+
),
530587
),
531588
types.Tool(
532589
name="affinity_search_organizations",
@@ -560,6 +617,9 @@ async def list_tools() -> list[types.Tool]:
560617
},
561618
},
562619
},
620+
annotations=types.ToolAnnotations(
621+
**{"category": "AFFINITY_ORGANIZATION"}
622+
),
563623
),
564624
types.Tool(
565625
name="affinity_search_opportunities",
@@ -581,6 +641,9 @@ async def list_tools() -> list[types.Tool]:
581641
},
582642
},
583643
},
644+
annotations=types.ToolAnnotations(
645+
**{"category": "AFFINITY_OPPORTUNITY"}
646+
),
584647
),
585648
# Notes
586649
types.Tool(
@@ -611,6 +674,9 @@ async def list_tools() -> list[types.Tool]:
611674
},
612675
},
613676
},
677+
annotations=types.ToolAnnotations(
678+
**{"category": "AFFINITY_NOTE"}
679+
),
614680
),
615681
types.Tool(
616682
name="affinity_get_specific_note",
@@ -625,6 +691,9 @@ async def list_tools() -> list[types.Tool]:
625691
},
626692
},
627693
},
694+
annotations=types.ToolAnnotations(
695+
**{"category": "AFFINITY_NOTE"}
696+
),
628697
),
629698
]
630699

mcp_servers/airtable/server.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ async def list_tools() -> list[types.Tool]:
109109
"properties": {},
110110
"required": [],
111111
},
112+
annotations=types.ToolAnnotations(
113+
**{"category": "AIRTABLE_BASE"}
114+
),
112115
),
113116
types.Tool(
114117
name="airtable_list_tables_info",
@@ -123,6 +126,9 @@ async def list_tools() -> list[types.Tool]:
123126
},
124127
"required": ["base_id"],
125128
},
129+
annotations=types.ToolAnnotations(
130+
**{"category": "AIRTABLE_TABLE"}
131+
),
126132
),
127133
types.Tool(
128134
name="airtable_create_table",
@@ -150,6 +156,9 @@ async def list_tools() -> list[types.Tool]:
150156
},
151157
"required": ["base_id", "name", "fields"],
152158
},
159+
annotations=types.ToolAnnotations(
160+
**{"category": "AIRTABLE_TABLE"}
161+
),
153162
),
154163
types.Tool(
155164
name="airtable_update_table",
@@ -176,6 +185,9 @@ async def list_tools() -> list[types.Tool]:
176185
},
177186
"required": ["base_id", "table_id"],
178187
},
188+
annotations=types.ToolAnnotations(
189+
**{"category": "AIRTABLE_TABLE"}
190+
),
179191
),
180192
types.Tool(
181193
name="airtable_create_field",
@@ -210,6 +222,9 @@ async def list_tools() -> list[types.Tool]:
210222
},
211223
"required": ["base_id", "table_id", "name", "type"],
212224
},
225+
annotations=types.ToolAnnotations(
226+
**{"category": "AIRTABLE_FIELD"}
227+
),
213228
),
214229
types.Tool(
215230
name="airtable_update_field",
@@ -240,6 +255,9 @@ async def list_tools() -> list[types.Tool]:
240255
},
241256
"required": ["base_id", "table_id", "field_id"],
242257
},
258+
annotations=types.ToolAnnotations(
259+
**{"category": "AIRTABLE_FIELD"}
260+
),
243261
),
244262
types.Tool(
245263
name="airtable_list_records",
@@ -293,6 +311,9 @@ async def list_tools() -> list[types.Tool]:
293311
},
294312
"required": ["base_id", "table_id"],
295313
},
314+
annotations=types.ToolAnnotations(
315+
**{"category": "AIRTABLE_RECORD"}
316+
),
296317
),
297318
types.Tool(
298319
name="airtable_get_record",
@@ -315,6 +336,9 @@ async def list_tools() -> list[types.Tool]:
315336
},
316337
"required": ["base_id", "table_id", "record_id"],
317338
},
339+
annotations=types.ToolAnnotations(
340+
**{"category": "AIRTABLE_RECORD"}
341+
),
318342
),
319343
types.Tool(
320344
name="airtable_create_records",
@@ -346,6 +370,9 @@ async def list_tools() -> list[types.Tool]:
346370
},
347371
"required": ["base_id", "table_id", "records"],
348372
},
373+
annotations=types.ToolAnnotations(
374+
**{"category": "AIRTABLE_RECORD"}
375+
),
349376
),
350377
types.Tool(
351378
name="airtable_update_records",
@@ -388,6 +415,9 @@ async def list_tools() -> list[types.Tool]:
388415
},
389416
"required": ["base_id", "table_id", "records"],
390417
},
418+
annotations=types.ToolAnnotations(
419+
**{"category": "AIRTABLE_RECORD"}
420+
),
391421
),
392422
types.Tool(
393423
name="airtable_delete_records",
@@ -411,6 +441,9 @@ async def list_tools() -> list[types.Tool]:
411441
},
412442
"required": ["base_id", "table_id", "record_ids"],
413443
},
444+
annotations=types.ToolAnnotations(
445+
**{"category": "AIRTABLE_RECORD"}
446+
),
414447
),
415448
]
416449

0 commit comments

Comments
 (0)