首页
学习
活动
专区
圈层
工具
发布
清单首页AI文章详情

腾讯云 COS MCP Server + EdgeOne Pages MCP Server,分分钟搞免费又好用的私有 NAS

{"type":"doc","content":[{"type":"paragraph","attrs":{"id":"65eb3754-9147-4eb5-88c4-90e471ee53e2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"本文使用的MCP,来自 "},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp","target":"_blank","rel":"noopener noreferrer nofollow","class":null}},{"type":"bold"}],"text":"腾讯云开发者MCP广场"},{"type":"text","marks":[{"type":"bold"}],"text":"。腾讯云开发者社区MCP广场,致力于为用户提供丰富、好用、安全的MCP服务。"}]},{"type":"paragraph","attrs":{"id":"f58f991e-895b-40b8-93a0-ed92262bd9eb","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"随着智能手机和数码相机的普及,照片的积累速度越来越快,导致很多人面临存储空间不足的问题。尤其是手机拍摄的照片,常常因为存储空间的限制,导致手机变得卡顿,影响使用体验。今天,我们将介绍一种基于腾讯云 "},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp/server/11472","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"COS"},{"type":"text","text":"、MCP Server 和"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp/server/10011","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":" EdgeOne Pages "},{"type":"text","text":"的解决方案,帮助你轻松管理照片,实现私有云存储。"}]},{"type":"heading","attrs":{"id":"9e1f1f08-93be-4ec6-8a59-058637943c52","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"目标群体"}]},{"type":"paragraph","attrs":{"id":"4906dd0e-1ff2-47de-9c34-c4e82f3d9c18","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"这篇文章的目标群体主要是两类人群:"}]},{"type":"orderedList","attrs":{"id":"2d29903b-92d9-462b-9023-9f74899f8285","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"91fd641f-79da-4892-ae13-76f1e08f0f14"},"content":[{"type":"paragraph","attrs":{"id":"84a94d7f-3142-4f06-85d3-39e54ae962bb","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"普通手机用户"},{"type":"text","text":",尤其是存储空间较小的设备用户,他们希望能够高效地管理和备份手机中的照片,避免因存储问题造成的手机卡顿或文件丢失。"}]}]},{"type":"listItem","attrs":{"id":"98c6ee9d-8fe8-49f0-95e1-c5a6ce6cb22c"},"content":[{"type":"paragraph","attrs":{"id":"d3e30e8c-54af-4fd5-a15c-3e33849eef62","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"开发者和技术爱好者"},{"type":"text","text":",希望了解如何使用腾讯云 COS、MCP Server 和 EdgeOne Pages 构建一个私有云存储解决方案,从而能为自己的项目提供灵感或直接应用到自己的工作中。"}]}]}]},{"type":"heading","attrs":{"id":"d3217424-f6b5-4e68-83a7-528978f054d5","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"腾讯云 COS 的密钥获取"}]},{"type":"paragraph","attrs":{"id":"7c887262-c816-45f9-91c2-a2737555e3a8","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"首先,我们需要获得腾讯云 COS 的 "},{"type":"text","marks":[{"type":"code"}],"text":"SecretId"},{"type":"text","text":" 和 "},{"type":"text","marks":[{"type":"code"}],"text":"SecretKey"},{"type":"text","text":",它们是身份认证的重要凭证,帮助我们安全地访问 COS 存储服务。为了确保信息安全,记得将这些密钥妥善保管,切勿泄露。"}]},{"type":"orderedList","attrs":{"id":"112d6325-bf74-45cb-99ad-70fdd9be34e8","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"9e7b7577-3b3a-4d33-9907-ae13e4a56d46"},"content":[{"type":"paragraph","attrs":{"id":"688f1d99-b681-4094-90e9-f0a047589249","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"登录腾讯云控制台,进入“"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://console.cloud.tencent.com/cam/capi","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"密钥管理"},{"type":"text","text":"”页面。"}]}]},{"type":"listItem","attrs":{"id":"03ed9371-68e6-42c0-b92e-b0661ea15663"},"content":[{"type":"paragraph","attrs":{"id":"60b5222d-89a3-47f6-835e-ee90e5f2124d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"点击新建密钥,生成 "},{"type":"text","marks":[{"type":"code"}],"text":"SecretId"},{"type":"text","text":" 和 "},{"type":"text","marks":[{"type":"code"}],"text":"SecretKey"},{"type":"text","text":",并将其复制保存。"}]}]}]},{"type":"image","attrs":{"id":"6d76c991-c618-48fa-8252-fad5ea19638f","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-48ad115a.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"2.810573","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"980d51f7-fecc-4810-8569-06e3ed23e090","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"创建存储桶"}]},{"type":"bulletList","attrs":{"id":"154b9e25-abe6-4197-80a7-9efa46bf8ce1","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"f4b28a07-5f5b-40e9-b3bd-070ea692360b"},"content":[{"type":"paragraph","attrs":{"id":"b0bf543f-1529-40b8-a210-def3376d6235","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"登录腾讯云控制台,访问“"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://console.cloud.tencent.com/cos/bucket","target":"_blank","rel":"noopener noreferrer nofollow","class":"link"}}],"text":"存储桶列表"},{"type":"text","text":"”。"}]}]},{"type":"listItem","attrs":{"id":"a4964f61-b97a-4594-a1f1-0559b8b5e3fe"},"content":[{"type":"paragraph","attrs":{"id":"1c106df0-830d-4d98-8979-8d87d1fe205e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"点击“创建存储桶”,选择适合的地域(如 "},{"type":"text","marks":[{"type":"code"}],"text":"ap-guangzhou"},{"type":"text","text":")并确认。"}]}]},{"type":"listItem","attrs":{"id":"2bff8f5f-ab80-4c70-b9d2-40044bd7415e"},"content":[{"type":"paragraph","attrs":{"id":"daf58487-c89d-4262-9522-10cf0a123070","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"创建完成后,复制存储桶名称,记住后续在配置中使用。"}]}]}]},{"type":"image","attrs":{"id":"9baa795e-27cd-43ba-af93-f71993f06df6","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-c838b708.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"1.989374","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"image","attrs":{"id":"3430903e-ce14-4430-a7c8-99b1f8a21fa4","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-c0ffbb14.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":733,"aspectRatio":"1.124233","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"4814d958-cb91-45fc-94cf-a660b873196d","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"MCP Server 的功能介绍"}]},{"type":"paragraph","attrs":{"id":"c00e844b-8a3f-4811-908d-b10d8ec4930b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"MCP(Model Context Protocol)Server 是一种服务器应用,它可以帮助开发者快速实现私有云存储服务并管理大量数据。MCP Server 主要功能包括:"}]},{"type":"bulletList","attrs":{"id":"d9440e8a-db66-4153-98f3-4f568bdb6445","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"196a077e-a7cb-4b7b-a9dd-6f68d7a9202c"},"content":[{"type":"paragraph","attrs":{"id":"296ad754-ea36-4848-b74d-e0d810788719","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"数据存储"},{"type":"text","text":":通过与腾讯云 COS 结合,提供高效、安全的云存储解决方案。"}]}]},{"type":"listItem","attrs":{"id":"4a27d63e-6bd6-4d71-9d0f-6b3a6ce8d86e"},"content":[{"type":"paragraph","attrs":{"id":"24d746ca-0ea0-4d2e-b7e3-b63bd12d8325","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"数据加密"},{"type":"text","text":":支持 SSE(Server-Side Encryption)模式进行数据加密,确保上传到云端的数据得到加密保护。"}]}]},{"type":"listItem","attrs":{"id":"920a5794-a3ab-4a6d-9b84-e5fe69376690"},"content":[{"type":"paragraph","attrs":{"id":"6a4d9ce1-aeb3-488c-b913-dcb266cb2747","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"服务配置"},{"type":"text","text":":支持通过 JSON 配置文件来灵活设置 COS 配置信息,包括 Region、Bucket 名称、SecretId、SecretKey 等。"}]}]}]},{"type":"paragraph","attrs":{"id":"3d6b592b-6cbc-4de2-a9e4-a6fd9400e96b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"MCP Server 可以使我们轻松搭建一个安全可靠的私有云存储系统,适用于各类应用场景。"}]},{"type":"heading","attrs":{"id":"a8ed7311-20a1-46f3-b87c-5ac35394d2db","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"配置 MCP Server"}]},{"type":"paragraph","attrs":{"id":"4f61577c-c799-45fd-a96a-d1661593ac90","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"接下来,我们需要安装并配置 "},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp/server/11472","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"cos-mcp"},{"type":"text","text":",这个工具可以帮助我们快速搭建一个私有云存储服务,并支持 SSE 模式进行数据加密,确保数据安全。"}]},{"type":"paragraph","attrs":{"id":"be2316ce-1068-4511-83bd-1af9e8175afb","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"我们可以直接进入"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp","target":"_blank","rel":"noopener noreferrer nofollow","class":"link"}},{"type":"bold"}],"text":"腾讯云开发者MCP广场"},{"type":"text","marks":[{"type":"bold"}],"text":",搜索cos-mcp;"},{"type":"text","text":"在页面的右侧通过SSE URL连接服务输入配置信息,进行直接配置。"}]},{"type":"image","attrs":{"id":"f4c11ddd-6e52-414b-8be4-5f6f0066ded2","src":"https://developer.qcloudimg.com/http-save/audit-5421023/e80c7a46b5b98fa0b11ff29514defa5e.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"1.780098","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"bbe0740d-6129-4925-873a-c59d3fdc8837","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置成功后,点击,连接Server按钮,生成SSE的连接。"}]},{"type":"image","attrs":{"id":"08cf07e6-b047-4bd4-ae47-4482cdce5f04","src":"https://developer.qcloudimg.com/http-save/audit-5421023/79f2f2eae339fc3674a7e11f59f49c13.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"3.389671","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"3eac9b2b-9ceb-4167-95f6-d3ba760fae4d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"这样,"},{"type":"text","marks":[{"type":"code"}],"text":"mcp.json"},{"type":"text","text":" 就完成了设置,确保数据可以通过安全的 SSE 模式传输。"}]},{"type":"image","attrs":{"id":"87749165-0d33-4262-ad17-476c280de225","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-3806162a.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"2.127232","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"0ee1ad37-48cf-40af-bbaf-07c567ca262f","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"验证cos-mcp "}]},{"type":"paragraph","attrs":{"id":"4b1235ab-fe79-4c1a-a97d-caee4cee72a1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"对cos-mcp 进行功能测试:"}]},{"type":"image","attrs":{"id":"ac8c4b3d-39bf-4652-9d1a-4972628d294c","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-c194aba2.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":895,"aspectRatio":"1.163849","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"10d7c42e-9f34-4360-951a-f938152e05b4","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"最近手机一直卡顿,原因是手机相片太多,正好我们可以基于cos-mcp实现相片管理。"}]},{"type":"image","attrs":{"id":"bf6a3a04-2c1b-4771-9a2a-fc3f14f04015","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-27205b6c.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":993,"aspectRatio":"1.884250","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"6071448e-9030-48eb-af6d-0628563fcb59","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"Vue 实现照片管理"}]},{"type":"paragraph","attrs":{"id":"bf187f55-2616-44e0-8e4c-bde9c1360c1b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在后端配置完成后,我们可以开始开发前端页面。我们选择了 Vue.js 来构建界面,因为 Vue 提供了高效的响应式框架,能够方便地处理动态内容。"}]},{"type":"paragraph","attrs":{"id":"ec478dc6-2d21-4d1f-94e5-c4b53b616997","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"前端主要包含两个功能模块:"}]},{"type":"orderedList","attrs":{"id":"87dce49c-db8c-453e-9cda-c896e701f2bd","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"174c7900-8c7b-4468-8051-62d6886b7ffe"},"content":[{"type":"paragraph","attrs":{"id":"4e471395-3ee5-4a38-a6a9-7c548b956d9c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"照片上传"},{"type":"text","text":":用户可以选择本地文件,上传照片至 COS 存储。"}]}]},{"type":"listItem","attrs":{"id":"4a9be4db-f658-44fc-b379-cf3cc134310d"},"content":[{"type":"paragraph","attrs":{"id":"be3743f4-884b-47ce-ab3e-12d0451d6791","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"照片分类和标签"},{"type":"text","text":":用户可以为每张照片设置分类和标签,方便后续查找和管理。"}]}]}]},{"type":"image","attrs":{"id":"1fa5f318-41f8-46a5-8095-431685b0a97d","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-a8ea7b70.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1005,"aspectRatio":"1.652961","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"f47d449b-eb60-4aec-aa9b-c6d080768c4f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在开发过程中,我们使用 Vue 来管理应用的状态,保证照片分类信息能够实时同步和更新。"}]},{"type":"image","attrs":{"id":"ccdf2e39-ff6b-478c-aef0-430f9279c59d","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-5f1d1f6f.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":997,"aspectRatio":"1.678451","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"57900bec-7148-46e0-93e5-0e2aa643a78b","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"使用 EdgeOne Pages 发布 Vue 页面"}]},{"type":"paragraph","attrs":{"id":"1bd67034-4cbc-47df-9d51-2c6b513c232b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"当前端开发完成后,下一步就是将应用部署到一个公开的域名上,方便用户访问。腾讯云提供了一个非常方便的工具——"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp/server/10011","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"EdgeOne Pages"},{"type":"text","text":",它允许我们将 Vue 页面轻松发布并生成一个公开的 URL 地址。"}]},{"type":"orderedList","attrs":{"id":"c9e4ad1c-760e-499d-b6e1-8f3ad538e177","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"0dd502b0-a18c-46ae-87ae-4076e0b23a46"},"content":[{"type":"paragraph","attrs":{"id":"5b0750f8-ca15-461f-a71b-7786ecda518f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"将 Vue 项目通过 EdgeOne Pages 部署,几秒钟内就能获得一个公开的链接。"}]}]},{"type":"listItem","attrs":{"id":"b47f4fcd-fafb-493c-acc4-65f29263cf76"},"content":[{"type":"paragraph","attrs":{"id":"1088bf85-1891-41f2-a5a2-cea50abdb18f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"使用生成的链接,访问我们的照片管理页面,查看实际效果。"}]}]}]},{"type":"paragraph","attrs":{"id":"2787bc2d-12f0-4655-90cd-4135d8ea2743","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"通过这个过程,用户就能够轻松管理自己的照片,随时上传、分类、标签化,并通过公开的链接访问所有照片。"}]},{"type":"image","attrs":{"id":"380cd5d2-c2dc-4e3b-84a0-1e1b4144731f","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-4b383ff5.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":997,"aspectRatio":"1.707192","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"a12368fe-4465-499f-adfd-2691a7270d04","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"输入“继续”生成我们的代码。"}]},{"type":"image","attrs":{"id":"2b6cbed4-2232-45b4-a59c-d94dc41fd426","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-c94143ff.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":999,"aspectRatio":"2.195604","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"8a318da5-9d1b-4718-ac16-438f4725f018","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"等待edgeone-pages-mcp生成一个公开的URL地址。"}]},{"type":"image","attrs":{"id":"c4e4d645-064a-4637-8ed6-938c6cffee8e","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-dc2c491a.png","extension":"png","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"2.495908","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"d3ca28a6-1835-4dd9-81eb-39eb83ec3244","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"完整体验"}]},{"type":"paragraph","attrs":{"id":"33c12a06-d495-4dbc-b6d1-c5d363566722","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"通过结合腾讯云 COS、MCP Server 和 EdgeOne Pages,我们能够轻松搭建一个免费的私有 NAS,实现照片的云存储和管理。这样的解决方案不仅提高了照片存储的安全性,还能有效避免手机存储不足导致的卡顿问题。最重要的是,整个过程简单易行,不需要复杂的配置,适合普通用户和开发者快速上手。"}]},{"type":"heading","attrs":{"id":"67df61cc-0371-4785-8d3e-551df2823c23","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"代码复现步骤 "}]},{"type":"paragraph","attrs":{"id":"33e60d9e-801b-4947-bce7-0fe0b29e7c59","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"为了确保您的项目可复现,请按照以下步骤进行操作:"}]},{"type":"orderedList","attrs":{"id":"d5a2bcfe-5c31-476e-a532-b8487eb7067d","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"e64ead9c-c0eb-490b-bf88-ab1cf78fca16"},"content":[{"type":"paragraph","attrs":{"id":"d7504198-ef05-426e-b492-e14f54fe37ab","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"配置腾讯云 COS"},{"type":"text","text":":"}]},{"type":"bulletList","attrs":{"id":"9f3cf595-5188-4043-abbc-9bd581777566","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"bdde298b-d854-4c7e-ba1e-1e6cf6e2566c"},"content":[{"type":"paragraph","attrs":{"id":"4160d1a0-56fb-47ad-81af-2db997551abe","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"登录腾讯云控制台,创建存储桶并获取 SecretId 和 SecretKey。"}]}]},{"type":"listItem","attrs":{"id":"51146daa-da42-48f2-993e-2660f7481703"},"content":[{"type":"paragraph","attrs":{"id":"96ef2eda-f2cb-4bd5-a46b-2cce24e0194d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置 "},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp/server/11472","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"cos-mcp"},{"type":"text","text":",并启动服务。"}]}]}]}]},{"type":"listItem","attrs":{"id":"d89a2a56-29bf-4dd0-b75c-d7a27f52c9f6"},"content":[{"type":"paragraph","attrs":{"id":"86f5d330-d9d0-40ed-bb41-c49bf4c8bd2d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"安装并配置 cos-mcp"},{"type":"text","text":":"}]},{"type":"bulletList","attrs":{"id":"8fa653e8-daeb-4d18-a8b4-72cf7d56bf05","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"804bb880-fc70-44f4-b027-4c9f9fa47d26"},"content":[{"type":"paragraph","attrs":{"id":"b1fd45aa-f577-4b2c-8bbe-6d381da3dc65","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"运行 "},{"type":"text","marks":[{"type":"code"}],"text":"npm install -g cos-mcp"},{"type":"text","text":" 安装工具。"}]}]},{"type":"listItem","attrs":{"id":"351c66e1-3488-473f-af7e-84f32f969d80"},"content":[{"type":"paragraph","attrs":{"id":"c4c57d17-6839-4d13-8006-f10e16a8cbf2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"使用上述命令配置并启动 cos-mcp 服务。"}]}]}]}]},{"type":"listItem","attrs":{"id":"41dc2e8a-7022-4410-88c2-e4baff3f6eff"},"content":[{"type":"paragraph","attrs":{"id":"7a2cfeb1-fe79-4f02-96ae-ab461dc169b5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"搭建前端 Vue 项目"},{"type":"text","text":":"}]},{"type":"bulletList","attrs":{"id":"2292bda4-97bf-468f-a3ba-76d80617acb5","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"7cc56b0a-0055-4cfe-b347-d5f96cd072c5"},"content":[{"type":"paragraph","attrs":{"id":"50fff823-3746-4bda-b402-891bbb1c7b8e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"使用 Vue CLI 创建一个新项目,开发上传和分类功能。"}]}]},{"type":"listItem","attrs":{"id":"9e20ca2f-b35e-4b4b-a612-376dcd5a8cf9"},"content":[{"type":"paragraph","attrs":{"id":"7d8aef63-2372-4243-99f6-51490232786a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"部署项目到 "},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/mcp/server/10011","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"EdgeOne Pages"},{"type":"text","text":"。"}]}]}]}]},{"type":"listItem","attrs":{"id":"90c95aa2-cff3-40eb-9f9e-c7f8d9001347"},"content":[{"type":"paragraph","attrs":{"id":"d34bf89f-c469-4c73-a6b4-45c009ae491b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"测试并验证"},{"type":"text","text":":"}]},{"type":"bulletList","attrs":{"id":"bb80b947-e47d-492e-899e-945bed5ea8a1","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"3839489f-7e02-46b0-8d5b-bf4ca8cc0c62"},"content":[{"type":"paragraph","attrs":{"id":"1e113986-da99-4ed7-8d01-81f72b1383cc","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"上传照片,验证是否成功存储在腾讯云 COS。"}]}]},{"type":"listItem","attrs":{"id":"363e89e1-8de8-4b01-aaf7-72c93ab1906a"},"content":[{"type":"paragraph","attrs":{"id":"ab8edbfe-f84d-4457-b72e-e29e3fa3b6a6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"通过公开链接访问并管理照片。"}]}]}]}]}]},{"type":"paragraph","attrs":{"id":"f0d5b43d-cad1-4ec1-9875-66cd0a0aef59","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"如果你也有很多照片需要管理,或者想要体验一下私有云存储的便利,不妨试试这个方案,绝对值得一试!输入地址链接,我们来看下效果:"}]},{"type":"image","attrs":{"id":"34aaf750-832f-45c8-b0a5-5903b299a0d7","src":"https://developer.qcloudimg.com/editor/image/5421023/20250506-a04c394d.gif","extension":"gif","align":"center","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"2.171461","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"cdb4568b-052a-4591-a854-8ae16af62ee1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false}}]}

下一篇
举报
领券