Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CHATGPT_CDP_URLNoCDP endpointhttp://127.0.0.1:9222
CHATGPT_PROJECTNoProject name in the sidebarDers Notları
CHATGPT_WORK_DIRNoOnly files under here may be attached or written~/work
CHATGPT_STATE_DIRNolock, projects.json, debug/ screenshots~/work/chatgpt-web
CHATGPT_MODEL_SLUGNoOptional ?model= slug
CHATGPT_STABLE_SECNoReply must be unchanged this long (and show a Copy button) to count as finished20
CHATGPT_MODEL_LABELNoModel to select; substring expected in the model picker; empty = don't touch the model
CHATGPT_MAX_WAIT_SECNoUpper bound for one wait/send --wait call900
CHATGPT_MODEL_STRICTNoSet to 1 to turn a model mismatch into an error

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
statusA

Session state (logged_in/anonymous/login_required), current model label, configured project, open chat tabs. Cheap; call first.

doctorA

Health check: CDP reachable, session state, file input present, available model names, whether the configured project exists. Use when something fails.

list_chatsA

List conversations inside the configured ChatGPT project (title + url). Optional substring filter on title.

new_chatA

Open a new conversation inside the configured project and select the configured model. Returns a temporary handle chat (tab:); after the first send you get the permanent chat_url.

open_chatA

Open an existing conversation by URL (https://chatgpt.com/c/...) so you can continue it. Returns turn counts and a preview of the last reply.

sendA

Send a message (optionally with files under the work dir, max 10) to a chat. Returns immediately with status=generating unless wait_sec>0 (max 900). reply_format: largest_markdown | text | blocks | all.

waitA

Wait for the newest reply in a chat to finish (poll). timeout_sec<=900; if it returns status=generating call wait again. Returns the reply in reply_format.

get_replyA

Read an assistant reply without waiting. index=-1 is the newest. reply_format: text | blocks | largest_markdown | all.

save_replyA

Write a reply to a file under the work dir without passing the whole text through the model. reply_format largest_markdown extracts the biggest ```markdown block (falls back to full text). Returns word/section stats.

stopB

Stop the reply currently being generated in a chat.

close_chatA

Close the browser tab of a chat (the conversation stays in ChatGPT).

check_fileA

Offline: word count per ### BÖLÜM n section of a saved notes file.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FirstWari/chatgpt-web'

If you have feedback or need assistance with the MCP directory API, please join our Discord server