Sample apps and playground
Use the sample apps and playground to learn how MCP Studio SDK supports different context workflows. Each sample shows how a product can help users connect trusted sources, deploy MCP servers, and keep AI answers grounded.
| Audience | Developers, sales engineers, and product teams evaluating embedded Context MCP Studio workflows |
|---|---|
| Prerequisites | Node.js, Git, access to the public sample repository, and an SDK account for real credentials |
Public sample app repository
GitHub repo: mcp-studio-sdk-sample-apps
This repo includes three simple Next.js fullstack concepts:
- HelpDesk IQ: A support platform that embeds MCP Studio for docs-grounded ticket responses.
- PolicyPilot: A compliance platform that embeds MCP Studio for policy and control retrieval.
- KnowledgeCloud LMS: A learning platform that embeds MCP Studio for training assistants.
Each app is a complete integration rather than a snippet demo. It includes:
- A mock API route, so the page has real product context around the embed.
- A server-side session route that exchanges your client secret for an attribution token.
- An embed component that receives only the public client id and that token.
- A per-app README describing the configuration choices and the credential flow.
Every SDK feature, a different scenario in each app
Each app uses all six features in a way that fits its product, so you can compare more than one way to use the same capability.
| Feature | HelpDesk IQ | PolicyPilot | KnowledgeCloud LMS |
|---|---|---|---|
| End-user accounts | Switch between customer workspaces | Switch between framework owners | Switch between instructors |
| Branding | Plan sets the per-customer limit | Vendor disclosure in the audit card | Preview of what instructors see |
| API keys | Counts each customer's servers and requests | Provisions a policy server from the backend | Builds the admin's instructor roster |
| Business Intelligence | Customers ranked by MCP requests | Audit table per owner | Insights link per instructor |
| Limits | Wizard replaced at the per-customer ceiling | Refusal shown as MCP Studio wrote it | Course seats and the shared request pool |
| Headless MCP | list_servers escalation lookup | set_server_visibility restrict | delete_server to retire a course |
The demo users stand in for your signed-in users. In your app, take endUserId from your own session, never from the request.
Running them
The samples require your own credentials and will not render the wizard without them. That is deliberate: a client id alone produces an unverified session, so an embed that ran without a secret would be teaching the wrong integration.
git clone https://github.com/zthewriter/mcp-studio-sdk-sample-apps
cd mcp-studio-sdk-sample-apps
npm install
cd apps/helpdesk-iq
cp .env.example .env.local
Paste both values from the developer portal into .env.local:
MCP_STUDIO_CLIENT_ID=your_client_id_here
MCP_STUDIO_CLIENT_SECRET=your_client_secret_here
To turn on the API key, Business Intelligence, and Headless MCP panels, also add an integrator API key from Portal → API keys. It is optional, and like the secret it stays on your server:
MCP_STUDIO_API_KEY=paste_your_msk_live_key_here
Then run any app from the repo root. Ports differ so you can run all three at once:
npm run dev:helpdesk # http://localhost:3000
npm run dev:policy # http://localhost:3001
npm run dev:lms # http://localhost:3002
If a credential is missing or wrong, the app tells you which one instead of failing silently. Neither variable is prefixed NEXT_PUBLIC_, because Next.js inlines those into the browser bundle. See Verify embed sessions for why the secret stays on your server.
Interactive playground
Playground URL: appatools.com/mcp-studio-sdk/playground
In the playground, you can:
- Start from a default HelpDesk IQ-style SDK configuration.
- Edit configuration JSON in the editor.
- Click Save changes.
- Review the updates in the demo app panel.
- Deploy a server, then open My servers and Analytics in the demo app's sidebar to see the end-user dashboard and analytics your customers get. Each visitor gets their own end user, so you see only the servers you built.
When you are ready for deeper options, continue with: