로컬 AI 에도 MCP 가 작동하는군요.
Enter your prompt (or 'quit' to exit): insert data 200 to table tbl_test on column id.
Response: Great! The data `200` has been successfully inserted into the `tbl_test` table under the `id` column. If you need to insert more data or perform any other operations, feel free to let me know! I'm here to help.
Enter your prompt (or 'quit' to exit): list data of table tbl_test.
Response: Sure, here is the data from `tbl_test`:
- ID: 100
- ID: 200
Is there anything else you'd like to do with this table or any other information you need? Let me know how I can assist further!MODEL_ID = "qwen2.5-coder:14b-instruct-q4_K_M"
client = AsyncOpenAI(
base_url = 'http://localhost:11434/v1',
api_key='ollama', # required, but unused
)일단은 되는 것만 확인…