当前位置: 首页 > wzjs >正文

如何维护自己公司的网站电商培训有用吗

如何维护自己公司的网站,电商培训有用吗,安踏网络营销推广案例,商丘电子商务网站建设Zed是当前新流行的一种编辑器,支持MCP(模型上下文协议) Mac下安装Zed比较简单,直接有安装包,在这里: brew install --cask zedMac Monterey下是可以安装上的,亲测有效。 配置 使用CtrlShiftP…

Zed是当前新流行的一种编辑器,支持MCP(模型上下文协议)

Mac下安装Zed比较简单,直接有安装包,在这里:

brew install --cask zed

Mac Monterey下是可以安装上的,亲测有效。

配置

使用Ctrl+Shift+P调出AI,然后设置使用的模型

可以使用deepseek,但是没有找到使用自建服务器的设置方法,有些遗憾。

附加学习

关于Zed里面的MCP部分,手册:Model Context Protocol - Zed 

也就是有个Postgres数据库的MCP Server的扩展,代码在:https://github.com/zed-extensions/postgres-context-server

配置和使用,见后面

Zed Postgres Context Server

This extension provides a Model Context Server for Postgres, for use with the Zed AI assistant.

It adds a /pg-schema slash command to the Assistant Panel.

Configuration

To use the extension, you will need to point the context server at a Postgres database by setting the database_url in your Zed settings.json:

{"context_servers": {"postgres-context-server": {"settings": {"database_url": "postgresql://myuser:mypassword@localhost:5432/mydatabase"}}}
}

Usage

  • /pg-schema <table-name>: Retrieve the schema for the table with the given name.
  • /pg-schema all-tables: Retrieve the schemas for all tables in the database.

 

设置参考这里:Context Server Extensions - Zed 

 

Model Context Protocol

Zed uses the Model Context Protocol to interact with context servers:

The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.

Check out the Anthropic news post and the Zed blog post for an introduction to MCP.

Try it out

Want to try it for yourself?

The following context servers are available today as Zed extensions:

  • Postgres Context Server

Bring your own context server

If there's an existing context server you'd like to bring to Zed, check out the context server extension docs for how to make it available as an extension.

If you are interested in building your own context server, check out the Model Context Protocol docs to get started.

Context Servers

Extensions may provide context servers for use in the Assistant.

Example extension

To see a working example of an extension that provides context servers, check out the postgres-context-server extension.

This extension can be installed as a dev extension if you want to try it out for yourself.

Defining context servers

A given extension may provide one or more context servers. Each context server must be registered in the extension.toml:

 

[context_servers.my-context-server]

Then, in the Rust code for your extension, implement the context_server_command method on your extension:

 
 

impl zed::Extension for MyExtension { fn context_server_command( &mut self, context_server_id: &ContextServerId, project: &zed::Project, ) -> Result<zed::Command> { Ok(zed::Command { command: get_path_to_context_server_executable()?, args: get_args_for_context_server()?, env: get_env_for_context_server()?, }) } }

This method should return the command to start up a context server, along with any arguments or environment variables necessary for it to function.

If you need to download the context server from an external source—like GitHub Releases or npm—you can also do this here.

 

http://www.dtcms.com/wzjs/215697.html

相关文章:

  • 建设营销网站要什么免费刷seo
  • 爱做网站外国免费友情链接平台
  • 上海专业的网站建设360推广和百度推广哪个好
  • 网站名称备案上海百网优seo优化公司
  • 云南省住房和城乡建设局网站外贸网站大全
  • 泰安网络信息化建设抖音矩阵排名软件seo
  • 涉密网络运行维护服务外包的单位青岛seo计费
  • 橙子落地页建站工具全国疫情今天最新消息
  • 网站建设毕业设计怎么做百度客服电话人工服务热线电话
  • 网站排名优化是怎么做的网站生成
  • 装修平台网站b站推广网站入口
  • 去泰国做赌博发网站网络营销实践总结报告
  • 海口免费做网站湛江百度网站快速排名
  • 如何说服老板做网站济南seo优化外包服务
  • 微信分销网站建设价格如何制作网址
  • 付网站首期合同款怎么做分录深圳网络推广网站
  • java学完后可以做网站吗北京学校线上教学
  • 哪些网站容易做百度网站收录查询
  • 做装饰画的行业网站网络营销客服主要做什么
  • 建设flash网站非企户百度推广
  • 郑州二七区做网站宁波seo推广优化哪家强
  • 湖州市网站建设2345网址导航电脑版官网
  • 网站权重不够高 导致优化seo可以从以下几个方面进行
  • 推广网站刷排名外链发布
  • 温岭市建设工程质量安全网站seo优缺点
  • 网站优化推广软件seo课程培训入门
  • wordpress大型站点seo的全称是什么
  • .net 企业网站源码电商平台怎么注册
  • 网站改版要重新备案吗永久免费linux服务器
  • 济南做设计公司网站竞价托管收费标准