npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@digimetalab/agentlink

v0.1.0

Published

Universal MCP config sync for AI coding agents — Claude Code, Gemini CLI, OpenCode, Codex

Readme

agentlink

Universal MCP config sync for AI coding agents — one command to rule them all.

npm version npm downloads license GitHub


The Problem

You use multiple AI coding agents — Claude Code, Gemini CLI, Codex, OpenCode — and every single one has its own config file in a different location with a different format.

Add a new MCP server? You have to configure it four times. Remove one? Same story. It's 2026 and we're still copying JSON by hand.

agentlink fixes this.


What is agentlink?

agentlink is a CLI tool and npm package that acts as a universal MCP configuration layer across all major AI coding agents. Define your MCP servers once in a single agentlink.json file — agentlink syncs it everywhere.

Your agentlink.json
       │
       ├──▶ ~/.claude/mcp.json          (Claude Code)
       ├──▶ ~/.gemini/mcp_servers.json  (Gemini CLI)
       ├──▶ ~/.opencode/mcp.json        (OpenCode)
       └──▶ ~/.codex/mcp.json           (OpenAI Codex)

Install

npm install -g agentlink

Or use without installing:

npx agentlink

Quick Start

# Initialize agentlink in your project
npx agentlink init

# Add an MCP server (syncs to all connected agents)
npx agentlink add github

# Sync your config to all detected agents
npx agentlink sync

# Check status — which agents are linked
npx agentlink status

CLI Commands

| Command | Description | |---|---| | agentlink init | Initialize agentlink.json in current directory | | agentlink sync | Sync MCP config to all detected agents | | agentlink sync --agents claude,gemini | Sync to specific agents only | | agentlink add <mcp-server> | Add an MCP server and sync | | agentlink remove <mcp-server> | Remove an MCP server and sync | | agentlink list | List all configured MCP servers | | agentlink status | Show all linked agents and their config paths | | agentlink pull | Pull config from a specific agent as source of truth | | agentlink diff | Show config differences between agents |


Supported Agents

| Agent | Config Path | Status | |---|---|---| | Claude Code | ~/.claude/mcp.json | ✅ Supported | | Gemini CLI | ~/.gemini/mcp_servers.json | ✅ Supported | | OpenCode | ~/.opencode/mcp.json | ✅ Supported | | OpenAI Codex | ~/.codex/mcp.json | ✅ Supported | | Cursor | .cursor/mcp.json | 🔜 Coming soon | | Windsurf | .windsurf/mcp.json | 🔜 Coming soon |


agentlink.json Format

{
  "$schema": "https://agentlink.dev/schema/v1.json",
  "version": "1",
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/projects"]
    },
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  },
  "agents": {
    "include": ["claude", "gemini", "opencode", "codex"],
    "autoSync": true
  }
}

Use as a Library

import { AgentLink } from 'agentlink';

const link = new AgentLink();

// Detect all installed agents
const agents = await link.detectAgents();
console.log(agents); // ['claude', 'gemini', 'opencode']

// Sync config to all agents
await link.sync();

// Add a new MCP server programmatically
await link.addServer('github', {
  command: 'npx',
  args: ['-y', '@modelcontextprotocol/server-github'],
  env: { GITHUB_TOKEN: process.env.GITHUB_TOKEN }
});

// Get diff between agents
const diff = await link.diff('claude', 'gemini');

Why agentlink?

  • Zero learning curve — works with your existing MCP configs
  • Agent auto-detection — finds installed agents automatically
  • Conflict resolution — smart merge when configs diverge
  • Env variable safety — never writes raw secrets to config files
  • TypeScript-first — full type safety, works in any JS/TS project
  • MCP standard — follows the Model Context Protocol specification

Roadmap

  • [x] Core sync engine
  • [x] Claude Code + Gemini CLI support
  • [x] OpenCode + Codex support
  • [ ] Cursor & Windsurf support
  • [ ] GUI companion app
  • [ ] Team config sharing via git
  • [ ] MCP server marketplace integration

Contributing

PRs welcome! See CONTRIBUTING.md.

git clone https://github.com/digimetalab/agentlink
cd agentlink
npm install
npm run dev

License

MIT © digimetalab