@agentailor/create-mcp-server 0.8.0 → 0.9.0

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.
package/README.md CHANGED
@@ -29,7 +29,7 @@ npx @agentailor/create-mcp-server --name=my-server
29
29
  |--------|-------|---------|-------------|
30
30
  | `--name` | `-n` | — | Project name (required in CLI mode) |
31
31
  | `--package-manager` | `-p` | `npm` | Package manager: npm, pnpm, yarn |
32
- | `--framework` | `-f` | `sdk` | Framework: sdk, fastmcp |
32
+ | `--framework` | `-f` | `sdk` | Framework: sdk, fastmcp (deprecated) |
33
33
  | `--stdio` | — | `false` | Use stdio transport (for local clients) |
34
34
  | `--template` | `-t` | `stateless` | Accepted for compatibility; SDK v2 serves both modes through one per-request idiom |
35
35
  | `--oauth` | — | `false` | Enable OAuth (sdk HTTP only, incompatible with --stdio) |
@@ -47,9 +47,6 @@ npx @agentailor/create-mcp-server --name=my-server
47
47
  # stdio server (for local clients)
48
48
  npx @agentailor/create-mcp-server --name=my-server --stdio
49
49
 
50
- # stdio with FastMCP
51
- npx @agentailor/create-mcp-server --name=my-server --stdio --framework=fastmcp
52
-
53
50
  # Full HTTP options
54
51
  npx @agentailor/create-mcp-server \
55
52
  --name=my-auth-server \
@@ -58,13 +55,13 @@ npx @agentailor/create-mcp-server \
58
55
  --oauth
59
56
 
60
57
  # Short flags
