@frontmcp/nx 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# <%= name %>
|
|
2
|
+
|
|
3
|
+
A FrontMCP Nx monorepo — TypeScript-first framework for building production-grade MCP servers.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Install dependencies
|
|
9
|
+
<%= packageManager %> install
|
|
10
|
+
|
|
11
|
+
# Start dev server (sample app)
|
|
12
|
+
npx nx dev demo
|
|
13
|
+
|
|
14
|
+
# Build all projects
|
|
15
|
+
npx nx run-many -t build
|
|
16
|
+
|
|
17
|
+
# Run all tests
|
|
18
|
+
npx nx run-many -t test
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Project Structure
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
<%= name %>/
|
|
25
|
+
apps/ # MCP application definitions (@App decorator)
|
|
26
|
+
libs/ # Shared libraries (tools, resources, providers)
|
|
27
|
+
servers/ # Deployment shells (Express/Fastify adapters)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Nx Generators
|
|
31
|
+
|
|
32
|
+
Use generators to scaffold new code:
|
|
33
|
+
|
|
34
|
+
| Generator | Command | Description |
|
|
35
|
+
|-----------|---------|-------------|
|
|
36
|
+
| app | `npx nx g @frontmcp/nx:app <name>` | MCP application |
|
|
37
|
+
| lib | `npx nx g @frontmcp/nx:lib <name>` | Shared library |
|
|
38
|
+
| server | `npx nx g @frontmcp/nx:server <name>` | Deployment shell |
|
|
39
|
+
| tool | `npx nx g @frontmcp/nx:tool <Name> --project <lib>` | MCP tool with Zod schemas |
|
|
40
|
+
| resource | `npx nx g @frontmcp/nx:resource <Name> --project <lib>` | MCP resource |
|
|
41
|
+
| prompt | `npx nx g @frontmcp/nx:prompt <Name> --project <lib>` | MCP prompt |
|
|
42
|
+
| provider | `npx nx g @frontmcp/nx:provider <Name> --project <lib>` | DI provider |
|
|
43
|
+
|
|
44
|
+
See `CLAUDE.md` for the full list of generators and architecture patterns.
|
|
45
|
+
|
|
46
|
+
## Development Commands
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Build a specific project
|
|
50
|
+
npx nx build <project>
|
|
51
|
+
|
|
52
|
+
# Test a specific project
|
|
53
|
+
npx nx test <project>
|
|
54
|
+
|
|
55
|
+
# Serve a project with watch
|
|
56
|
+
npx nx dev <project>
|
|
57
|
+
|
|
58
|
+
# Launch MCP Inspector
|
|
59
|
+
npx nx inspector <project>
|
|
60
|
+
|
|
61
|
+
# Run across all projects
|
|
62
|
+
npx nx run-many -t build
|
|
63
|
+
npx nx run-many -t test
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Learn More
|
|
67
|
+
|
|
68
|
+
- [FrontMCP Documentation](https://docs.agentfront.dev)
|
|
69
|
+
- [MCP Specification](https://modelcontextprotocol.io)
|
|
70
|
+
- AI coding agents can use the `frontmcp-docs` MCP server configured in `.mcp.json`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/nx",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "Nx plugin for FrontMCP — generators and executors for building MCP servers",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|