Junie native, AI Assistant via bridge
Use Forkmate in JetBrains
Junie, JetBrains’ coding agent, sends your Forkmate key in a header itself. AI Assistant’s docs don’t show a way to set a header, so it uses a small bridge.
Needs a key. JetBrains runs on your computer, so it connects with a personal key instead of a sign-in. Make a key in Forkmate · How keys work
Needs a bridge. AI Assistant’s docs don’t show a way to send a header to a remote server, so it reaches Forkmate through mcp-remote, which needs Node.js. Junie doesn’t need it.
No Forkmate account yet? Create one free first. It takes under a minute. You make your key there.
I had two eggs and toast for breakfast.
Logged. Want me to total today so far?
Set up Forkmate in JetBrains
https://mcp.forkmate.ai/- Make a keyIn Forkmate, open Settings → Keys for local apps (
https://app.forkmate.ai/#keys), name the key after JetBrains, pick when it expires and click Make key. Copy it: Forkmate shows it once. How keys work: forkmate.ai/connect/keys/. - Junie: add ForkmateOpen Settings → Tools → Junie → MCP Settings and add the Junie JSON below with your key (saved to ~/.junie/mcp/mcp.json).
- AI Assistant: add the bridgeOpen Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add, and paste the AI Assistant JSON below with your key.
- Give your OK onceThe first time you log, Forkmate asks once for your OK to store your food diary. Agree the way it asks, in the chat or through the link it gives you to agree on the web, then log the meal again if it wasn’t saved.
- Log your first mealIn Junie or AI Assistant, say “I had two eggs and toast for breakfast.” It logs the meal with calories and macros to your Forkmate diary.
Junie (~/.junie/mcp/mcp.json)
{
"mcpServers": {
"forkmate": {
"url": "https://mcp.forkmate.ai/",
"headers": {
"Authorization": "Bearer fmk_your_key_here"
}
}
}
}AI Assistant (via mcp-remote)
{
"mcpServers": {
"forkmate": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.forkmate.ai/",
"--header",
"Authorization:${FORKMATE_AUTH}"
],
"env": {
"FORKMATE_AUTH": "Bearer fmk_your_key_here"
}
}
}
}mcp-remote is an open-source proxy that runs on your computer and needs Node.js 18 or later. It passes your app’s requests to Forkmate with your key in the Authorization header. Put your key in place of fmk_your_key_here, after “Bearer ”.
What you need
- A free Forkmate account (sign up). There is no paid plan.
- A JetBrains IDE with Junie or AI Assistant enabled. AI Assistant’s bridge needs Node.js 18 or later.
Checked against these sources: JetBrains: AI Assistant MCP, Junie: MCP configuration, mcp-remote README. JetBrains changes its menus often; if yours looks different, trust what it shows.
What to say first
Talk to JetBrains the way you’d tell a friend:
- “I had two eggs and toast for breakfast.”
- “How many calories have I had today?”
- “Make the toast two slices.”
- “What did I eat this week?”
It logs the meal with calories, protein, carbs and fat to your diary at app.forkmate.ai.
Good to know in JetBrains
- In AI Assistant you choose whether Forkmate is available globally or only in the current project.
- Junie in the IDE and the Junie CLI share the same mcp.json.
If something goes wrong in JetBrains
- Forkmate shows as disconnected in AI Assistant
- Select it and click Reconnect. Logs are in the mcp folder under Help → Show Log in Finder/Explorer.
- Junie shows Forkmate as Failed
- Run /mcp to list servers, then check the config and the key in it.
Checked against JetBrains AI Assistant: MCP, Junie docs: MCP configuration.
Forkmate shortcuts
Forkmate comes with ready-made requests for the everyday jobs: log a meal, fix the last entry, see what’s left today, log your usual, hit your protein, a weekly check-in. We haven’t found MCP shortcuts (prompts) in JetBrains’s menus or documentation, so type or paste the request instead.
- Log a meal (log-meal)
“Log this to my Forkmate diary: two eggs and toast with butter” - Fix my last entry (fix-last-entry)
“Fix the last thing I logged in Forkmate: it was 2 eggs, not 3” - What's left today (today-so-far)
“Show me today so far in Forkmate: my calories, protein, carbs and fat.” - Log my usual (log-my-usual)
“Log my usual breakfast to Forkmate.” - Hit my protein today (hit-protein)
“How much protein have I had today in Forkmate, and how far am I from my target of 120 g? Suggest a few foods for my remaining meals and snacks that would close the gap, using my food profile and the foods I usually eat.” - Weekly check-in (week-review)
“Give me a check-in on my last 7 days in Forkmate (get_range): calories, protein, carbs and fat per day and on average, how many days I logged, and the foods I ate most.” - Move my MyFitnessPal history (import-myfitnesspal)
“How do I move my food diary history from MyFitnessPal to Forkmate? Walk me through exporting my data for free and importing it with the guided importer described at https://forkmate.ai/migrate-from-myfitnesspal/. Don't log anything yet.”
Shortcut or not, Forkmate sends JetBrains the same logging rules when it connects: log your own words, keep your amounts, and look foods up before estimating.
Start logging from JetBrains
Create your free account, connect once, and your next meal is one sentence away. No card, no paid plan.