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

手机网站与PC网站长春seo排名扣费

手机网站与PC网站,长春seo排名扣费,苏州园区住建委官方网站,河南郑州app建设网站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/100308.html

相关文章:

  • 中国建设银行东莞市网站提高工作效率的工具
  • 网站视频主持人网临沂网站建设公司哪家好
  • 东莞品牌网站设计公司网址如何下载视频
  • 安卓毕业设计代做网站青岛seo关键词
  • 罗马尼亚网站后缀长沙网站开发
  • 湖南建网站设计网络推广方案
  • 虚拟主机如何做网站国外免费建站网站搭建
  • 网站制作加教程视频网站制作培训
  • 建设网站好公司哪家好手机导航下载2022新版
  • 企业为什么做网站 图片国际军事新闻
  • 网站每天一条推送怎么做的优化网络推广外包
  • 山西住房和城乡建设厅网站优化方法
  • 东莞58同城做网站电话zac博客seo
  • 已经有了域名怎么做网站seo排名优化网站
  • 青岛建设系统一体化网站关键词优化和seo
  • 怎么测网站流量吗2345网址导航是病毒吗
  • 网站上线多久才能百度seo标签优化
  • 六安网站建设哪家靠谱武汉seo顾问
  • 网站建设微站上海百度首页优化
  • wordpress手机怎么分享链接天津seo推广优化
  • 邯郸网站制作哪家好石家庄seo推广公司
  • 怎么做网站的关键词库seo一键优化
  • 如何做网站限制石家庄seo公司
  • 如何做超市的网站怎么优化网站关键词排名
  • wordpress工单网站如何做优化推广
  • 网站代码优化视频教程新媒体运营哪个培训机构好
  • 遵义市建设厅网站最近的新闻事件
  • 南阳旅游网 网站设计太原seo关键词排名优化
  • wordpress开通邮箱seo网站关键词优化报价
  • 一个空间怎么放2个网站seo技术培训价格表