Skip to content

Commit 2adee71

Browse files
committed
Publish v1
1 parent 8fbc8c1 commit 2adee71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4681
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# moon
3+
.moon/cache
4+
.moon/docker
5+
6+
node_modules/
7+
dist/
8+
9+
# Yarn zero install
10+
.yarn/*
11+
!.yarn/cache
12+
!.yarn/patches
13+
!.yarn/plugins
14+
!.yarn/releases
15+
!.yarn/sdks
16+
!.yarn/versions

.moon/tasks/tag-extension.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
$schema: "https://moonrepo.dev/schemas/tasks.json"
2+
3+
fileGroups:
4+
assets:
5+
- assets/**/*
6+
sources:
7+
- src/**/*
8+
dist-assets:
9+
- dist/assets/**/*
10+
dist-manifest:
11+
- dist/manifest.json
12+
dist-vendors:
13+
- dist/vendors/**/*
14+
15+
tasks:
16+
extension-build:
17+
platform: system
18+
script: |
19+
#!/usr/bin/env bash
20+
rm -rf ./dist/assets ./dist/manifest.json ./dist/vendors
21+
mkdir -p ./dist/vendors/
22+
cp -r ./src/manifest.json ./dist/manifest.json
23+
cp -r ./assets/ ./dist/assets
24+
cp -r $workspaceRoot/node_modules/webextension-polyfill/dist ./dist/vendors/webextension-polyfill
25+
inputs:
26+
- '@group(assets)'
27+
- '@group(sources)'
28+
outputs:
29+
- '@group(dist-vendors)'
30+
- '@group(dist-assets)'
31+
- '@group(dist-manifest)'

.moon/tasks/tag-tsup.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$schema: "https://moonrepo.dev/schemas/tasks.json"
2+
3+
fileGroups:
4+
assets:
5+
- assets/**/*
6+
sources:
7+
- src/**/*
8+
tsup:
9+
- tsup.config.ts
10+
dist-js:
11+
- dist/**/*.{cjs,mjs,js}
12+
13+
tasks:
14+
tsup-build:
15+
toolchain: node
16+
command: tsup
17+
inputs:
18+
- "@group(assets)"
19+
- "@group(sources)"
20+
- "@group(tsup)"
21+
outputs:
22+
- "@group(dist-js)"

.moon/toolchain.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$schema: "https://moonrepo.dev/schemas/toolchain.json"
2+
3+
node:
4+
packageManager: "yarn"
5+
syncProjectWorkspaceDependencies: false
6+
typescript:
7+
syncProjectReferences: true
8+
syncProjectReferencesToPaths: true
9+
createMissingConfig: true
10+
routeOutDirToCache: true

.moon/workspace.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://moonrepo.dev/docs/config/workspace
2+
$schema: './cache/schemas/workspace.json'
3+
4+
# Require a specific version of moon while running commands, otherwise fail.
5+
# versionConstraint: '>=1.0.0'
6+
7+
# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
8+
# extends: './shared/workspace.yml'
9+
10+
# REQUIRED: A map of all projects found within the workspace, or a list or file system globs.
11+
# When using a map, each entry requires a unique project ID as the map key, and a file system
12+
# path to the project folder as the map value. File paths are relative from the workspace root,
13+
# and cannot reference projects located outside the workspace boundary.
14+
projects:
15+
- 'packages/*'
16+
- 'apps/*'

.prototools

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
moon = "~1.33"
2+
node = "~22.14"
3+
yarn = "4.8.0"

.yarn/releases/yarn-4.8.0.cjs

Lines changed: 935 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yarnPath: .yarn/releases/yarn-4.8.0.cjs
2+
nodeLinker: node-modules

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
# MCP Browser Kit
2+
3+
A Model Control Protocol (MCP) Server for interacting with manifest v2 compatible browsers.
4+
5+
## Usage
6+
7+
1. Add MCP Browser Kit to your MCP Client:
8+
9+
```json
10+
{
11+
"mcpServers": {
12+
"mcp-browser-kit": {
13+
"command": "npx",
14+
"args": ["@mcp-browser-kit/server"]
15+
}
16+
}
17+
}
18+
```
19+
20+
2. Load extension into manifest v2 compatible browser:
21+
22+
- Chrome ❌
23+
- Brave ✅
24+
- Firefox ✅
25+
26+
3. Enable extension and start messaging:
27+
28+
```
29+
use mcp-browser-kit, Star the last opening github repo on my browser
30+
```

apps/extension/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# extension

0 commit comments

Comments
 (0)