aeonshift commited on
Commit
a9e823d
·
verified ·
1 Parent(s): 857da48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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.ToolDefinition(
67
  name="list_airtable_records",
68
  description="Lists all records in the specified Airtable table",
69
- input_schema={},
70
- output_schema={"type": "string"}
71
  ),
72
- mcp_types.ToolDefinition(
73
  name="create_airtable_record",
74
  description="Creates a new record in the specified Airtable table",
75
- input_schema={"record_data": {"type": "object"}},
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={