lzl 在 GPT mcp connector的oauth代码要怎么写啊? 中发帖
我想让gpt直接操作一台服务器上的文件,所以用mcp-proxy把filesystemmcp从进程间通信的stdio模式中转成了一个web sse的service.
以上可以在no-auth的时候成功使用。
但是chatgpt只支持oauth认证,不支持token认证,让ai写一个认证也写不好。chatgpt也没有相关的开发文档,怎么给mcp接入oauth
app.get("/.well-known/oauth-authorization-server/:resource", (_req, res) => res.json(AS_METADATA));
const AS_METADATA = {
issuer: ISSUER,
authorization_endpoint: `${ISSUER}/authorize`,
token_endpoint: `${ISSUER}...