Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -63,17 +63,15 @@ async def create_record_tool(request: mcp_types.CallToolRequest):
|
|
63 |
# Create MCP server and transport
|
64 |
mcp_server = Server(
|
65 |
tools=[
|
66 |
-
mcp_types.
|
67 |
name="list_airtable_records",
|
68 |
description="Lists all records in the specified Airtable table",
|
69 |
-
|
70 |
-
output_schema={"type": "string"}
|
71 |
),
|
72 |
-
mcp_types.
|
73 |
name="create_airtable_record",
|
74 |
description="Creates a new record in the specified Airtable table",
|
75 |
-
|
76 |
-
output_schema={"type": "string"}
|
77 |
)
|
78 |
],
|
79 |
tool_handlers={
|
|
|
63 |
# Create MCP server and transport
|
64 |
mcp_server = Server(
|
65 |
tools=[
|
66 |
+
mcp_types.Tool( # Changed to Tool
|
67 |
name="list_airtable_records",
|
68 |
description="Lists all records in the specified Airtable table",
|
69 |
+
inputSchema={}
|
|
|
70 |
),
|
71 |
+
mcp_types.Tool( # Changed to Tool
|
72 |
name="create_airtable_record",
|
73 |
description="Creates a new record in the specified Airtable table",
|
74 |
+
inputSchema={"record_data": {"type": "object"}}
|
|
|
75 |
)
|
76 |
],
|
77 |
tool_handlers={
|