Repository navigation
Connecting MCP Clients
Peykan speaks three MCP transports:
| Transport | Endpoint | Typical clients |
|---|---|---|
| SSE (default) | http://localhost:6278/sse |
MCP Inspector, Windsurf, ollmcp, most clients |
| Streamable HTTP | http://localhost:6278/mcp |
Newer clients; start with --transport streamable-http
|
| stdio | the client starts peykan itself |
Claude Desktop and other local-subprocess configs |
For the HTTP transports, start the server first with peykan demo (simulated vehicle) or peykan server (real hardware or replayed logs only).
On connect, the server sends clients short instructions on which tool answers which question, and offers five prompts.
Add to claude_desktop_config.json:
{
"mcpServers": {
"peykan": {
"command": "peykan",
"args": ["demo", "--transport", "stdio"]
}
}
}Use the full path to peykan (e.g. from where peykan / which peykan) if Claude Desktop can't find it. Logs go to stderr, so they don't interfere with the protocol.
Run peykan demo, then add a server with URL http://localhost:6278/sse in the client's MCP settings. These clients use their own models.
A browser UI for calling tools by hand, handy for exploring:
npx @modelcontextprotocol/inspectorConnect to http://localhost:6278/sse.
Ollama runs models but can't connect to MCP servers itself; ollmcp bridges the two.
- Pull a model with tool calling that fits your GPU, e.g.
ollama pull qwen3:8b. Check withollama show <model>:toolsmust be listed under Capabilities (the originalllama3can't call tools). - Terminal A:
peykan demo - Terminal B:
pip install ollmcp ollmcp -u http://localhost:6278/sse -m qwen3:8b
- In the chat, run once:
-
/tmturns thinking mode off. With thinking on, answers take 20–60 s andollmcpsometimes drops the tool call after thinking ("No Response from Model"). -
/hilstops the confirmation prompt before every tool call. -
/diagnose_vehicleruns the health-check prompt.
-
- Ask in plain language: "What's the latest vehicle speed?"
If replies are slow or stuck on "working...", check ollama ps while it answers. On laptops with integrated and dedicated graphics, Ollama may pick the integrated GPU; set OLLAMA_VULKAN=0 and OLLAMA_CONTEXT_LENGTH=8192 and restart Ollama (on Windows: setx both, then Quit from the tray icon and relaunch).
Open WebUI can also use Ollama models with MCP tools.
- Name the tool if a model takes a roundabout route: "use get_vehicle_snapshot".
- Tools that take IDs accept hex strings (
"0xF004") and J1939 acronyms ("EEC1"), so models don't have to convert hex to decimal, a common source of wrong requests. - The prompts package multi-step tasks so the model doesn't have to plan the sequence itself.
Getting started
Reference
Protocols
Features
Operating it
Contributing