Skip to content

Commit 47ef370

Browse files
chore(internal): codegen related update
1 parent afbeeb5 commit 47ef370

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

packages/mcp-server/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,18 @@ For clients with a configuration JSON, it might look something like this:
3636

3737
### Cursor
3838

39-
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
40-
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
39+
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
40+
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
4141

42-
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=isaacus-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImlzYWFjdXMtbWNwIl0sImVudiI6eyJJU0FBQ1VTX0FQSV9LRVkiOiJTZXQgeW91ciBJU0FBQ1VTX0FQSV9LRVkgaGVyZS4ifX0)
42+
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=isaacus-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImlzYWFjdXMtbWNwIl0sImVudiI6eyJJU0FBQ1VTX0FQSV9LRVkiOiJTZXQgeW91ciBJU0FBQ1VTX0FQSV9LRVkgaGVyZS4ifX0)
4343

4444
## Exposing endpoints to your MCP Client
4545

46-
There are two ways to expose endpoints as tools in the MCP server:
46+
There are three ways to expose endpoints as tools in the MCP server:
4747

4848
1. Exposing one tool per endpoint, and filtering as necessary
4949
2. Exposing a set of tools to dynamically discover and invoke endpoints from the API
50+
3. Exposing a docs search tool and a code execution tool, allowing the client to write code to be executed against the TypeScript client
5051

5152
### Filtering endpoints and tools
5253

@@ -81,6 +82,18 @@ All of these command-line options can be repeated, combined together, and have c
8182

8283
Use `--list` to see the list of available tools, or see below.
8384

85+
### Code execution
86+
87+
If you specify `--tools=code` to the MCP server, it will expose just two tools:
88+
89+
- `search_docs` - Searches the API documentation and returns a list of markdown results
90+
- `execute` - Runs code against the TypeScript client
91+
92+
This allows the LLM to implement more complex logic by chaining together many API calls without loading
93+
intermediary results into its context window.
94+
95+
The code execution itself happens in a Deno sandbox that has network access only to the base URL for the API.
96+
8497
### Specifying the MCP Client
8598

8699
Different clients have varying abilities to handle arbitrary tools and schemas.

0 commit comments

Comments
 (0)