Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 90455ba

Browse files
committed
BR: folder structure remove node modules
1 parent 634f802 commit 90455ba

10,018 files changed

Lines changed: 49221 additions & 1189299 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Oututs
25+
.next/
26+
out/
27+
build
28+
dist
29+
30+
31+
# Debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# Misc
37+
.DS_Store
38+
*.pem
39+
40+
41+
# Python-generated files
42+
__pycache__/
43+
*.py[oc]
44+
build/
45+
dist/
46+
wheels/
47+
*.egg-info
48+
.coverage
49+
agent_history.gif
50+
static/browser_history/*.gif
51+
52+
# Virtual environments
53+
.venv
54+
55+
# user conf
56+
conf.yaml
57+
58+
# Agents
59+
.cursor
60+
.cursorrules
61+
.claude

README.md

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# MCP-Use Monorepo
2+
3+
This is a monorepo containing multiple packages for the MCP-Use ecosystem.
4+
5+
## Packages
6+
7+
- **`mcp-use-ts`** - Core MCP integration library
8+
- **`@mcp-use/inspector`** - MCP Inspector package for debugging and inspecting MCP servers
9+
- **`@mcp-use/cli`** - Command-line interface for MCP
10+
- **`create-mcp-use-app`** - Create new MCP-Use applications with one command
11+
12+
## Development
13+
14+
```bash
15+
# Install dependencies
16+
pnpm install
17+
18+
# Build all packages
19+
pnpm build
20+
21+
# Run tests for all packages
22+
pnpm test
23+
24+
# Development mode (watch)
25+
pnpm dev
26+
```
27+
28+
## Publishing Packages
29+
30+
### Prerequisites
31+
32+
1. Ensure you're logged in to npm:
33+
```bash
34+
npm login
35+
```
36+
37+
2. Verify package versions are updated in respective `package.json` files
38+
39+
### Publishing Individual Packages
40+
41+
#### Option 1: Publish from package directory
42+
43+
```bash
44+
# Publish mcp-use-ts
45+
cd packages/mcp-use-ts
46+
pnpm publish --access public
47+
48+
# Publish inspector
49+
cd packages/inspector
50+
pnpm publish --access public
51+
52+
# Publish CLI
53+
cd packages/cli
54+
pnpm publish --access public
55+
56+
# Publish create-mcp-use-app
57+
cd packages/create-mcp-use-app
58+
pnpm publish --access public
59+
```
60+
61+
#### Option 2: Publish from root using filters
62+
63+
```bash
64+
# Publish specific package from root
65+
pnpm --filter mcp-use-ts publish --access public
66+
pnpm --filter @mcp-use/inspector publish --access public
67+
pnpm --filter @mcp-use/cli publish --access public
68+
pnpm --filter create-mcp-use-app publish --access public
69+
```
70+
71+
#### Option 3: Publish all packages at once
72+
73+
```bash
74+
# Publish all public packages
75+
pnpm -r publish --access public
76+
```
77+
78+
### Version Management
79+
80+
#### Update versions individually
81+
82+
```bash
83+
# Bump version for specific package
84+
pnpm --filter mcp-use-ts version patch
85+
pnpm --filter @mcp-use/inspector version minor
86+
pnpm --filter @mcp-use/cli version major
87+
```
88+
89+
#### Update versions using changesets (recommended)
90+
91+
First, install changesets:
92+
```bash
93+
pnpm add -D @changesets/cli -w
94+
pnpm changeset init
95+
```
96+
97+
Then use changesets workflow:
98+
```bash
99+
# Create a changeset
100+
pnpm changeset
101+
102+
# Version packages based on changesets
103+
pnpm changeset version
104+
105+
# Publish packages that have changed
106+
pnpm changeset publish
107+
```
108+
109+
### Pre-publish Checklist
110+
111+
1. **Build all packages**: `pnpm build`
112+
2. **Run tests**: `pnpm test`
113+
3. **Check for lint errors**: `pnpm lint`
114+
4. **Update CHANGELOG.md** (if applicable)
115+
5. **Commit all changes**
116+
6. **Create git tag** (optional): `git tag v0.1.0`
117+
118+
### Publishing with Different Access Levels
119+
120+
```bash
121+
# Public scoped packages (default for @org/package)
122+
pnpm publish --access public
123+
124+
# Private packages (requires npm paid account)
125+
pnpm publish --access restricted
126+
127+
# Dry run (see what would be published)
128+
pnpm publish --dry-run
129+
```
130+
131+
### Troubleshooting
132+
133+
#### If workspace protocol causes issues during publish
134+
135+
The `workspace:*` protocol in dependencies will be automatically replaced with actual version numbers during publish. If this doesn't work:
136+
137+
1. Ensure you're using pnpm >= 7.0.0
138+
2. Check that dependent packages are built first
139+
3. Verify all workspace packages have valid version numbers
140+
141+
#### Authentication issues
142+
143+
```bash
144+
# Check current npm user
145+
npm whoami
146+
147+
# Set registry if using custom registry
148+
npm config set registry https://registry.npmjs.org/
149+
```
150+
151+
#### Scoped package issues
152+
153+
For scoped packages (@mcp-use/*), ensure your npm account has permission to publish to that scope:
154+
155+
```bash
156+
# Add npm organization scope
157+
npm org set mcp-use USERNAME add
158+
```
159+
160+
## Using create-mcp-use-app
161+
162+
The `create-mcp-use-app` package is designed to be used with `npx` to scaffold new projects:
163+
164+
```bash
165+
# Create a new MCP-Use app
166+
npx create-mcp-use-app my-app
167+
168+
# With options
169+
npx create-mcp-use-app my-app --template advanced --typescript
170+
171+
# Interactive mode (prompts for options)
172+
npx create-mcp-use-app
173+
```
174+
175+
### Publishing create-mcp-use-app
176+
177+
Since this is a CLI tool meant to be used with `npx`, ensure it's published publicly:
178+
179+
```bash
180+
cd packages/create-mcp-use-app
181+
pnpm publish --access public
182+
```
183+
184+
After publishing, users can immediately use it with:
185+
```bash
186+
npx create-mcp-use-app@latest my-new-project
187+
```
188+
189+
## License
190+
191+
See LICENSE file in the root directory.

node_modules/.bin/tsc

Lines changed: 0 additions & 17 deletions
This file was deleted.

node_modules/.bin/tsserver

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)