CLI for Osiris SDK - Create and manage MCP servers with authentication
npm install @osiris-ai/cliBuild authenticated MCP servers with ease.
Osiris CLI is a command-line tool for creating and managing MCP (Model Context Protocol) servers with built-in authentication. Osiris stands for "OAuth-Secured Intelligent Resource Integration System" - a comprehensive platform for building AI-powered applications with secure authentication, policy enforcement, and blockchain integration.
š Links:
- Frontend: osirislabs.xyz
- API: api.osirislabs.xyz
- Discord: Join our community
``bashUsing npm
npm install -g @osiris-ai/cli
$3
`bash
1. Register your account
npx @osiris-ai/cli register2. Create OAuth client
npx @osiris-ai/cli create-client3. Connect authentication services
npx @osiris-ai/cli connect-auth4. Create your first MCP server
npx @osiris-ai/cli create-mcp5. Start building! š
cd your-project && npm run dev
`š Commands
$3
####
register
Register a new user account with Osiris platform.
- Creates your Osiris account
- Sets up initial configuration
- Prepares your environment for OAuth client creation####
create-client
Create an OAuth client for your applications.
- Generates OAuth client credentials
- Configures authentication flows
- Required before creating MCP servers####
connect-auth
Connect external authentication services to your account.
- Supports multiple OAuth providers
- Manages authentication tokens
- Enables service integrations for your MCP servers
- New: Enhanced wallet connection with Connection ID and Wallet ID display
- New: Simplified account listing with policy management####
create-mcp
Create a new MCP server project with authentication.
- Generates complete project structure
- Installs dependencies automatically
- Configures authentication middleware
- Creates example tools, prompts, and resources
- New: User confirmation for publishing to Osiris Hub
- New: Enhanced package management with conditional publishingGenerated Project Structure:
`
my-mcp-project/
āāā package.json
āāā .env
āāā .env.example
āāā README.md
āāā tsconfig.json (if TypeScript)
āāā .gitignore
āāā osiris.json
āāā index.ts/js
āāā client.ts/js
āāā tools/
ā āāā hello-world.ts/js
āāā prompts/
ā āāā hello-world.ts/js
āāā resources/
ā āāā hello-world.ts/js
āāā schema/
āāā index.ts/js
`Osiris SDK Quickstart:
`typescript
import { createMcpServer } from '@osiris-ai/sdk';
import { PostgresDatabaseAdapter } from '@osiris-ai/postgres-sdk';await createMcpServer({
name: "new-mcp",
version: "1.0.0",
auth: {
useHub: true,
hubConfig: {
baseUrl: "https://api.osirislabs.xyz/v1",
clientId: "osiris-client-id",
clientSecret: "osiris-client-secret",
},
database: new PostgresDatabaseAdapter({
connectionString: databaseUrl
})
},
server: {
port,
mcpPath: "/mcp",
callbackBasePath: "/callback",
baseUrl:
http://localhost:${port},
osirisConfigPath: "./osiris.json",
logger: (msg: string) => logger.info(msg)
},
configure: (server) => {
logger.info("āļø Configuring server tools...");
server.tool("hello_world", "Simple greeting tool", {}, async () => {
return {
content: [{
type: "text",
text: "Hello World from Osiris MCP!"
}]
};
});
logger.info("ā
MCP configured successfully");
}
});
`$3
####
list-auth
List all connected authentication services.
- Shows connected providers
- Displays authentication status
- Includes scope information####
list-clients
List all your registered OAuth clients.
- Shows client IDs and metadata
- Displays client status
- Manages client configurations
- Includes both hub and local clients####
list-connections
List all your MCP server connections.
- Shows deployed MCP servers
- Displays connection status
- Manages active connections####
list-mcps
List all your MCP projects.
- Shows project details
- Displays project status
- Quick project overview####
connect-mcp-auth
Connect authentication to specific MCP deployments.
- Links auth services to MCP servers
- Configures service-specific authentication
- Manages deployment permissions
- New: Enhanced service client validation
- New: Policy template selection (Allow All, Strict Policy, Custom Policy)####
update-mcp-auth
Update authentication configuration for existing MCP servers.
- New: Choose between "Refresh MCP Connection" or "MCP Connection Policy"
- New: Policy template selection with custom JSON support
- Update service scopes and refresh authentication tokens
- Enhanced error handling and user guidanceš Authentication & Security
Osiris CLI supports multiple authentication providers through dedicated SDKs:
#### Credential Sanitization
- Automatic sanitization of sensitive data in API responses
- Secure storage and retrieval of user credentials
- Enhanced token refresh mechanisms with JWT ID (jti) for uniqueness
$3
#### OAuth Providers
@osiris-ai/github-sdk
- Scopes: repo, user, admin:org, gist, notifications
- Use Cases: Repository management, issue tracking, pull requests@osiris-ai/google-sdk
- Services: Gmail, Google Drive, Calendar, Sheets
- Scopes: email, profile, drive, calendar, spreadsheets@osiris-ai/discord-sdk
- Scopes: identify, email, guilds, guilds.join
- Use Cases: Bot management, server automation, user management@osiris-ai/linear-sdk
- Scopes: read, write, admin
- Use Cases: Issue tracking, project management, team coordination@osiris-ai/notion-sdk
- Scopes: read, update, insert
- Use Cases: Knowledge management, database operations, content creation@osiris-ai/slack-sdk
- Scopes: chat:write, channels:read, users:read
- Use Cases: Team communication, workflow automation, notifications$3
@osiris-ai/postgres-sdk
- Features: Connection pooling, query building, migrations
- Use Cases: Relational data storage, complex queries@osiris-ai/mongodb-sdk
- Features: Document operations, aggregation, indexing
- Use Cases: NoSQL data storage, flexible schemas@osiris-ai/redis-sdk
- Features: Caching, session storage, pub/sub
- Use Cases: High-performance caching, real-time features@osiris-ai/sqlite-sdk
- Features: Local database, file-based storage
- Use Cases: Development, local data storage, embedded applications$3
@osiris-ai/innertube-captions-sdk
- Features: YouTube caption extraction, video processing
- Use Cases: Content analysis, video transcription, accessibilityCore SDK
@osiris-ai/sdk`- Node.js 18.0.0 or higher
- npm, pnpm, or yarn package manager
- Documentation: osirislabs.xyz
- API Reference: api.osirislabs.xyz
- Discord Community: Join us
- Issues: Report bugs in our GitHub repository
- Policy Builder: policy-builder.osirislabs.xyz
- ā Hyperliquid Integration: High-performance DeFi trading
- š Enhanced Security: Google Cloud KMS encryption
- šļø Policy Engine: Advanced transaction policy management
- š¦ New Services: Gmail, Drive, Calendar, Discord, Linear, Notion
- š§ Improved CLI: Better error handling and user experience
- š Blockchain Support: Enhanced Web3 and DeFi capabilities
- š Analytics: Comprehensive usage tracking and insights
---
Ready to build the future of AI automation? š
With Osiris CLI's enhanced security, blockchain integration, and comprehensive service support, you can create sophisticated MCP servers that are production-ready from day one!