61
- npx @agentailor/create-mcp-server -n my-server -p yarn -f fastmcp
58
+ npx @agentailor/create-mcp-server -n my-server -p yarn --stdio
62
59
  ```
63
60
 
64
61
  ## Features
65
62
 
66
63
  - **MCP SDK v2** — SDK projects serve protocol revision `2026-07-28` and still accept 2025-era clients
67
- - **Two frameworks** — Official MCP SDK or FastMCP
64
+ - **Official MCP SDK** — FastMCP is still available but deprecated
68
65
  - **Two transport types** — HTTP (streamable) or stdio (for local clients)
69
66
  - **Stateless by design** — the SDK handler builds a fresh server per request, so HTTP servers scale without sticky sessions
70
67
  - **Optional OAuth** — OIDC-compliant authentication (SDK HTTP only) ([setup guide](docs/oauth-setup.md))
@@ -78,7 +75,7 @@ npx @agentailor/create-mcp-server -n my-server -p yarn -f fastmcp
78
75
  | Framework | Description |
79
76
  |-----------|-------------|
80
77
  | **Official MCP SDK** (default) | SDK v2, full control with Express.js, supports OAuth |
81
- | **FastMCP** | Simpler API with less boilerplate (still on SDK v1) |
78
+ | **FastMCP** (deprecated) | Simpler API with less boilerplate (still on SDK v1) |
82
79
 
83
80
  ### Official MCP SDK
84
81
 
@@ -86,7 +83,9 @@ SDK projects are generated against the [MCP TypeScript SDK v2](https://ts.sdk.mo
86
83
 
87
84
  HTTP servers are built on `createMcpHandler`, which runs the server factory once per request. They serve protocol revision `2026-07-28` and also accept 2025-era clients. stdio servers use `serveStdio`, which negotiates the era per connection.
88
85
 
89
- ### FastMCP
86
+ ### FastMCP (deprecated)
87
+
88
+ > **Deprecated:** FastMCP support will be removed in a future release. Generating a FastMCP project prints a warning. New projects should use the Official MCP SDK; if you need to keep scaffolding FastMCP projects after the removal, pin `npx @agentailor/create-mcp-server@0.9`.
90
89
 
91
90
  [FastMCP](https://github.com/punkpeye/fastmcp) is a TypeScript framework built on top of the official MCP SDK that provides a simpler, more intuitive API for building MCP servers.
92
91
 
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Command, Option, InvalidArgumentError } from 'commander';
2
2
  const NAME_REGEX = /^[a-z0-9-_]+$/i;
3
- const VERSION = '0.8.0';
3
+ const VERSION = '0.9.0';
4
4
  function validateName(value) {
5
5
  if (!NAME_REGEX.test(value)) {
6
6
  throw new InvalidArgumentError('Project name can only contain letters, numbers, hyphens, and underscores');
@@ -17,7 +17,7 @@ export function parseArguments() {
17
17
  .addOption(new Option('-p, --package-manager <manager>', 'Package manager')
18
18
  .choices(['npm', 'pnpm', 'yarn'])
19
19
  .default('npm'))
20
- .addOption(new Option('-f, --framework <framework>', 'Framework to use')
20
+ .addOption(new Option('-f, --framework <framework>', 'Framework to use (fastmcp is deprecated)')
21
21
  .choices(['sdk', 'fastmcp'])
22
22
  .default('sdk'))
23
23
  .addOption(new Option('-t, --template <type>', 'Template type (no effect on SDK projects; both generate the same server)')
@@ -0,0 +1,7 @@
1
+ import type { Framework } from './templates/common/types.js';
2
+ export declare const FASTMCP_DEPRECATION_WARNING: string;
3
+ /**
4
+ * Prints a deprecation warning for the chosen framework, if it has one.
5
+ * Writes to stderr so it never mixes with output a script might parse.
6
+ */
7
+ export declare function warnIfDeprecated(framework: Framework): void;
@@ -0,0 +1,17 @@
1
+ // FastMCP is still on SDK v1 and the 2025-era protocol, and generated FastMCP
2
+ // projects ship without tests. It still works, but is on its way out.
3
+ export const FASTMCP_DEPRECATION_WARNING = [
4
+ 'Warning: the FastMCP framework is deprecated and will be removed in a future release.',
5
+ 'FastMCP projects stay on MCP SDK v1 and ship without tests. New projects should use',
6
+ 'the default Official MCP SDK (--framework=sdk). Pin @agentailor/create-mcp-server@0.9',
7
+ 'if you need to keep scaffolding FastMCP projects after it is removed.',
8
+ ].join('\n ');
9
+ /**
10
+ * Prints a deprecation warning for the chosen framework, if it has one.
11
+ * Writes to stderr so it never mixes with output a script might parse.
12
+ */
13
+ export function warnIfDeprecated(framework) {
14
+ if (framework === 'fastmcp') {
15
+ console.warn(`\n ${FASTMCP_DEPRECATION_WARNING}\n`);
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import { describe, it, expect, vi, afterEach } from 'vitest';
2
+ import { warnIfDeprecated, FASTMCP_DEPRECATION_WARNING } from './deprecations.js';
3
+ describe('warnIfDeprecated', () => {
4
+ afterEach(() => {
5
+ vi.restoreAllMocks();
6
+ });
7
+ it('warns on stderr when FastMCP is chosen', () => {
8
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
9
+ const log = vi.spyOn(console, 'log').mockImplementation(() => { });
10
+ warnIfDeprecated('fastmcp');
11
+ expect(warn).toHaveBeenCalledOnce();
12
+ expect(warn.mock.calls[0][0]).toContain(FASTMCP_DEPRECATION_WARNING);
13
+ expect(log).not.toHaveBeenCalled();
14
+ });
15
+ it('points FastMCP users at the SDK and at a version to pin', () => {
16
+ expect(FASTMCP_DEPRECATION_WARNING).toContain('--framework=sdk');
17
+ expect(FASTMCP_DEPRECATION_WARNING).toContain('@agentailor/create-mcp-server@0.9');
18
+ });
19
+ it('stays silent for the SDK', () => {
20
+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
21
+ warnIfDeprecated('sdk');
22
+ expect(warn).not.toHaveBeenCalled();
23
+ });
24
+ });
@@ -49,9 +49,9 @@ export async function runInteractiveMode() {
49
49
  description: 'Full control with Express.js',
50
50
  },
51
51
  {
52
- title: 'FastMCP',
52
+ title: 'FastMCP (deprecated)',
53
53
  value: 'fastmcp',
54
- description: 'Simpler API, less boilerplate',
54
+ description: 'Stays on SDK v1, no tests; will be removed in a future release',
55
55
  },
56
56
  ],
57
57
  initial: 0,
@@ -6,6 +6,7 @@ import { getTsconfigTemplate } from './templates/common/tsconfig.json.js';
6
6
  import { getGitignoreTemplate } from './templates/common/gitignore.js';
7
7
  import { getEnvExampleTemplate } from './templates/common/env.example.js';
8
8
  import { getAgentsMdTemplate } from './templates/common/agents.md.js';
9
+ import { warnIfDeprecated } from './deprecations.js';
9
10
  import { copySkill, SKILLS_UPDATE_COMMAND, SKILLS_INSTALL_HINT, SKILLS_DIR } from './skills.js';
10
11
  import { getServerTemplate as getSdkStatelessServerTemplate, getIndexTemplate as getSdkStatelessIndexTemplate, getReadmeTemplate as getSdkStatelessReadmeTemplate, getStoreTemplate as getSdkStoreTemplate, getToolsTemplate as getSdkToolsTemplate, getPromptsTemplate as getSdkPromptsTemplate, getResourcesTemplate as getSdkResourcesTemplate, getStoreTestTemplate as getSdkStoreTestTemplate, getServerTestTemplate as getSdkServerTestTemplate, } from './templates/sdk/stateless/index.js';
11
12
  import { getAuthTemplate as getSdkAuthTemplate } from './templates/sdk/stateful/index.js';
@@ -32,6 +33,8 @@ export const packageManagerCommands = {
32
33
  };
33
34
  export async function generateProject(config) {
34
35
  const { projectName, packageManager, framework, transport, templateType, withOAuth, withGitInit, withSkills, } = config;
36
+ // Here rather than in either entry point, so CLI and interactive runs both warn.
37
+ warnIfDeprecated(framework);
35
38
  const templateOptions = {
36
39
  withOAuth: transport === 'http' ? withOAuth : false,
37
40
  packageManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentailor/create-mcp-server",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Create a new MCP (Model Context Protocol) server project",
5
5
  "type": "module",
6
6
  "bin": {