You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messages=[{"role": "user", "content": "Optimize my codebase, the file is \"/Users/codeflash/Downloads/codeflash-dev/codeflash/code_to_optimize/bubble_sort.py\" and the function is \"sorter\""}],
27
+
mcp_servers=[
28
+
{
29
+
"type": "url",
30
+
"url": f"{url}/mcp/",
31
+
"name": "HelpfulAssistant",
32
+
}
33
+
],
34
+
extra_headers={
35
+
"anthropic-beta": "mcp-client-2025-04-04"
36
+
}
37
+
)
38
+
39
+
print(response.content)
40
+
41
+
42
+
# import anthropic
43
+
# from rich import print
44
+
#
45
+
# # Your server URL (replace with your actual URL)
46
+
# url = 'https://0de03d07f8b9.ngrok-free.app'
47
+
#
48
+
# client = anthropic.Anthropic()
49
+
#
50
+
# response = client.beta.messages.create(
51
+
# model="claude-sonnet-4-20250514",
52
+
# max_tokens=1000,
53
+
# messages=[{"role": "user", "content": "Roll a few dice!"}],
0 commit comments