|
474 | 474 | "<a id=\"start-mcp-servers\"></a>\n", |
475 | 475 | "## 1.1) Starting the server with default settings\n", |
476 | 476 | "\n", |
477 | | - "First, let's install the `simple_calculator` example from NAT source.\n", |
| 477 | + "First, let's install the `simple_calculator` example from NAT source as `simple_calculator_notebook`, which we can edit and run.\n", |
478 | 478 | "\n", |
479 | 479 | "We recommend using the 'develop' branch in Google Colab." |
480 | 480 | ] |
|
498 | 498 | "source": [ |
499 | 499 | "%%bash --bg\n", |
500 | 500 | "# Then let's start up the simple calculator MCP server.\n", |
501 | | - "nat mcp serve --config_file ./simple_calculator/configs/config.yml" |
| 501 | + "nat mcp serve --config_file ./simple_calculator_notebook/configs/config.yml" |
502 | 502 | ] |
503 | 503 | }, |
504 | 504 | { |
|
508 | 508 | "source": [ |
509 | 509 | "The `--bg` command will run your server in the background of the notebook, so you might not see confirmation that the server is running. To see the startup logs, you can remove this flag and run the cell again. However, subsequent steps require the server to be run as a background process.\n", |
510 | 510 | "\n", |
511 | | - "Next, we will list the set of available tools from `simple_calculator` MCP server." |
| 511 | + "Next, we will list the set of available tools from `simple_calculator_notebook` MCP server." |
512 | 512 | ] |
513 | 513 | }, |
514 | 514 | { |
|
542 | 542 | "\n", |
543 | 543 | "You can also use the `sse` (Server-Sent Events) transport for backwards compatibility through the `--transport` flag, for example:\n", |
544 | 544 | "```bash\n", |
545 | | - "nat mcp serve --config_file examples/getting_started/simple_calculator/configs/config.yml --transport sse\n", |
| 545 | + "nat mcp serve --config_file ./simple_calculator_notebook/configs/config.yml --transport sse\n", |
546 | 546 | "```\n", |
547 | 547 | "With this configuration, the MCP server is available at `http://localhost:9901/sse` using SSE transport.\n", |
548 | 548 | "\n", |
|
581 | 581 | "outputs": [], |
582 | 582 | "source": [ |
583 | 583 | "%%bash --bg\n", |
584 | | - "nat mcp serve --config_file ./simple_calculator/configs/config.yml \\\n", |
| 584 | + "nat mcp serve --config_file ./simple_calculator_notebook/configs/config.yml \\\n", |
585 | 585 | " --host 0.0.0.0 \\\n", |
586 | 586 | " --port 9901 \\\n", |
587 | 587 | " --name \"My MCP Server\"" |
|
640 | 640 | "outputs": [], |
641 | 641 | "source": [ |
642 | 642 | "%%bash --bg\n", |
643 | | - "nat mcp serve --config_file ./simple_calculator/configs/config.yml \\\n", |
| 643 | + "nat mcp serve --config_file ./simple_calculator_notebook/configs/config.yml \\\n", |
644 | 644 | " --tool_names calculator.multiply \\\n", |
645 | 645 | " --tool_names calculator.divide \\\n", |
646 | 646 | " --host 0.0.0.0 \\\n", |
|
971 | 971 | "outputs": [], |
972 | 972 | "source": [ |
973 | 973 | "%%bash --bg\n", |
974 | | - "nat mcp serve --config_file simple_calculator/configs/config.yml \\\n", |
| 974 | + "nat mcp serve --config_file simple_calculator_notebook/configs/config.yml \\\n", |
975 | 975 | " --host 0.0.0.0 \\\n", |
976 | 976 | " --port 9901 \\\n", |
977 | 977 | " --name \"My MCP Server\"" |
|
1092 | 1092 | "outputs": [], |
1093 | 1093 | "source": [ |
1094 | 1094 | "%%bash --bg\n", |
1095 | | - "nat mcp serve --config_file simple_calculator/configs/config.yml \\\n", |
| 1095 | + "nat mcp serve --config_file simple_calculator_notebook/configs/config.yml \\\n", |
1096 | 1096 | " --host 0.0.0.0 \\\n", |
1097 | 1097 | " --port 9901 \\\n", |
1098 | 1098 | " --name \"My MCP Server\"" |
|
0 commit comments