Skip to main content
Glama
README.md
# mcp-thisway

```
███   ███
 ███   ███    ███╗   ███╗ ██████╗██████╗  ████████╗██╗  ██╗██╗███████╗██╗    ██╗ █████╗ ██╗   ██╗
  ███   ███   ████╗ ████║██╔════╝██╔══██╗ ╚══██╔══╝██║  ██║██║██╔════╝██║    ██║██╔══██╗╚██╗ ██╔╝
   ███   ███  ██╔████╔██║██║     ██████╔╝    ██║   ███████║██║███████╗██║ █╗ ██║███████║ ╚████╔╝
   ███   ███  ██║╚██╔╝██║██║     ██╔═══╝     ██║   ██╔══██║██║╚════██║██║███╗██║██╔══██║  ╚██╔╝
  ███   ███   ██║ ╚═╝ ██║╚██████╗██║         ██║   ██║  ██║██║███████║╚███╔███╔╝██║  ██║   ██║
 ███   ███    ╚═╝     ╚═╝ ╚═════╝╚═╝         ╚═╝   ╚═╝  ╚═╝╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝  ╚═╝   ╚═╝
███   ███
```

<p align="center">
  <img alt="MIT" src="https://img.shields.io/badge/license-MIT-f0a050?style=flat-square" />
  <img alt="MCP" src="https://img.shields.io/badge/protocol-MCP-7c5cff?style=flat-square" />
  <img alt="Bun" src="https://img.shields.io/badge/runtime-bun-fbf0df?style=flat-square&logo=bun&logoColor=black" />
  <img alt="SQLite" src="https://img.shields.io/badge/db-sqlite-0f80cc?style=flat-square&logo=sqlite&logoColor=white" />
</p>

<p align="center">
  Connect Linear, GitHub and Notion <b>once</b>. Bring the skills and memories you already have.<br />
  Claude Code, Codex, Cursor, Antigravity and Grokbot all see the same tools and the same context, from <b>your</b> server.
</p>

<p align="center">
  <a href="#-quick-start"><b>Quick start</b></a> ·
  <a href="#-connect-your-agents"><b>Connect agents</b></a>
</p>

<br />

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="docs/images/dark-overview.webp" />
    <img src="docs/images/light-overview.webp" alt="mcp-thisway dashboard: connected accounts, tool calls per agent and recent activity" width="960" />
  </picture>
</p>

## ✨ Why

Every agent lives on its own island. You log into Linear four times, copy the same skill to four folders, and teach Claude a rule that Codex never hears about.

mcp-thisway gives your agents one MCP endpoint for tools, skills, and memory on your server. It doesn't run a model.

## 🎬 Features

<table>
<tr>
<td width="45%">
<h3>Connect once, every agent gets it</h3>
<p>Search the catalog and install a connector with one click. Public ones are ready right away, the rest ask for an OAuth sign-in once. Every agent in the organization sees its tools.</p>
</td>
<td><img src="docs/images/features/catalog.webp" alt="The connector catalog with example providers and install options" width="100%" /></td>
</tr>
<tr>
<td width="45%">
<h3>Memory your agents share</h3>
<p>Notes linked with <code>[[slug]]</code>, versioned and checked for broken links or isolated notes. Switch to the graph to see how they connect.</p>
</td>
<td><img src="docs/images/features/memory.webp" alt="Example linked notes in shared memory" width="100%" /></td>
</tr>
<tr>
<td width="45%">
<h3>Skills that travel</h3>
<p>Your <code>SKILL.md</code> folders in one place. Turn a skill off without deleting it, open it to read or edit the instructions.</p>
</td>
<td><img src="docs/images/features/skills.webp" alt="An example skill open for inspection" width="100%" /></td>
</tr>
<tr>
<td width="45%">
<h3>One key per agent</h3>
<p>Create a key for each agent and get its config ready to paste for Claude Code, Codex, Grok and Cursor. Revoke one without touching the others.</p>
</td>
<td><img src="docs/images/features/keys.webp" alt="Example API keys named for individual agents" width="100%" /></td>
</tr>
<tr>
<td width="45%">
<h3>See what your agents use</h3>
<p>Calls, error rate and daily activity on the overview. The activity log shows every tool call, live, filtered by agent or connector.</p>
</td>
<td><img src="docs/images/features/usage.webp" alt="Example MCP calls and their results in the activity log" width="100%" /></td>
</tr>
<tr>
<td width="45%">
<h3>Hook up every agent in one command</h3>
<p>After installing with Just, <code>mcp-thisway setup</code> signs in through the browser and configures supported agents.</p>
</td>
<td><img src="docs/images/features/setup.webp" alt="The setup guide with the MCP endpoint and client options" width="100%" /></td>
</tr>
</table>

