Skip to main content
Glama
c0sc0s
by c0sc0s

get_web_project_context

Analyze local web projects to identify entrypoints, routing surfaces, configuration files, and framework details for frontend development context.

Instructions

Inspect a local root path and return frontend-oriented context such as entrypoints, routing surfaces, config files, and framework hints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYes

Implementation Reference

  • Implementation of the getWebProjectContext tool logic, which inspects a repository and identifies the best package context.
    export function getWebProjectContext(root: string): WebProjectContextResult {
      const discovery = inspectRepository(root);
      const candidate = selectBestContextPackage(discovery.packages, discovery.root);
    
      if (!candidate) {
        return {
          root: discovery.root,
          packageRoot: null,
          kind: "unknown",
          confidence: "low",
          frameworkHints: [],
          entryPoints: [],
          routingSurfaces: [],
          configFiles: [],
          signals: [],
        };
      }
    
      return {
        root: discovery.root,
        packageRoot: candidate.packageRoot,
        kind: candidate.kind,
        confidence: candidate.confidence,
        frameworkHints: deriveFrameworkHints(candidate),
        entryPoints: candidate.entryPoints,
        routingSurfaces: candidate.routeFiles,
        configFiles: candidate.configFiles,
        signals: candidate.signals,
      };
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/c0sc0s/agent-workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server