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: README.md
+86-48Lines changed: 86 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,40 +27,33 @@ Always see the respective `src/<server>/README.md` for detailed setup instructio
27
27
28
28
## Quick Start
29
29
30
-
1.**Clone this repository:**
31
-
```sh
32
-
git clone https://github.com/oracle/mcp.git
33
-
cd mcp
34
-
```
30
+
Follow these instructions to get started as quickly as possible. Once finished, look [here](#local-development) to set up your local development environment if you wish to [contribute](#contributing) code changes.
35
31
36
-
2. **List available MCP servers:**
37
-
```sh
38
-
ls src/
39
-
```
32
+
1. Install `uv` from [here](https://docs.astral.sh/uv/getting-started/installation/)
<region> is the region you would like to authenticate in (e.g. `us-phoenix-1`)
76
-
<tenancy_name> is the name of your OCI tenancy
68
+
`<region>` is the region you would like to authenticate in (e.g. `us-phoenix-1`)
69
+
`<tenancy_name>` is the name of your OCI tenancy
77
70
78
71
All actions are performed with the permissions of the configured OCI CLI profile. We advise least-privilege IAM setup, secure credential management, safe network practices, secure logging, and warn against exposing secrets.
79
72
@@ -82,6 +75,8 @@ Remember to refresh the session once it expires with:
`<profile_name>` is the profile that you set up in the steps above. You can view a list of your profiles by running `cat ~/.oci/config` on macOS/Linux if you forget which profile you have set up.
79
+
85
80
## Client configuration
86
81
87
82
Each MCP server exposes endpoints that your client can connect to. To enable this connection, just add the relevant server to your MCP client’s configuration file. You can find the list of servers under the `src` folder.
@@ -93,25 +88,24 @@ Refer to the sections below for client-specific configuration instructions.
93
88
<details>
94
89
<summary>Setup</summary>
95
90
96
-
Before continuing, make sure you have already followed the steps above in the [Getting Started](#getting-started) section.
91
+
Before continuing, make sure you have already followed the steps above in the [Quick start](#quick-start) section.
97
92
98
93
1. If using Visual Studio Code, install the [Cline VS Code Extension](https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev) (or equivalent extension for your preferred IDE).
99
94
2. Once installed, click the extension to open it.
100
95
3. Click the **MCP Servers** button near the top of the the extension's panel.
101
96
4. Select the **Installed** tab.
102
97
5. Click **Configure MCP Servers** to open the `cline_mcp_settings.json` file.
103
-
6. In the `cline_mcp_settings.json` file, add your desired MCP servers in the `mcpServers` object. Below is an example for for the compute OCI MCP server. Make sure to save the file after editing.
98
+
6. In the `cline_mcp_settings.json` file, add your desired MCP servers in the `mcpServers` object. Below is an example for for the generic OCI API MCP server. Make sure to save the file after editing. `<profile_name>` is the profile that you set up during the [authentication](#authentication) steps.
104
99
105
-
For macOS/Linux
100
+
For macOS/Linux:
106
101
```json
107
102
{
108
103
"mcpServers": {
109
104
"oracle-oci-api-mcp-server": {
110
105
"type": "stdio",
111
-
"command": "uv",
106
+
"command": "uvx",
112
107
"args": [
113
-
"run",
114
-
"oracle.oci-api-mcp-server"
108
+
"oracle.oci-api-mcp-server@latest"
115
109
],
116
110
"env": {
117
111
"OCI_CONFIG_PROFILE": "<profile_name>",
@@ -134,7 +128,7 @@ For Windows - **TODO**
134
128
<details>
135
129
<summary>Setup</summary>
136
130
137
-
Before continuing, make sure you have already followed the steps above in the [Getting Started](#getting-started) section.
131
+
Before continuing, make sure you have already followed the steps above in the [Quick start](#quick-start) section.
138
132
139
133
1. You can place MCP configurations in two locations, depending on your use case:
140
134
@@ -145,15 +139,13 @@ Before continuing, make sure you have already followed the steps above in the [G
145
139
**`.cursor/mcp.json`**
146
140
147
141
For macOS/Linux:
148
-
149
142
```json
150
143
{
151
144
"mcpServers": {
152
145
"oracle-oci-api-mcp-server": {
153
146
"type": "stdio",
154
-
"command": "uv",
147
+
"command": "uvx",
155
148
"args": [
156
-
"run",
157
149
"oracle.oci-api-mcp-server"
158
150
],
159
151
"env": {
@@ -165,6 +157,8 @@ For macOS/Linux:
165
157
}
166
158
```
167
159
160
+
`<profile_name>` is the profile that you set up during the [authentication](#authentication) steps.
161
+
168
162
For Windows - **TODO**
169
163
170
164
2. In your **Cursor Settings**, check your **Installed Servers** under the **MCP** tab to ensure that your `.cursor/mcp.json` was properly configured.
@@ -176,7 +170,7 @@ For Windows - **TODO**
176
170
<details>
177
171
<summary>Setup</summary>
178
172
179
-
Before continuing, make sure you have already followed the steps above in the [Getting Started](#getting-started) section.
173
+
Before continuing, make sure you have already followed the steps above in the [Quick start](#quick-start) section.
180
174
181
175
1. Download [Ollama](https://ollama.com/download)
182
176
2. Start the Ollama server
@@ -195,27 +189,27 @@ For Linux: `sudo systemctl start ollama`
195
189
8. Create an mcphost configuration file (e.g. `./mcphost.json`)
196
190
9. Add your desired server to the `mcpServers` object. Below is an example for for the compute OCI MCP server. Make sure to save the file after editing.
197
191
198
-
For macOS/Linux
199
-
192
+
For macOS/Linux:
200
193
```json
201
194
{
202
195
"mcpServers": {
203
196
"oracle-oci-api-mcp-server": {
204
197
"type": "stdio",
205
-
"command": "uv",
198
+
"command": "uvx",
206
199
"args": [
207
-
"run",
208
200
"oracle.oci-api-mcp-server"
209
201
],
210
202
"env": {
211
-
"VIRTUAL_ENV": "<path to your cloned repo>/oci-mcp/.venv",
203
+
"OCI_CONFIG_PROFILE": "<profile_name>",
212
204
"FASTMCP_LOG_LEVEL": "ERROR"
213
205
}
214
206
}
215
207
}
216
208
}
217
209
```
218
210
211
+
`<profile_name>` is the profile that you set up during the [authentication](#authentication) steps.
212
+
219
213
For Windows - **TODO**
220
214
221
215
10. Start `mcphost` with `OCI_CONFIG_PROFILE=<profile> mcphost -m ollama:<model> --config <config-path>`
@@ -225,6 +219,50 @@ For Windows - **TODO**
225
219
226
220
</details>
227
221
222
+
## Local development
223
+
224
+
This section will help you set up your environment to prepare it for local development if you wish to [contribute](#contributing) code changes.
225
+
226
+
1. Set up python virtual environment and install dev requirements
227
+
```sh
228
+
python3 -m venv venv
229
+
source venv/bin/activate # On Windows: venv\Scripts\activate
230
+
pip install -r requirements-dev.txt
231
+
```
232
+
233
+
2. Locally build and install servers within the virtual environment
234
+
```sh
235
+
make build
236
+
make install
237
+
```
238
+
239
+
3. Add desired servers to your MCP client configuration, but run them using the locally installed server package instead
240
+
241
+
Below is an example MCP client configuration for a typical python server using the local server package
242
+
243
+
*(For Node.js/Java/other servers, follow respective instructions in that server’s README)*
244
+
245
+
For macOS/Linux:
246
+
```
247
+
{
248
+
"mcpServers": {
249
+
"oracle-oci-api-mcp-server": {
250
+
"command": "uv",
251
+
"args": [
252
+
"run"
253
+
"oracle.oci-api-mcp-server"
254
+
],
255
+
"env": {
256
+
"VIRTUAL_ENV": "<pathtoyourclonedrepo>/mcp/venv",
257
+
"FASTMCP_LOG_LEVEL": "ERROR"
258
+
}
259
+
}
260
+
}
261
+
}
262
+
```
263
+
264
+
where `<path to your cloned repo>` is the absolute path to wherever you cloned this repo that will help point to the venv created above (e.g. `/Users/myuser/dev/mcp/venv`)
0 commit comments