DA Live Admin MCP Server

DA Live Admin MCP Server

Enables LLM assistants to manage Document Authoring (DA) repositories through the DA Live Admin API, supporting operations like listing, creating, updating, and deleting source files, managing configurations, and looking up media and fragment references.

Category
访问服务器

README

DA Live Admin - Remote MCP Server

A remote Model Context Protocol (MCP) server for Document Authoring (DA) Live Admin API, deployable on Cloudflare Workers. This server provides LLM assistants like Claude with direct access to DA repository management operations.

Features

  • 12 DA Admin Tools: Complete set of tools for managing DA repositories
  • Remote Access: Deployable on Cloudflare Workers with global edge distribution
  • Streamable HTTP: Modern MCP transport protocol for remote servers
  • Token Pass-through: Simple authentication by passing DA API tokens through Authorization header
  • Production Ready: Error handling, logging, CORS support, and health checks
  • TypeScript: Fully typed codebase for reliability and maintainability

Available Tools

Tool Description
da_list_sources List sources and directories in a repository
da_get_source Get content of a specific source file
da_create_source Create a new source file
da_update_source Update an existing source file
da_delete_source Delete a source file
da_copy_content Copy content between locations
da_move_content Move content between locations
da_get_versions Get version history for a file
da_get_config Get repository configuration
da_update_config Update repository configuration
da_lookup_media Lookup media references
da_lookup_fragment Lookup fragment references

Prerequisites

  • Node.js 18+ and npm
  • Cloudflare account (free tier works)
  • Wrangler CLI installed (npm install -g wrangler)
  • DA Admin API token

Installation

  1. Clone and install dependencies:
git clone <repository-url>
cd da-mcp
npm install
  1. Configure Wrangler:

Edit wrangler.toml if needed to customize your deployment settings.

  1. Set up secrets (optional):

If you want a fallback token for testing:

wrangler secret put DA_ADMIN_API_TOKEN
# Enter your DA API token when prompted

Development

Local Development

Run the server locally with hot reload:

npm run dev

The server will be available at http://localhost:8787

Test Endpoints

  • Health check: http://localhost:8787/health
  • MCP endpoint: http://localhost:8787/mcp

Testing with MCP Inspector

  1. Start the local server: npm run dev
  2. Open MCP Inspector
  3. Configure connection:
    • Type: Streamable HTTP
    • URL: http://localhost:8787/mcp
    • Headers: Authorization: Bearer YOUR_DA_TOKEN

Deployment

Deploy to Cloudflare Workers

# Deploy to production
npm run deploy

# Or deploy to development environment
wrangler deploy --env development

After deployment, note your Worker URL (e.g., https://mcp-da-admin.your-account.workers.dev)

Client Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:

{
  "mcpServers": {
    "da-live-admin": {
      "type": "streamable-http",
      "url": "https://mcp-da-admin.your-account.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_DA_ADMIN_TOKEN"
      }
    }
  }
}

VS Code / Cursor

Add to .vscode/mcp.json or Cursor settings:

{
  "servers": {
    "da-live-admin": {
      "type": "streamable-http",
      "url": "https://mcp-da-admin.your-account.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_DA_ADMIN_TOKEN"
      }
    }
  }
}

Authentication

The server uses simple token pass-through authentication:

  1. Client sends DA Admin API token in the Authorization header
  2. Server extracts the token and passes it to DA Admin API
  3. All requests to DA Admin API use this token

Authorization Header Format:

Authorization: Bearer YOUR_DA_ADMIN_TOKEN

or simply:

Authorization: YOUR_DA_ADMIN_TOKEN

Usage Examples

Once configured, you can ask your AI assistant to perform DA operations:

Claude, can you list all the sources in the adobe/my-docs repository?
Please get the content of docs/index.md from the adobe/my-docs repository.
Create a new file at docs/new-page.md with some markdown content.

API Endpoints

GET /health

Health check endpoint returning server status.

Response:

{
  "status": "healthy",
  "service": "mcp-da-admin",
  "version": "1.0.0",
  "environment": "production",
  "timestamp": "2025-01-07T12:00:00.000Z"
}

POST /mcp

MCP protocol endpoint for tool execution. Requires Authorization header with DA Admin API token.

Architecture

┌─────────────────┐
│   MCP Client    │
│ (Claude/Cursor) │
└────────┬────────┘
         │ Streamable HTTP
         │ + DA Token
         ↓
┌─────────────────────────┐
│  Cloudflare Worker      │
│  ┌──────────────────┐   │
│  │   MCP Server     │   │
│  │   (12 Tools)     │   │
│  └──────────────────┘   │
└───────────┬─────────────┘
            │ HTTPS + Token
            ↓
┌─────────────────────────┐
│  DA Admin API           │
│  (admin.da.live)        │
└─────────────────────────┘

Project Structure

src/
├── index.ts              # Cloudflare Worker entry point
├── mcp/
│   ├── server.ts         # MCP server initialization
│   ├── tools.ts          # Tool definitions (schemas)
│   └── handlers.ts       # Tool implementation handlers
└── da-admin/
    ├── client.ts         # DA Admin API client
    └── types.ts          # TypeScript types

Error Handling

All tools include comprehensive error handling:

  • 401 Unauthorized: Missing or invalid DA Admin token
  • 404 Not Found: Invalid endpoint
  • 408 Timeout: Request took longer than 30 seconds
  • 500 Internal Error: Server-side errors with details

Errors are formatted for easy understanding by LLM clients.

Logging

The server logs important events and errors to Cloudflare Workers logs:

# View logs in real-time
wrangler tail

# View logs for specific environment
wrangler tail --env production

Security Considerations

  • Token Security: DA Admin tokens are never logged or stored
  • HTTPS Only: All communication is encrypted (enforced by Cloudflare)
  • CORS: Configured for secure cross-origin requests
  • Input Validation: All tool inputs are validated against schemas
  • Rate Limiting: Inherits Cloudflare Workers rate limiting

Troubleshooting

"Missing DA Admin API token"

Solution: Ensure your MCP client configuration includes the Authorization header with your DA Admin API token.

"Request timeout"

Solution: The default timeout is 30 seconds. Large operations may need optimization or the DA Admin API may be slow.

"401 Unauthorized from DA API"

Solution: Your DA Admin token may be invalid or expired. Generate a new token and update your client configuration.

Tools not appearing in Claude

Solution:

  1. Restart Claude Desktop after configuration changes
  2. Check the configuration file path is correct
  3. Verify the Worker URL is accessible
  4. Check Claude Desktop logs for connection errors

Monitoring

Monitor your deployed Worker:

  1. Cloudflare Dashboard: View invocations, errors, and performance
  2. Wrangler Tail: Real-time logs (wrangler tail)
  3. Health Endpoint: Regular health checks at /health

Future Enhancements

  • [ ] OAuth 2.1 authentication flow
  • [ ] Cloudflare KV for token storage
  • [ ] Rate limiting per user
  • [ ] Advanced error recovery
  • [ ] Caching for frequently accessed resources
  • [ ] Webhook support for real-time updates

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Submit a pull request

License

MIT License - see LICENSE file for details

Resources

Support

For issues and questions:

  • Open an issue on GitHub
  • Check existing documentation
  • Review Cloudflare Workers logs

Built with ❤️ using Model Context Protocol and Cloudflare Workers

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选