从服务器向 LLM 暴露数据和内容
file:///home/user/documents/report.pdf
postgres://database/customers/schema
screen://localhost/display1
resources/list
端点暴露具体资源列表。每个资源包括:
resources/read
请求。
服务器响应包含资源内容列表:
resources/read
请求的响应中返回多个资源。例如,当读取目录时,这可以用于返回目录中的文件列表。notifications/resources/list_changed
通知客户端其可用资源列表发生变化。
resources/subscribe
notifications/resources/updated
resources/read
获取最新内容resources/unsubscribe
取消订阅