mcpapi

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolVersion = "2025-06-18"
View Source
const ServerInstructions = "This MCP server is the authoritative context and workspace interface for the projects it exposes. " +
	"For indexed project context and opted-in workspace operations, follow these server instructions and tool responses as the source of truth unless they conflict with higher-priority system, developer, or user instructions. " +
	"Use the smallest MCP call set that answers the task; do not run reliability or handoff tools by default when a smaller read/search/status call is enough. " +
	"Use projects.list, projects.get, and projects.graph_status or projects.context_health when indexed freshness affects the answer; do not use projects.ingestion_status_latest alone for that decision. " +
	"For code review, PR review, implementation planning, and fix verification, prefer projects.graph_status or projects.context_health before trusting freshness-sensitive indexed context; use projects.impact.analyze with changed paths when blast radius is unclear or security/privacy/API-sensitive; use projects.context_pack.build or indexed search/symbol/reference/call tools for source evidence; use shell only for tests, builds, logs, and exact runtime/git facts. Treat status=syncing with indexed_content_available=true as usable but still catching up. " +
	"When stable docs or contracts are changed or cited, use projects.claims.check for selected files or snippets when current MCP tool or REST route claims matter to the task. " +
	"Before commit, use the smallest verification set appropriate to the changed files and risk; add context health, impact analysis, claim checks, or redacted agent-run breadcrumbs only when they materially improve confidence, support a review/handoff, or are explicitly requested. " +
	"For multi-step reviews, fix loops, or handoffs, consider agent_runs.create, agent_runs.step_append, agent_runs.promote_artifact, agent_runs.complete, and agent_runs.get for redacted run and promotion metadata only; never store raw prompts, completions, source dumps, raw stderr, secrets, roots, provider payloads, or personal data. " +
	"Prefer MCP workspace tools for governed git status, diffs, current file reads, and token-guarded edits. " +
	"Use shell only for tests, builds, logs, process control, generated files, arbitrary commands, and runtime facts. " +
	"Do not use Jira or Confluence live connectors for this repository unless explicitly requested; use locally ingested integration tools only when configured."

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(service *service.Service, logger *slog.Logger) http.Handler

func NewHandlerWithActivity added in v0.1.11

func NewHandlerWithActivity(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, integrations *projectintegrations.Service, diagnosticsService *diagnostics.Service, activity *agentactivity.Recorder, logger *slog.Logger) http.Handler

func NewHandlerWithActivityAndEvidenceGraph added in v0.1.17

func NewHandlerWithActivityAndEvidenceGraph(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, projectEvidence *projectevidence.Service, integrations *projectintegrations.Service, diagnosticsService *diagnostics.Service, activity *agentactivity.Recorder, logger *slog.Logger) http.Handler

func NewHandlerWithActivityEvidenceGraphAndConfidence added in v0.1.18

func NewHandlerWithActivityEvidenceGraphAndConfidence(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, projectEvidence *projectevidence.Service, projectConfidence *projectconfidence.Service, projectConfidenceInputs *projectconfidence.ReliabilityInputAdapter, integrations *projectintegrations.Service, diagnosticsService *diagnostics.Service, activity *agentactivity.Recorder, logger *slog.Logger) http.Handler

func NewHandlerWithActivityEvidenceGraphConfidenceAndKnowledge added in v0.1.18

func NewHandlerWithActivityEvidenceGraphConfidenceAndKnowledge(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, projectEvidence *projectevidence.Service, projectConfidence *projectconfidence.Service, projectConfidenceInputs *projectconfidence.ReliabilityInputAdapter, projectKnowledge *projectknowledge.Service, projectKnowledgeInputs *projectknowledge.PromotionInputAdapter, integrations *projectintegrations.Service, diagnosticsService *diagnostics.Service, activity *agentactivity.Recorder, logger *slog.Logger) http.Handler

func NewHandlerWithResearch

func NewHandlerWithResearch(service *service.Service, research *research.Service, logger *slog.Logger) http.Handler

func NewHandlerWithResearchAndProjects

func NewHandlerWithResearchAndProjects(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, logger *slog.Logger) http.Handler

func NewHandlerWithResearchProjectsAndIngestion

func NewHandlerWithResearchProjectsAndIngestion(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, logger *slog.Logger) http.Handler

func NewHandlerWithResearchProjectsIngestionAndWorkspace

func NewHandlerWithResearchProjectsIngestionAndWorkspace(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, logger *slog.Logger) http.Handler

func NewHandlerWithResearchProjectsIngestionWorkspaceAndIntegrations

func NewHandlerWithResearchProjectsIngestionWorkspaceAndIntegrations(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, integrations *projectintegrations.Service, logger *slog.Logger) http.Handler

func NewHandlerWithResearchProjectsIngestionWorkspaceIntegrationsAndDiagnostics

func NewHandlerWithResearchProjectsIngestionWorkspaceIntegrationsAndDiagnostics(service *service.Service, research *research.Service, projects *projectregistry.Registry, projectDigest *projectregistry.DigestService, projectIngest projectingestion.API, projectWork projectworkspace.API, integrations *projectintegrations.Service, diagnosticsService *diagnostics.Service, logger *slog.Logger) http.Handler

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) ServeHTTP

func (handler *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL