-
Notifications
You must be signed in to change notification settings - Fork 9
Feat/playground v2 #105
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?
Feat/playground v2 #105
Conversation
AGENTS.md
Outdated
| - Mock filesystem with memfs where needed | ||
|
|
||
| ## Development Practices | ||
| - Use yarn for package management |
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.
We should be using pnpm, we mostly reference this in our docs
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.
@felixnorden yarn is still mentioned here
AGENTS.md
Outdated
| - Example application: examples/crud-mcp/src/index.ts | ||
|
|
||
| ## Development Workflow | ||
| 1. Install dependencies at root level: `yarn install` |
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.
same here
| </PlaygroundProvider> | ||
| ); | ||
| } | ||
| yarn dev |
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.
we should remove the others to stay in line with using pnpm across
|
Good shout, I think the doc generation picked up some stale Yarn docs
…On Tue, Nov 18, 2025 at 10:52 AM Allen Wyma ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In AGENTS.md
<#105 (comment)>
:
> +- Test files: *.test.ts
+
+## Error Handling
+- Use custom error classes from utils/errors.ts
+- Always provide meaningful error messages
+- Use logger.ts for consistent logging
+- Handle dry-run mode in all mutating operations
+
+## Testing
+- Use vitest with globals
+- Place tests alongside source files
+- Use .test.ts extension
+- Mock filesystem with memfs where needed
+
+## Development Practices
+- Use yarn for package management
We should be using pnpm, we mostly reference this in our docs
------------------------------
In AGENTS.md
<#105 (comment)>
:
> +- Write tests for all functionality
+- Use Wrangler for deployments to Cloudflare Workers
+
+## Project Structure
+- `packages/`: Contains all project packages
+ - `mcp/`: Main MCP implementation for Cloudflare Workers
+ - `test-utils/`: Utilities for testing
+- `examples/`: Contains example implementations
+ - `crud-mcp/`: Example CRUD application using MCP framework
+ - `simple-prompt-agent/`: Example agent with only a prompt for chatting
+- Main package: packages/mcp/src/index.ts
+- MCP Server implementation: packages/mcp/src/mcp/server.ts
+- Example application: examples/crud-mcp/src/index.ts
+
+## Development Workflow
+1. Install dependencies at root level: `yarn install`
same here
------------------------------
In packages/playground/README.md
<#105 (comment)>
:
> - showHeader={true}
- className="h-full"
- />
- </div>
- </div>
- );
-}
-
-export default function App() {
- return (
- <PlaygroundProvider config={{ /* your config */ }}>
- <CustomChat />
- </PlaygroundProvider>
- );
-}
+yarn dev
we should remove the others to stay in line with using pnpm across
—
Reply to this email directly, view it on GitHub
<#105 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKCPQX4TJYB44AWDGQK5HT35L255AVCNFSM6AAAAACMKMQ6ZSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTINZVGQYDQMJSGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
AGENTS.md
Outdated
| - Mock filesystem with memfs where needed | ||
|
|
||
| ## Development Practices | ||
| - Use yarn for package management |
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.
@felixnorden yarn is still mentioned here
Adding in status indicator for available agents and graceful errors when the call fails through toasters.
95cdbba to
e587993
Compare
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
Summary
This PR introduces a complete rewrite of the playground package, transforming it from a basic MCP (Model Context Protocol) server management tool into a comprehensive AI Agent management and chat interface. The changes represent a fundamental architectural shift from server-focused management to agent-centric interaction.
Key Changes Overview
🏗️ Architecture Transformation
📦 Package Structure Changes
@nullshot/playgroundbut completely restructuredtsupfor library builds alongside Next.js app🎨 UI/UX Revolution
Detailed Implementation
1. Core Architecture Changes
Agent Management System (
src/lib/agent-*.ts)agent-config.tsx: Centralized agent configuration managementagent-context.tsx: React context for agent state management with 285 lines of test coverageagent-health.ts: Real-time agent health monitoring and status trackingagent-persistence.ts: Local storage persistence for agent configurationsagent-storage.ts: Agent data storage utilitiesagent-utils.tsx: Utility functions with comprehensive test suite (297 lines of tests)New Component Architecture
message.tsx,response.tsx)actions.tsx,confirmation.tsx)canvas.tsx,image.tsx,web-preview.tsx)chain-of-thought.tsx,reasoning.tsx,artifact.tsx)2. Technology Stack Upgrades
Frontend Framework
UI/UX Enhancements
Development Tools
3. New Features & Capabilities
Agent Management
Enhanced Chat Interface
Developer Experience
AGENT_MANAGEMENT.md)4. File Structure Changes
Added Files (150+ new files)
src/components/ai-elements/Removed Files
Modified Files
package.jsontsup.config.ts,tsconfig.jsonwrangler.jsoncfor Cloudflare Workers5. Export System
The package now provides a comprehensive export system:
6. Testing & Quality Assurance
Test Coverage
Code Quality
Breaking Changes
API Changes
Configuration Changes
Dependency Changes
Migration Guide
For Existing Users
For New Users
setup-chat.mdfor initial setupAGENT_MANAGEMENT.mdfor detailed guidance