-
Notifications
You must be signed in to change notification settings - Fork 337
update readme for openai playground sample #598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* **Authentication Header**: | ||
* Key: `x-twilio-signature` | ||
* Value: {Valid Twilio signature} | ||
## Generatin Twilio Signature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, but I'd recommend:
Generating a Twilio signature
ℹ️ As the generated signature depends on the full Function endpoint that you are executing, and the URL includes the set of services (e.g. `/mcp?services=PhoneNumbers` vs `/mcp?services=Messaging`), you will need to generate a valid signature every time you update any part of the URL. We recommend dynamically generating the signature whenever you initialize the MCP client configuration with your Twilio MCP server. | ||
ℹ️ As the generated signature depends on the full Function endpoint that you are executing, and the URL includes the set of services (e.g. `/mcp?services=PhoneNumbers` vs `/mcp?services=Messaging`), you will need to generate a valid signature every time you update any part of the URL. We recommend dynamically generating the signature whenever you initialize the MCP client configuration with your Twilio MCP server. | ||
|
||
### npx with [`twilio-signature-cli`](https://www.npmjs.com/package/twilio-signature-cli) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had this under JavaScript because of npm
; Python and Java and Go developers might not have npm
installed. Just like I'd include conda
or pip
under Python.
|
||
### OpenAI Playground | ||
|
||
You can use [OpenAI Playground](https://platform.openai.com/playground) to try out the Twilio MCP server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... to try out the your Twilio MCP server... ?
|
||
1) Follow the instructions here to first deploy your MCP server. | ||
2) Visit [OpenAI Playground](https://platform.openai.com/playground) and click on `Create` in front of Tools. Then select `MCP Server` from the dropdown menu. Then select `Add new`. | ||
3) Paste the URL of Twilio Functions MCP Server from step 1) in the URL `https://{functions-domain}.twil.io/mcp`. Include any services you want in the query parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paste the URL of (the|your) Twilio Functions MCP server from step 1) ...
|
||
### Javascript Code Sample | ||
|
||
You can visit and clone https://github.com/twilio-samples/openai-mcp-samples/ for examples of how to use the MCP Server with OpenAI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Visit [our OpenAI MCP samples repo](https://github.com/twilio-samples/openai-mcp-samples/) for examples of...
You can use [OpenAI Playground](https://platform.openai.com/playground) to try out the Twilio MCP server. | ||
|
||
1) Follow the instructions here to first deploy your MCP server. | ||
2) Visit [OpenAI Playground](https://platform.openai.com/playground) and click on `Create` in front of Tools. Then select `MCP Server` from the dropdown menu. Then select `Add new`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd make it Visit the OpenAI Playground and click...
, adding "the"
Description
Checklist
npm test
locally and it passed without errors.