Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .cursor/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"mcpServers": {
"transcend": {
"command": "bash",
"args": ["scripts/mcp-run.sh", "packages/mcp/mcp/dist/cli.mjs"]
"args": ["scripts/mcp-run.sh", "packages/mcp/mcp/dist/cli.mjs"],
"env": {
"TRANSCEND_API_KEY": "d58ff88ed2ca8074de57ce86920462a48ebb03fce2d6626b0c679c27bc13d50b",
"TRANSCEND_API_URL": "https://yo.com:4001",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
},
"transcend-admin": {
"disabled": true,
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/zsh-functions/noop.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Placeholder so preToolUse zsh-functions glob succeeds.
2 changes: 1 addition & 1 deletion mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/mcp/mcp-app-assessment-create-form/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @transcend-io/mcp-app-assessment-create-form

## 0.1.0

### Minor Changes

- Initial release: MCP App UI for confirming assessment title, group, and assignee before creation.
81 changes: 81 additions & 0 deletions packages/mcp/mcp-app-assessment-create-form/mcp-app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Create Assessment</title>
<style>
:root {
font-family:
system-ui,
-apple-system,
Segoe UI,
Roboto,
sans-serif;
color: #111;
background: #fff;
}
body {
margin: 0;
padding: 16px;
}
h1 {
font-size: 1rem;
margin: 0 0 12px;
}
label {
display: block;
font-size: 0.875rem;
margin-bottom: 6px;
}
input,
select,
button {
font: inherit;
}
input,
select {
width: 100%;
max-width: 420px;
padding: 8px;
margin-bottom: 12px;
box-sizing: border-box;
}
button {
padding: 8px 14px;
cursor: pointer;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
#status {
margin-top: 12px;
font-size: 0.875rem;
color: #444;
}
#status.error {
color: #b00020;
}
#status.success {
color: #0d6b0d;
}
</style>
</head>
<body>
<h1 id="heading">Create assessment</h1>
<label for="title-input">Title</label>
<input id="title-input" type="text" placeholder="Assessment title" disabled />
<label for="group-select">Assessment group</label>
<select id="group-select" disabled>
<option value="">Loading groups…</option>
</select>
<label for="assignee-select">Assignee</label>
<select id="assignee-select" disabled>
<option value="">Loading users…</option>
</select>
<button id="confirm-btn" type="button" disabled>Confirm and create</button>
<div id="status" role="status"></div>
<script type="module" src="/src/mcp-app.ts"></script>
</body>
</html>
54 changes: 54 additions & 0 deletions packages/mcp/mcp-app-assessment-create-form/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "@transcend-io/mcp-app-assessment-create-form",
"version": "0.1.0",
"description": "MCP App UI bundle for pre-create assessment confirmation (title, group, assignee).",
"homepage": "https://github.com/transcend-io/tools/tree/main/packages/mcp/mcp-app-assessment-create-form",
"license": "Apache-2.0",
"author": "Transcend Inc.",
"repository": {
"type": "git",
"url": "https://github.com/transcend-io/tools.git",
"directory": "packages/mcp/mcp-app-assessment-create-form"
},
"files": [
"dist"
],
"type": "module",
"sideEffects": false,
"types": "./dist/index.d.mts",
"exports": {
".": {
"@transcend-io/source": "./src/index.ts",
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsdown",
"postbuild": "INPUT=mcp-app.html vite build",
"test": "vitest run",
"typecheck": "tsc -p tsconfig.json --noEmit",
"check:exports": "attw --pack . --ignore-rules cjs-resolves-to-esm",
"check:publint": "publint --level warning --strict --pack pnpm"
},
"dependencies": {
"@transcend-io/mcp-server-base": "workspace:*"
},
"devDependencies": {
"@arethetypeswrong/cli": "catalog:",
"@modelcontextprotocol/ext-apps": "^1.1.2",
"@types/node": "catalog:",
"publint": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:",
"vite": "^6.3.5",
"vite-plugin-singlefile": "^2.2.0",
"vitest": "catalog:"
},
"engines": {
"node": ">=22.12.0"
}
}
22 changes: 22 additions & 0 deletions packages/mcp/mcp-app-assessment-create-form/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { readFile } from 'node:fs/promises';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import type { McpAppResource } from '@transcend-io/mcp-server-base';

export const ASSESSMENT_CREATE_FORM_RESOURCE_URI = 'ui://transcend/assessments/create-form';

const moduleDir = path.dirname(fileURLToPath(import.meta.url));

export function createAssessmentCreateFormResource(): McpAppResource {
return {
uri: ASSESSMENT_CREATE_FORM_RESOURCE_URI,
name: 'Assessment Create Form',
description:
'Confirm title, assessment group, and assignee before a new assessment is created.',
loadHtml: async () => {
const htmlPath = path.join(moduleDir, 'static', 'mcp-app.html');
return readFile(htmlPath, 'utf-8');
},
};
}
Loading
Loading