
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@enconvo/mcp
Advanced tools
OAuth authentication utilities for MCP (Model Context Protocol) clients, providing secure authentication flows for connecting to OAuth-protected MCP servers.
npm install @enconvo/mcp-oauth @modelcontextprotocol/sdk
pnpm add @enconvo/mcp-oauth @modelcontextprotocol/sdk
import { OAuthFlowManager } from '@enconvo/mcp-oauth';
const flowManager = new OAuthFlowManager(
'https://api.example.com/mcp', // MCP server URL
'my-mcp-client' // Client name
);
try {
const tools = await flowManager.executeOAuthFlow();
console.log('Available tools:', tools);
} catch (error) {
console.error('Authentication failed:', error);
}
import { SimpleOAuthClientProvider } from '@enconvo/mcp-oauth';
import { OAuthClientMetadata } from '@modelcontextprotocol/sdk/shared/auth.js';
const clientMetadata: OAuthClientMetadata = {
client_name: 'my-app',
redirect_uris: ['http://localhost:8080/callback'],
grant_types: ['authorization_code', 'refresh_token'],
response_types: ['code'],
token_endpoint_auth_method: 'client_secret_post',
scope: 'mcp:tools'
};
const provider = new SimpleOAuthClientProvider(
'http://localhost:8080/callback',
clientMetadata
);
import { findAvailablePort, isPortAvailable } from '@enconvo/mcp-oauth';
// Check if a specific port is available
const available = await isPortAvailable(8080);
// Find the next available port starting from 8080
const port = await findAvailablePort(8080);
console.log(`Using port: ${port}`);
@modelcontextprotocol/sdk
>= 1.17.3@enconvo/api
(peer dependency, optional for non-Enconvo environments)Main class for managing OAuth authentication flows with MCP servers.
new OAuthFlowManager(serverUrl: string, clientName: string)
executeOAuthFlow(): Promise<any>
- Execute complete OAuth flow and return MCP tools listOAuth client provider implementation with secure token storage.
new SimpleOAuthClientProvider(redirectUrl: string | URL, clientMetadata: OAuthClientMetadata)
clientInformation(): Promise<OAuthClientInformation | undefined>
saveClientInformation(clientInformation: OAuthClientInformationFull): Promise<void>
tokens(): Promise<OAuthTokens | undefined>
saveTokens(tokens: OAuthTokens): Promise<void>
isPortAvailable(port: number): Promise<boolean>
- Check if a port is availablefindAvailablePort(startPort: number, maxAttempts?: number): Promise<number>
- Find next available portMIT © Enconvo
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.
FAQs
OAuth authentication utilities for MCP (Model Context Protocol) clients
We found that @enconvo/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.