## 🚀 Quick start

The Just tasks install a macOS user service from this checkout. You'll need Bun, Just, and `~/.local/bin` on your `PATH`.

1. Run `bun install` from the repository root.
2. For a **new install only**, copy `.env.example` to `.env`. Set `MCP_THISWAY_SECRET` to a new random value (for example, generate one with `openssl rand -hex 32`). For local use, set `PUBLIC_URL=http://localhost:4312`.
3. Run `just install`, then open the dashboard with `just open` if it didn't open automatically. Complete first-time account setup.

Use `just update` after updating the source, `just stop` to stop the service, and `just start` to start it again. `just uninstall` removes the service and command links without removing your configuration or database.

### Upgrade an existing install without resetting data

1. Record the active service's database directory, public URL, bind address, port, and any OAuth overrides. The database is `runelay.db`. Resolve any relative data path from the old API process's working directory. Save the old `.env`, launchd plist, and runnable checkout or build separately.
2. Take a consistent SQLite backup with `.backup`. Keep the backup and `.env` private. Rehearse on an isolated copy using a different listener, without real agents or live OAuth traffic.
3. In the new service configuration, translate any old `RUNELAY_*` settings to `MCP_THISWAY_*`. **Keep the same secret value**, public URL, host, port, and OAuth settings. Set `MCP_THISWAY_DATA` to the absolute path of the existing database directory and `MCP_THISWAY_REQUIRE_EXISTING_DB=true`.
4. Stop the old service, take a final backup, and run `just install` from the new checkout. Confirm existing accounts, connectors, and MCP clients work with their current credentials. If the dashboard shows first-time setup, stop the new service and check the database path and secret before proceeding.
5. To roll back, run `just stop` for the new service. Restore the old configuration and runnable checkout, then start the old launchd service. Keep the final backup; restore it only if needed, with both services stopped, so you don't discard writes made after cutover.

### Migrate in one command

On the computer where your agents live:

```sh
mcp-thisway migrate
```

`migrate` logs in through the browser if needed, then reads Claude Code, Codex, Cursor, Grok, Gemini and OpenCode: MCP servers, memories, skills and global instructions. It shows a summary per agent, asks once and sends everything.

Some accounts come connected, others ask for login, and local command servers stay on the agent.

## 🤖 Connect your agents

1. In the panel, open **Acesso → Configurar agentes**. The guide walks you through connecting accounts, creating a key and wiring each client.
2. Or paste the config yourself (replace the URL and key):

**Claude Code**

```sh
claude mcp add --scope user --transport http mcp-thisway http://localhost:4312/v1/mcp \
  --header "Authorization: Bearer rnl_..."
```

**All of them at once** with the CLI: `mcp-thisway login`, then `mcp-thisway connect`.

For upstream connector sign-in and client-specific callbacks, see [OAuth for remote MCP](docs/oauth/README.md).

## 📥 Bring your context

The `mcp-thisway` CLI runs on the computer where your agents keep their files. After installing with Just, log in through the browser:

```sh
mcp-thisway login      # finds your server, opens the browser, saves this computer's key
mcp-thisway status     # server, organization and what is stored in it
mcp-thisway open       # opens the dashboard in the browser
mcp-thisway push       # memories, skills and global instructions from every installed agent
mcp-thisway pull       # brief into CLAUDE.md and AGENTS.md, new skills for connected agents
mcp-thisway sync       # push, then pull
mcp-thisway connect    # registers the MCP in Claude Code, Codex, Cursor and Grok
mcp-thisway import     # MCP server configs become connections
mcp-thisway logout     # revokes this computer's key and clears the config
```

Run `mcp-thisway --help` for the full command list.

## 🗺️ Roadmap

- Tools page with per-tool approval policies
- Organization members and invites
- Activity log per API key

## Credits

Thanks to Anderson Medeiros and the Runelay contributors. This project is based on the MIT-licensed [Runelay `v0.6.12`](https://github.com/runelay/runelay/tree/v0.6.12). See [LICENSE](LICENSE).