Bước 1: Deploy MCP server Step 1: Deploy Your MCP Server ជំហាន 1: Deploy MCP server
- Chúng ta đang xây What we're building អ្វីដែលយើងកំពុងសង់
- A globally deployed MCP server running on the edge network for low-latency access worldwide.
- Vì sao quan trọng Why this matters ហេតុអ្វីសំខាន់
- Production deployment makes your MCP server accessible to AI assistants and provides real-world testing capabilities.
# Login to Cloudflare (if not already done)
$ npx wrangler login
# Deploy to Workers
$ npm run deploy Once deployed (usually 30-60 seconds), copy the deployment URL from the output. Your MCP endpoint will be at https://my-mcp-server.[your-account].workers.dev/mcp.
Once deployed (usually 30-60 seconds), copy the deployment URL from the output. Your MCP endpoint will be at https://my-mcp-server.[your-account].workers.dev/mcp.
Once deployed (usually 30-60 seconds), copy the deployment URL from the output. Your MCP endpoint will be at https://my-mcp-server.[your-account].workers.dev/mcp.
Bước 2: Test trên AI Playground Step 2: Test with AI Playground ជំហាន 2: Test លើ AI Playground
Now for the fun part - connecting your deployed MCP server to an actual AI assistant.
Now for the fun part - connecting your deployed MCP server to an actual AI assistant.
Now for the fun part - connecting your deployed MCP server to an actual AI assistant.
🎮 Test trên AI Playground: 🎮 AI Playground Testing: 🎮 Test លើ AI Playground៖
- Visit the AI Playground
- Create a new chat session
- Click the “Tools” button in the interface
- Add your MCP server URL: https://your-worker.workers.dev/mcp (make sure to include /mcp)
- Click “Connect” and verify tools are loaded
- Test your tools by asking the AI to use them
- Example: “Generate a random number between 1 and 100”
How cool is that? An LLM was able to call the tool you built, deployed globally on our edge network!
How cool is that? An LLM was able to call the tool you built, deployed globally on our edge network!
How cool is that? An LLM was able to call the tool you built, deployed globally on our edge network!