You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/mcp-server/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,18 @@ For clients with a configuration JSON, it might look something like this:
34
34
35
35
### Cursor
36
36
37
-
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
38
-
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
37
+
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
38
+
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
39
39
40
-
[](https://cursor.com/en-US/install-mcp?name=conductor-node-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNvbmR1Y3Rvci1ub2RlLW1jcCJdLCJlbnYiOnsiQ09ORFVDVE9SX1NFQ1JFVF9LRVkiOiJTZXQgeW91ciBDT05EVUNUT1JfU0VDUkVUX0tFWSBoZXJlLiJ9fQ)
40
+
[](https://cursor.com/en-US/install-mcp?name=conductor-node-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNvbmR1Y3Rvci1ub2RlLW1jcCJdLCJlbnYiOnsiQ09ORFVDVE9SX1NFQ1JFVF9LRVkiOiJTZXQgeW91ciBDT05EVUNUT1JfU0VDUkVUX0tFWSBoZXJlLiJ9fQ)
41
41
42
42
## Exposing endpoints to your MCP Client
43
43
44
-
There are two ways to expose endpoints as tools in the MCP server:
44
+
There are three ways to expose endpoints as tools in the MCP server:
45
45
46
46
1. Exposing one tool per endpoint, and filtering as necessary
47
47
2. Exposing a set of tools to dynamically discover and invoke endpoints from the API
48
+
3. Exposing a docs search tool and a code execution tool, allowing the client to write code to be executed against the TypeScript client
48
49
49
50
### Filtering endpoints and tools
50
51
@@ -79,6 +80,18 @@ All of these command-line options can be repeated, combined together, and have c
79
80
80
81
Use `--list` to see the list of available tools, or see below.
81
82
83
+
### Code execution
84
+
85
+
If you specify `--tools=code` to the MCP server, it will expose just two tools:
86
+
87
+
-`search_docs` - Searches the API documentation and returns a list of markdown results
88
+
-`execute` - Runs code against the TypeScript client
89
+
90
+
This allows the LLM to implement more complex logic by chaining together many API calls without loading
91
+
intermediary results into its context window.
92
+
93
+
The code execution itself happens in a Deno sandbox that has network access only to the base URL for the API.
94
+
82
95
### Specifying the MCP Client
83
96
84
97
Different clients have varying abilities to handle arbitrary tools and schemas.
0 commit comments