langchain-mcp 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/dist/bin/cli.js +13 -0
  2. package/package.json +1 -1
package/dist/bin/cli.js CHANGED
@@ -2,13 +2,26 @@
2
2
  import { Command } from 'commander';
3
3
  import http from 'http';
4
4
  import open from 'open';
5
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
5
6
  import { loadConfig, saveConfig, deleteConfig, getConfigPath, DEFAULT_API_URL } from '../src/config.js';
6
7
  import { APIClient } from '../src/api-client.js';
8
+ import { createServer } from '../src/server.js';
7
9
  const program = new Command();
8
10
  program
9
11
  .name('langchain-mcp')
10
12
  .description('CLI for LangChain MCP server')
11
13
  .version('1.0.0');
14
+ /**
15
+ * Default action - start MCP server (when no command given)
16
+ */
17
+ program
18
+ .command('serve', { isDefault: true, hidden: true })
19
+ .description('Start MCP server')
20
+ .action(async () => {
21
+ const server = createServer();
22
+ const transport = new StdioServerTransport();
23
+ await server.connect(transport);
24
+ });
12
25
  /**
13
26
  * Login command - supports Google and GitHub OAuth
14
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server for LangChain documentation and code search",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",