devstride-mcp-server
If you are the rightful owner of devstride-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The DevStride MCP Server is a modern server implementation that integrates seamlessly with the DevStride REST API, utilizing Node.js 20+/Bun, TypeScript, and the native fetch API.
DevStride MCP Server
A modern Model Context Protocol (MCP) server that provides seamless integration with the DevStride REST API using Node.js 20+/Bun, TypeScript, and the native fetch API.
๐ Features
- Modern Runtime Support: Compatible with Node.js 20+ and Bun 1.0+
- Native Fetch API: Uses built-in fetch instead of external HTTP libraries
- Zero External HTTP Dependencies: Leverages modern JavaScript runtime capabilities
- Type-Safe Implementation: Full TypeScript support with strict typing
- FastMCP Framework: Built on the reliable FastMCP framework
- Comprehensive API Coverage: Access to all DevStride API endpoints
- Runtime Detection: Automatically detects and optimizes for Node.js or Bun
๐ Prerequisites
- Node.js 20.0.0+ or Bun 1.0.0+
- DevStride API credentials (API key, secret, and organization ID)
๐ Installation
-
Clone the repository
git clone https://github.com/jasonjgardner/devstride-mcp-server.git cd devstride-mcp-server
-
Install dependencies
# Using npm npm install # Using Bun bun install
-
Configure environment variables
cp .env.example .env # Edit .env with your DevStride API credentials
-
Build the project
# Using npm npm run build # Using Bun bun run build
โ๏ธ Configuration
Create a .env
file in the project root:
DEVSTRIDE_API_KEY=your_api_key_here
DEVSTRIDE_API_SECRET=your_api_secret_here
DEVSTRIDE_ORGANIZATION_ID=your_organization_id_here
DEVSTRIDE_API_BASE_URL=https://api.devstride.com
MCP_SERVER_NAME=DevStride MCP Server
MCP_SERVER_VERSION=2.0.0
Obtaining DevStride API Credentials
- Log into your DevStride account
- Go to Profile Settings
- Navigate to API Keys and click "New Key"
- Add a label and choose your organization
- Copy the API key, secret, and organization ID
๐โโ๏ธ Usage
Development Mode
With Node.js:
npm run dev
With Bun:
npm run dev:bun
# or
bun run src/index.ts
Production Mode
With Node.js:
npm start
With Bun:
npm run start:bun
# or
bun dist/index.js
Testing with MCP Inspector
npx @modelcontextprotocol/inspector src/index.ts
๐ง Available Tools
The server provides 10 comprehensive tools for DevStride API interaction:
Core Tools
health_check
- Test API connectivity and runtime informationget_notifications
- Retrieve organization notificationsupdate_notification
- Mark notifications as read or update contentget_activity_logs
- View activity logs for tracking changes
AI & Content Tools
create_chat
- Start new AI chat sessionsgenerate_item_description
- AI-powered content generation
Analytics & Export Tools
create_export_job
- Start data export processesget_export_jobs
- List all export jobs and their status
Asset Management Tools
create_asset_group
- Organize assets into groups
Advanced Tools
make_api_request
- Custom API requests for any DevStride endpoint
๐ Usage Examples
Basic Health Check
{
"tool": "health_check",
"parameters": {}
}
Get Recent Notifications
{
"tool": "get_notifications",
"parameters": {
"page": 1,
"limit": 10
}
}
Create AI Chat Session
{
"tool": "create_chat",
"parameters": {
"title": "Project Planning Session",
"initialMessage": "Help me plan the next sprint for our mobile app"
}
}
Generate Content with AI
{
"tool": "generate_item_description",
"parameters": {
"prompt": "Create a description for a new mobile app feature",
"context": "E-commerce application with user authentication"
}
}
Custom API Request
{
"tool": "make_api_request",
"parameters": {
"method": "GET",
"path": "/workflows",
"params": {
"active": true
}
}
}
๐ Project Structure
devstride-mcp-server/
โโโ src/
โ โโโ index.ts # Main MCP server entry point
โ โโโ types/
โ โ โโโ devstride.ts # TypeScript type definitions
โ โโโ services/
โ โ โโโ devstride-client.ts # Modern fetch-based API client
โ โโโ utils/
โ โโโ config.ts # Configuration and runtime utilities
โโโ dist/ # Compiled JavaScript output
โโโ package.json # Project dependencies and scripts
โโโ tsconfig.json # TypeScript configuration
โโโ .env.example # Environment variables template
โโโ README.md # This file
๐ What's New in v2.0
Modern Runtime Support
- Node.js 20+: Leverages latest JavaScript features and performance improvements
- Bun Support: Full compatibility with Bun runtime for enhanced performance
- Runtime Detection: Automatically detects and reports the current runtime
Native Fetch API
- Zero HTTP Dependencies: Removed axios dependency in favor of native fetch
- Modern Error Handling: Improved error handling with fetch-specific error types
- Timeout Support: Built-in timeout handling using AbortController
- Better Performance: Reduced bundle size and improved startup time
Enhanced Features
- Improved Logging: Runtime-aware logging with better error reporting
- Type Safety: Enhanced TypeScript support with stricter typing
- Modern JavaScript: Uses ES2023 features for better performance and readability
๐งช Development
Available Scripts
npm run build
- Compile TypeScript to JavaScriptnpm run dev
- Run in development mode with Node.jsnpm run dev:bun
- Run in development mode with Bunnpm start
- Run compiled server with Node.jsnpm run start:bun
- Run compiled server with Bunnpm run lint
- Run ESLintnpm run format
- Format code with Prettier
Code Quality
- TypeScript: Strict mode enabled with ES2023 target
- ESLint: Configured with TypeScript rules
- Prettier: Code formatting for consistency
- Modern Module Resolution: Uses bundler module resolution
๐ Performance Benefits
Bun Runtime
- Faster Startup: Significantly faster cold start times
- Better Memory Usage: More efficient memory management
- Native TypeScript: Direct TypeScript execution without compilation
Native Fetch
- Reduced Bundle Size: No external HTTP library dependencies
- Better Performance: Native implementation optimized by runtime
- Modern Standards: Uses web standard APIs
๐ Troubleshooting
Runtime Issues
- Ensure you're using Node.js 20+ or Bun 1.0+
- Check that fetch API is available in your runtime
- Verify environment variables are properly set
API Connectivity
- Use the
health_check
tool to verify API connectivity - Check your DevStride API credentials
- Ensure network connectivity to api.devstride.com
Build Issues
- Clear the dist folder:
npm run clean
- Reinstall dependencies:
rm -rf node_modules && npm install
- Check TypeScript configuration
๐ License
MIT License - see LICENSE file for details
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
๐ Support
For issues and questions:
- Check the for detailed technical information
- Use the
health_check
tool to diagnose connectivity issues - Review server logs for detailed error information