Mcp Session
@metorial/mcp-session
MCP session management for Metorial. Provides session handling and tool lifecycle management for Model Context Protocol.
0 downloads
v2.0.0
Capabilities
tools
Installation
Quick Install
Install using the MCPSearch CLI (recommended)
mcp install @metorial/mcp-sessionDon't have the CLI? Install it first
Run with npx
Run directly without installing
npx -y @metorial/mcp-sessionManual Configuration
Add to your MCP client configuration file
CClaude Code / Claude Desktop
Add to ~/.claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-session": {
"command": "npx",
"args": [
"-y",
"@metorial/mcp-session"
]
}
}
}CuCursor
Add to ~/.cursor/mcp.json
{
"mcp": {
"servers": {
"mcp-session": {
"command": "npx",
"args": [
"-y",
"@metorial/mcp-session"
]
}
}
}
}VSVS Code / Continue.dev
Add to .vscode/mcp.json or Continue settings
{
"mcpServers": {
"mcp-session": {
"command": "npx",
"args": [
"-y",
"@metorial/mcp-session"
]
}
}
}About
# @metorial/mcp-session
MCP session management for Metorial. Provides session handling and tool lifecycle management for Model Context Protocol.
## Installation
```bash
npm install @metorial/mcp-session
# or
yarn add @metorial/mcp-session
# or
pnpm add @metorial/mcp-session
# or
bun add @metorial/mcp-session
```
## Usage
This package provides direct MCP session management for advanced use cases.
```typescript
import { MetorialMcpSession } from '@metorial/mcp-session';
import { Metorial } from 'metorial';
let metorial = new Metorial({
apiKey: 'your-metorial-api-key'
});
// Create an MCP session instance
let mcpSession = new MetorialMcpSession(metorial, {
serverDeployments: ['your-server-deployment-id']
});
// Get the session metadata
let session = await mcpSession.getSession();
// Get the tool manager
let toolManager = await mcpSession.getToolManager();
// Get available tools
let tools = toolManager.getTools();
// Call a tool directly
let searchContextTool = tools.find(t => t.name === 'searchContext');
if (searchContextTool) {
let toolResponse = await searchContextTool.call({
query: 'metorial websocket explorer',
maxResults: 3
});
console.log('Tool response:', toolResponse);
}
// Clean up the session
await mcpSession.close();
```
## License
MIT License - see [LICENSE](../../LICENSE) file for details.
Reviews
No reviews yet. Be the first to review this package!
Quick Install
Install using the MCPSearch CLI (recommended)
mcp install @metorial/mcp-sessionDon't have the CLI? Install it first
Run with npx
Run directly without installing
npx -y @metorial/mcp-sessionManual Configuration
Add to your MCP client configuration file
CClaude Code / Claude Desktop
Add to ~/.claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-session": {
"command": "npx",
"args": [
"-y",
"@metorial/mcp-session"
]
}
}
}CuCursor
Add to ~/.cursor/mcp.json
{
"mcp": {
"servers": {
"mcp-session": {
"command": "npx",
"args": [
"-y",
"@metorial/mcp-session"
]
}
}
}
}VSVS Code / Continue.dev
Add to .vscode/mcp.json or Continue settings
{
"mcpServers": {
"mcp-session": {
"command": "npx",
"args": [
"-y",
"@metorial/mcp-session"
]
}
}
}Compatible With
Claude CodeCursorWindsurfContinue.dev
Details
- Version
- 2.0.0
- License
- MIT
- Category
- memory
- MCP Version
- 1.0
- Published
- 7/22/2025
- Updated
- 2/26/2026