Option 1 - Add a .mcp.json file to your project root with this content:
Try the Weaviate Docs MCP like this:
{
"mcpServers": {
"weaviate-docs": {
"type": "http",
"url": "https://weaviate-docs-mcp-3hx7rjpxua-uc.a.run.app/mcp"| { | |
| "options": { | |
| "hide_panel_titles": false, | |
| "hide_panel_borders": false, | |
| "use_margins": true, | |
| "auto_apply_filters": true, | |
| "sync_colors": false, | |
| "sync_cursor": true, | |
| "sync_tooltips": false | |
| }, |
| """ | |
| End-to-End Weaviate Example: E-Commerce Product Collection | |
| This script demonstrates: | |
| 1. Connecting to Weaviate Cloud | |
| 2. Creating a collection with RQ quantization and alias | |
| 3. Importing data with batching | |
| 4. Querying with the traditional Weaviate client | |
| 5. Querying with the Query Agent | |
| """ |
Option 1 - Add a .mcp.json file to your project root with this content:
Try the Weaviate Docs MCP like this:
{
"mcpServers": {
"weaviate-docs": {
"type": "http",
"url": "https://weaviate-docs-mcp-3hx7rjpxua-uc.a.run.app/mcp"| import weaviate | |
| from weaviate.collections import Collection | |
| from weaviate.collections.classes.types import GeoCoordinate | |
| from tqdm import tqdm | |
| from typing import List | |
| import os | |
| import json | |
| from datetime import date, datetime | |
| client = weaviate.connect_to_wcs( |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>EnvironmentVariables</key> | |
| <dict> | |
| <key>PATH</key> | |
| <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin</string> | |
| </dict> | |
| <key>ExitTimeOut</key> |
| yr_ranges = None | |
| if len(sys.argv) < 3: | |
| logger.info(f'Season year arguments not provided') | |
| else: | |
| try: | |
| if 2040 > int(sys.argv[1]) > 1980 and 2040 > int(sys.argv[2]) > 1980: | |
| yr_ranges = [int(sys.argv[1]), int(sys.argv[2])] | |
| else: | |
| logger.error(f'The arguments should season years (e.g. 2021 2020) when data is available') | |
| except: |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>EnvironmentVariables</key> | |
| <dict> | |
| <key>PATH</key> | |
| <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin</string> | |
| </dict> | |
| <key>KeepAlive</key> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>EnvironmentVariables</key> | |
| <dict> | |
| <key>PATH</key> | |
| <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin</string> | |
| </dict> | |
| <key>Label</key> |
| for gm_id in gm_ids: | |
| shot_blot_dfs = list() | |
| gm_df = playoffs_df[playoffs_df.GAME_ID == gm_id] | |
| game_date = gm_df["realtime_dt"].min().date() | |
| game_date_str = f"{game_date.day}_{game_date.strftime('%b')}_{game_date.strftime('%Y')}" | |
| tm_ids = gm_df.teamId.unique() | |
| tm_abvs = [teams.find_team_name_by_id(tm_id)['abbreviation'] for tm_id in tm_ids] | |
| for tm_id in tm_ids: | |
| tmp_dfs = list() | |
| tm = teams.find_team_name_by_id(tm_id) |