Skip to content

Conversation

@ochafik
Copy link
Collaborator

@ochafik ochafik commented Jan 11, 2026

Add a minimal MCP App Server example with the UI HTML inlined directly in the server code. No build step required.

Changes

  • server.ts: MCP server with inlined HTML UI and tool registration
  • server-utils.ts: HTTP/stdio transport utilities (shared with other examples)
  • package.json, tsconfig.json, README.md: Standard example configuration
  • Added to CI publish workflows (publish.yml, npm-publish.yml)

Use Cases

This pattern is ideal for:

  • Quick prototyping
  • Simple tools with minimal UI
  • Embedding servers in other applications
  • Testing and development

Package

Published as @modelcontextprotocol/server-inlined-app

Add a minimal MCP App Server example with the UI HTML inlined
directly in the server code. No build step required.

- server.ts: MCP server with inlined HTML UI and tool registration
- server-utils.ts: HTTP/stdio transport utilities
- Added to CI publish workflows
@ochafik ochafik changed the title feat: add inlined-app-server example examples: add inlined-app-server (imports ext-apps / no need to build anything) Jan 11, 2026
await createServer().connect(new StdioServerTransport());
} else {
const port = parseInt(process.env.PORT ?? "3102", 10);
await startServer(createServer, { port, name: "Basic MCP App Server (Vanilla JS)" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants