Connect Slog to your favorite AI assistants through the Model Context Protocol (MCP) for seamless time tracking and project management.
The Model Context Protocol (MCP) is an open standard developed by Anthropic that enables AI assistants to securely connect to external data sources and tools. Think of it as a bridge between your AI assistant and your applications, allowing them to interact in a controlled, secure manner.
Key Benefits:
With Slog's MCP server, your AI assistant becomes your personal time tracking and project management assistant. You can ask it to:
Cursor is a powerful AI-powered code editor that supports MCP. Here's how to set it up:
First, you'll need your Slog API token. Get it from your account settings.
In Cursor, you need to edit the MCP configuration file. On macOS, this is typically located at:
~/.cursor/mcp.json
Create this file if it doesn't exist, or edit the existing one.
Add the following configuration to your mcp.json file:
{
"mcpServers": {
"slog": {
"url": "https://www.slog-app.com/mcp/sse",
"headers": {
"Authorization": "Bearer YOUR_SLOG_API_TOKEN"
}
}
}
}
Important: Replace YOUR_SLOG_API_TOKEN with your actual API token from Step 1.
After saving the configuration file, restart Cursor to load the new MCP server.
While this guide focuses on Cursor, Slog's MCP server works with any MCP-compatible AI assistant. The configuration format is similar for most clients:
claude_desktop_config.json~/.continue/config.jsonBeyond AI assistants, you can also integrate Slog's MCP server programmatically using developer tools and libraries. This is perfect for building custom integrations, automated workflows, or embedding Slog functionality into your own applications.
For Ruby developers, you can use the ruby_llm-mcp gem to connect to Slog's MCP server. This library provides full MCP protocol support and integrates seamlessly with RubyLLM.
Example Setup:
require 'ruby_llm/mcp'
# Connect to Slog's MCP server
client = RubyLLM::MCP.client(
name: "slog",
transport_type: :sse,
config: {
url: "https://www.slog-app.com/mcp/sse",
headers: {
"Authorization" => "Bearer YOUR_SLOG_API_TOKEN"
}
}
)
# Get available tools
tools = client.tools
puts "Available Slog tools:"
tools.each do |tool|
puts "- #{tool.name}: #{tool.description}"
end
# Use tools with RubyLLM chat
chat = RubyLLM.chat(model: "gpt-4")
chat.with_tools(*client.tools)
# Ask questions that use Slog's MCP tools
response = chat.ask("Track time for the 'API Development' project")
puts response
The ruby_llm-mcp gem supports multiple transport types including SSE (Server-Sent Events), STDIO, and streamable HTTP. It's perfect for building AI-powered applications that can seamlessly interact with your time tracking data.
Since Slog's MCP server adheres to the Model Context Protocol specification, you can use any MCP-compatible library in your preferred programming language:
mcp-client@modelcontextprotocol/sdk packageIf you encounter any issues setting up the MCP server or have questions, please contact our support team.
You can integrate Slog's MCP server with multiple AI assistants simultaneously. This allows you to track time and manage projects from whichever AI tool you're using at the moment.