Strety MCP Server

Strety MCP Server

Enables Claude Code to manage Strety todos and people via read/write tools with OAuth token auto-refresh.

Category
访问服务器

README

Strety MCP Server

MCP (Model Context Protocol) server for integrating Strety with Claude Code.

Features

  • Read tools: List todos (filtered by assignee, completion status), get todo details, list people
  • Write tools: Create, update, complete/uncomplete, and delete todos
  • Auto-refresh OAuth tokens
  • Automatic ETag handling for PATCH operations
  • Assignee name resolution (partial match, e.g., "Brent" resolves to full ID)

Installation

cd /Users/brent/scripts/CB-Workspace/mcp-servers/strety
npm install
npm run build

Configuration

1. Create Strety OAuth App

  1. Go to https://2.strety.com
  2. Navigate to: My Integrations > My Apps
  3. Create new app with:
    • Name: Strety-MCP
    • Redirect URI: https://localhost:8888/callback
    • Scopes: read, write

2. Get OAuth Tokens

See todo/strety-oauth-flow.md for detailed instructions.

Quick version:

# Terminal 1: Start listener
nc -l 8888

# Terminal 2: Open this URL (replace CLIENT_ID)
# https://2.strety.com/oauth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=https://localhost:8888/callback&response_type=code&scope=read+write

# Exchange code for token
curl -X POST "https://2.strety.com/api/v1/oauth/token" \
  -d "grant_type=authorization_code" \
  -d "code=CODE_FROM_CALLBACK" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "client_secret=YOUR_CLIENT_SECRET" \
  -d "redirect_uri=https://localhost:8888/callback"

3. Save Tokens

mkdir -p ~/.mcp-strety
cat > ~/.mcp-strety/token.json << 'EOF'
{
  "access_token": "YOUR_ACCESS_TOKEN",
  "refresh_token": "YOUR_REFRESH_TOKEN",
  "saved_at": "2026-01-27T00:00:00.000Z"
}
EOF

4. Add to Claude Code

Add to ~/.mcp.json or project .mcp.json:

{
  "mcpServers": {
    "strety": {
      "command": "node",
      "args": ["/Users/brent/scripts/CB-Workspace/mcp-servers/strety/dist/index.js"],
      "env": {
        "STRETY_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
        "STRETY_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN",
        "STRETY_CLIENT_ID": "YOUR_CLIENT_ID",
        "STRETY_CLIENT_SECRET": "YOUR_CLIENT_SECRET"
      }
    }
  }
}

5. Restart Claude Code

The MCP server loads on Claude Code startup.

Available Tools

Read Tools

Tool Description
strety_list_todos List todos with optional filters (assignee, completed status)
strety_get_todo Get full details of a specific todo
strety_list_people List all people in the organization

Write Tools

Tool Description
strety_create_todo Create a new todo with title, description, assignee, due date, priority
strety_update_todo Update fields on an existing todo (auto ETag handling)
strety_complete_todo Mark a todo complete or uncomplete (auto ETag handling)
strety_delete_todo Permanently delete a todo

Note: Write tools require OAuth tokens with read and write scopes. PATCH operations (update, complete) automatically fetch the required ETag before sending the request.

Token Management

The server handles token refresh automatically:

  1. Tokens are loaded from ~/.mcp-strety/token.json (preferred) or environment variables
  2. When a 401 occurs, the server attempts to refresh using the refresh token
  3. New tokens are saved back to ~/.mcp-strety/token.json

Important: Tokens expire after 2 hours. The auto-refresh handles this, but if the refresh token also expires, you'll need to re-authorize.

API Notes

  • Base URL: https://2.strety.com/api/v1
  • Page size limit: 20 items max per request
  • Rate limit: 10 requests per 10 seconds
  • Pagination: Server fetches up to 50 pages to find all matching todos

Troubleshooting

"Authentication failed" error

  1. Check if tokens are expired
  2. Try refreshing manually (see oauth-flow.md)
  3. If refresh fails, re-authorize completely

"Invalid scope" or 403 when using write tools

The token only has read scope. Re-authorize with read+write scope (see OAuth flow docs).

Todos not showing up

The server paginates through up to 50 pages. If Brent's todos are spread across many pages, they should still be found. Check the assignee filter is correct.

Files

strety/
├── src/index.ts      # Main server code (7 tools)
├── dist/index.js     # Compiled output (gitignored)
├── package.json
├── tsconfig.json
├── .gitignore
├── README.md         # This file
└── docs/
    ├── README.md               # Docs index
    ├── strety-oauth-flow.md    # OAuth documentation
    ├── strety-api-mapping.md   # API endpoint reference
    └── strety-mcp-tools-spec.md # Tool specifications

Development

# Build
npm run build

# Watch mode (if configured)
npm run dev

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选