Skip to content

Update README with concise setup instructions and usage guide#70

Open
kashvipahuja-dev wants to merge 1 commit intodescope:mainfrom
kashvipahuja-dev:update-claude-agent-readme
Open

Update README with concise setup instructions and usage guide#70
kashvipahuja-dev wants to merge 1 commit intodescope:mainfrom
kashvipahuja-dev:update-claude-agent-readme

Conversation

@kashvipahuja-dev
Copy link
Contributor

Claude Agent README.md

Copilot AI review requested due to automatic review settings February 13, 2026 21:48
@netlify
Copy link

netlify bot commented Feb 13, 2026

👷 Deploy request for express-mcp-server pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1589b73

@netlify
Copy link

netlify bot commented Feb 13, 2026

👷 Deploy request for mcp-example-oauth pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1589b73

@vercel
Copy link
Contributor

vercel bot commented Feb 13, 2026

@kashvipahuja-dev is attempting to deploy a commit to the descope Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the example agent README to provide clearer setup instructions and a usage guide for the Claude + MCP + Descope + Gmail integration.

Changes:

  • Expanded README with feature list, prerequisites, quick start steps, and usage examples.
  • Added architecture/security explanations and project structure overview.
  • Added “Learn more” links and a license section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +111 to +113
## License

MIT
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README lists the project license as MIT, but package.json in this example declares ISC. Please align the README License section with the actual licensing for this package (or update package.json if MIT is intended).

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
# Claude MCP Gmail Agent with Human-in-the-Loop Approval

A secure AI agent that integrates Gmail using Claude's Agents SDK, Model Context Protocol (MCP), and Descope for authentication, authorization, and progressive OAuth scoping with human approval for sensitive actions.
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intro says this agent integrates Gmail using “Claude's Agents SDK”, but the implementation under src/ appears to use @anthropic-ai/sdk directly and does not import or reference @anthropic-ai/claude-agent-sdk. Please update the README to match the actual SDK used, or update the code to use the Agents SDK if that’s the intent.

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +12
- 🎫 Human-in-the-loop approval via Descope Enchanted Links
- 🔒 Agent never directly handles Gmail tokens (Agent → MCP → Descope → Gmail)

Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README claims the agent “never directly handles Gmail tokens”, but src/cli-agent.ts fetches a Gmail access token from Descope (/v1/mgmt/outbound/app/user/token/latest) and uses it to call the Gmail API directly when sending an approved email. This is a security/architecture mismatch; please adjust the README description (and the Architecture/Security sections) to reflect the real token flow.

Copilot uses AI. Check for mistakes.
Comment on lines +81 to +85
```
User → Agent (Claude) → MCP Server → Descope → Gmail API
```

The agent never directly handles Gmail OAuth tokens. The MCP server requests them from Descope, creating an extra security boundary.
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The architecture diagram shows “User → Agent → MCP Server → Descope → Gmail API”, but the current implementation also calls Descope/Gmail directly from the agent process (e.g., approval route in src/cli-agent.ts). Please update the diagram/description to match the actual call paths so readers don’t assume all Gmail calls are isolated behind the MCP server.

Copilot uses AI. Check for mistakes.
Comment on lines +49 to +57
Create a `.env` file:

```env
ANTHROPIC_API_KEY=your_anthropic_api_key_here
DESCOPE_PROJECT_ID=your_descope_project_id_here
DESCOPE_CLIENT_ID=your_descope_client_id_here
DESCOPE_CLIENT_SECRET=your_descope_client_secret_here
MCP_SERVER_ID=your_mcp_server_id_here
```
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .env variables listed here don’t match the checked-in .env.example (which currently omits DESCOPE_CLIENT_ID). Since src/auth.ts requires DESCOPE_CLIENT_ID, consider either updating the README to reference .env.example or ensuring the documented env vars stay in sync with it to prevent setup confusion.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments