Token导航 LogoToken导航TokenDH.com
Final Chatgpt App Streamline AI MCP logo
安全风控未说明官方级别未说明来源级核验

Final Chatgpt App Streamline AI MCP

MCP Server

一个用于在ChatGPT中设置应用的SDK模板,包含OAuth和MCP服务器设置,支持构建小部件和定义资源及工具调用。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
TypeScriptOAuth认证安全

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

xpandai03

提供方

xpandai03

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

ChatGPT App SDK template

This guide walks you through setting up an app in ChatGPT.

This template handles OAuth and MCP server setup. You just need to build your widgets and define your resource and tool calls.

Requirements

  • An OpenAI Pro or Plus account

Set up connection in ChatGPT

To get started in ChatGPT:

  1. Enable developer mode and create a new connection in ChatGPT
  2. Give your app a name, and enter your app's URL

- It will be of the format: https://--.gadget.app/mcp - For example: https://chatgpt-todos--development.gadget.app/mcp

  1. Once your app is created, the included listTodos action should be registered. Open a new chat, add your app, and ask something like "Show me my todos". ChatGPT should use a tool call to display the todo list.

Template overview

This template includes:

  • OAuth 2.1 routes and required data models

- api/routes/.well-known/* - api/routes/oauth/* - api/models/oauth/* - api/models/user

  • MCP server setup and endpoints

- api/mcp.ts - api/routes/mcp/*

  • A sample widget

- web/chatgpt-widgets/TodoList.tsx

Once OAuth is complete, ChatGPT will open a connection to your MCP server through GET /mcp and perform action discovery. Additional tool calls will be made through POST /mcp.

The Gadget API client is used to create new todos, and mark existing todos as complete. A Provider from @gadgetinc/react-chatgpt-apps is set up in web/chatgpt-widgets/root.tsx. This Provider makes the __getGadgetAuthTokenV1 tool call to fetch the required OAuth token from ChatGPT, then adds that token as an Authorization: Bearer header to requests made using the API client. This enables authenticated API requests from within the ChatGPT iframe without making tool calls (and is much faster than making tool calls to run backend logic)!

Note: Soon, this template will be updated to support React components!

Resources

Happy building!

目录标签

目录标签

TypeScriptOAuth认证安全ChatGPT本地部署SDKOAuthMCP应用开发

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

oauth

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明oauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP