@h1deya/langchain-mcp-tools 0.2.0 → 0.2.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/README.md +15 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,6 +41,9 @@ npm i @h1deya/langchain-mcp-tools
41
41
 
42
42
  ## Quick Start
43
43
 
44
+ A minimal but complete working usage example can be found
45
+ [in this example in the langchain-mcp-tools-ts-usage repo](https://github.com/hideya/langchain-mcp-tools-ts-usage/blob/main/src/index.ts)
46
+
44
47
  `convertMcpToLangchainTools()` utility function accepts MCP server configurations
45
48
  that follow the same structure as
46
49
  [Claude for Desktop](https://modelcontextprotocol.io/quickstart/user),
@@ -83,9 +86,6 @@ const agent = createReactAgent({
83
86
  });
84
87
  ```
85
88
 
86
- Find complete, minimal working usage examples
87
- [here](https://github.com/hideya/langchain-mcp-tools-ts-usage/blob/main/src/index.ts)
88
-
89
89
  For hands-on experimentation with MCP server integration,
90
90
  try [this LangChain application built with the utility](https://github.com/hideya/mcp-client-langchain-ts)
91
91
 
@@ -112,9 +112,12 @@ Note that the key `"url"` may be changed in the future to match
112
112
  the MCP server configurations used by Claude for Desktop once
113
113
  it introduces remote server support.
114
114
 
115
+ A usage example can be found [here](
116
+ https://github.com/hideya/langchain-mcp-tools-ts-usage/blob/694b877ed5336bfcd5274d95d3f6d14bed0937a6/src/index.ts#L26-L38)
117
+
115
118
  ### Working Directory Configuration for Local MCP Servers
116
119
 
117
- The working directory that is used when spawning a local MCP server
120
+ The working directory that is used when spawning a local (stdio) MCP server
118
121
  can be specified with the `"cwd"` key as follows:
119
122
 
120
123
  ```ts
@@ -125,10 +128,13 @@ can be specified with the `"cwd"` key as follows:
125
128
  },
126
129
  ```
127
130
 
128
- ### Configuration for MCP Server stderr Redirection
131
+ The key name `cwd` is derived from TypeScript SDK's `StdioServerParameters`.
132
+
133
+ ### Configuration for Local MCP Server `stderr` Redirection
129
134
 
130
135
  A new key `"stderr"` has been introduced to specify a file descriptor
131
- to which MCP server's stderr is redirected.
136
+ to which local (stdio) MCP server's stderr is redirected.
137
+ The key name `stderr` is derived from TypeScript SDK's `StdioServerParameters`.
132
138
 
133
139
  ```ts
134
140
  const logPath = `mcp-server-${serverName}.log`;
@@ -136,12 +142,13 @@ to which MCP server's stderr is redirected.
136
142
  mcpServers[serverName].stderr = logFd;
137
143
  ```
138
144
 
139
- The key `stderr` is derived from TypeScript SDK's `StdioServerParameters`.
145
+ A usage example can be found [here](
146
+ https://github.com/hideya/langchain-mcp-tools-ts-usage/blob/694b877ed5336bfcd5274d95d3f6d14bed0937a6/src/index.ts#L72-L83)
140
147
 
141
148
  ## Limitations
142
149
 
143
150
  - Currently, only text results of tool calls are supported.
144
- - Fatures other than [Tools](https://modelcontextprotocol.io/docs/concepts/tools) are not supported.
151
+ - MCP features other than [Tools](https://modelcontextprotocol.io/docs/concepts/tools) are not supported.
145
152
 
146
153
  ## Change Log
147
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h1deya/langchain-mcp-tools",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MCP To LangChain Tools Conversion Utility",
5
5
  "license": "MIT",
6
6
  "keywords": [